Title: [100316] branches/subpixellayout/Source/WebCore/rendering/svg
- Revision
- 100316
- Author
- e...@chromium.org
- Date
- 2011-11-15 13:54:54 -0800 (Tue, 15 Nov 2011)
Log Message
Have SVGRenderTreeAsText print pixel snapped coordinates and sizes for the root and container elements.
Modified Paths
Diff
Modified: branches/subpixellayout/Source/WebCore/rendering/svg/SVGRenderSupport.cpp (100315 => 100316)
--- branches/subpixellayout/Source/WebCore/rendering/svg/SVGRenderSupport.cpp 2011-11-15 21:54:38 UTC (rev 100315)
+++ branches/subpixellayout/Source/WebCore/rendering/svg/SVGRenderSupport.cpp 2011-11-15 21:54:54 UTC (rev 100316)
@@ -53,7 +53,7 @@
// Pass our local paint rect to computeRectForRepaint() which will
// map to parent coords and recurse up the parent chain.
- LayoutRect repaintRect = enclosingLayoutRect(object->repaintRectInLocalCoordinates());
+ LayoutRect repaintRect = enclosingIntRect(object->repaintRectInLocalCoordinates());
object->computeRectForRepaint(repaintContainer, repaintRect);
return repaintRect;
}
Modified: branches/subpixellayout/Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp (100315 => 100316)
--- branches/subpixellayout/Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp 2011-11-15 21:54:38 UTC (rev 100315)
+++ branches/subpixellayout/Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp 2011-11-15 21:54:54 UTC (rev 100316)
@@ -341,7 +341,7 @@
static TextStream& writePositionAndStyle(TextStream& ts, const RenderObject& object)
{
- ts << " " << const_cast<RenderObject&>(object).absoluteClippedOverflowRect();
+ ts << " " << enclosingIntRect(const_cast<RenderObject&>(object).absoluteClippedOverflowRect());
writeStyle(ts, object);
return ts;
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes