Reviewed by bdash.
authorantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 30 Mar 2007 12:55:51 +0000 (12:55 +0000)
committerantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 30 Mar 2007 12:55:51 +0000 (12:55 +0000)
        Spotted an int that should be float in previous patch.

        * platform/Font.cpp:
        (WebCore::WidthIterator::advance):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@20611 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/Font.cpp

index 5af667b9a240960ac717385bf97f8ec23dd6e927..20f648ff2f2e179317e066fc2f5a4867588a5c61 100644 (file)
@@ -1,3 +1,12 @@
+2007-03-30  Antti Koivisto  <antti@apple.com>
+
+        Reviewed by bdash.
+
+        Spotted an int that should be float in previous patch.
+
+        * platform/Font.cpp:
+        (WebCore::WidthIterator::advance):
+
 2007-03-30  Antti Koivisto  <antti@apple.com>
 
         Reviewed by Hyatt.
index 27db9bb229b2e51b3bfc541973c0c761485b3603..0b8a641870c03092d93d6a02a98e0bc61d3cd250 100644 (file)
@@ -179,7 +179,7 @@ void WidthIterator::advance(int offset, GlyphBuffer* glyphBuffer)
         // Now that we have a glyph and font data, get its width.
         float width;
         if (c == '\t' && m_style.allowTabs()) {
-            int tabWidth = m_font->tabWidth();
+            float tabWidth = m_font->tabWidth();
             width = tabWidth - fmodf(m_style.xPos() + runWidthSoFar, tabWidth);
         } else {
             width = fontData->widthForGlyph(glyph);