Title: [113444] branches/subpixellayout/Source/WebCore/rendering/RenderBlock.cpp
Revision
113444
Author
[email protected]
Date
2012-04-06 09:05:06 -0700 (Fri, 06 Apr 2012)

Log Message

Using pixel snapping instead of flooring for Floating object reporting.

Modified Paths

Diff

Modified: branches/subpixellayout/Source/WebCore/rendering/RenderBlock.cpp (113443 => 113444)


--- branches/subpixellayout/Source/WebCore/rendering/RenderBlock.cpp	2012-04-06 16:04:51 UTC (rev 113443)
+++ branches/subpixellayout/Source/WebCore/rendering/RenderBlock.cpp	2012-04-06 16:05:06 UTC (rev 113444)
@@ -7472,7 +7472,7 @@
 
 String ValueToString<RenderBlock::FloatingObject*>::string(const RenderBlock::FloatingObject* floatingObject)
 {
-    return String::format("%p (%dx%d %dx%d)", floatingObject, floatingObject->x().toInt(), floatingObject->y().toInt(), floatingObject->maxX().toInt(), floatingObject->maxY().toInt());
+    return String::format("%p (%dx%d %dx%d)", floatingObject, floatingObject->pixelSnappedX(), floatingObject->pixelSnappedY(), floatingObject->pixelSnappedMaxX(), floatingObject->pixelSnappedMaxY());
 }
 
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to