Title: [104247] branches/subpixellayout/Source/WebCore/dom/Element.cpp
Revision
104247
Author
[email protected]
Date
2012-01-05 16:54:56 -0800 (Thu, 05 Jan 2012)

Log Message

Fix rounding for adjustForLocalZoom

Modified Paths


Diff

Modified: branches/subpixellayout/Source/WebCore/dom/Element.cpp (104246 => 104247)


--- branches/subpixellayout/Source/WebCore/dom/Element.cpp	2012-01-06 00:44:16 UTC (rev 104246)
+++ branches/subpixellayout/Source/WebCore/dom/Element.cpp	2012-01-06 00:54:56 UTC (rev 104247)
@@ -318,11 +318,7 @@
     float zoomFactor = localZoomForRenderer(renderer);
     if (zoomFactor == 1)
         return value;
-    // Needed because computeLengthInt truncates (rather than rounds) when scaling up.
-    // FIXME: Is this still necessary with LayoutUnits?
-    //if (zoomFactor > 1)
-    //    value++;
-    return roundf(value / zoomFactor);
+    return lroundf(value / zoomFactor);
 }
 
 int Element::offsetLeft()
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to