Title: [110726] branches/subpixellayout/Source/WebCore/rendering/RenderBlock.cpp
Revision
110726
Author
[email protected]
Date
2012-03-14 12:12:25 -0700 (Wed, 14 Mar 2012)

Log Message

We cannot size blocks from the line tree using sub-pixel precision since we don't paint blocks using sub-pixels. We must always grow to contain the lines.

Modified Paths

Diff

Modified: branches/subpixellayout/Source/WebCore/rendering/RenderBlock.cpp (110725 => 110726)


--- branches/subpixellayout/Source/WebCore/rendering/RenderBlock.cpp	2012-03-14 19:10:47 UTC (rev 110725)
+++ branches/subpixellayout/Source/WebCore/rendering/RenderBlock.cpp	2012-03-14 19:12:25 UTC (rev 110726)
@@ -5406,7 +5406,7 @@
 
 static inline void updatePreferredWidth(LayoutUnit& preferredWidth, float& result)
 {
-    LayoutUnit snappedResult = ceiledLayoutUnit(result);
+    LayoutUnit snappedResult = ceilf(result);
     preferredWidth = max(snappedResult, preferredWidth);
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to