Title: [104730] branches/subpixellayout/Source/WebCore/rendering/svg/RenderSVGRoot.cpp
Revision
104730
Author
[email protected]
Date
2012-01-11 11:57:12 -0800 (Wed, 11 Jan 2012)

Log Message

Rounding accumulatedOffset in nodeAtPoint when entering an SVG context to properly align to the root's actual rendering area

Modified Paths

Diff

Modified: branches/subpixellayout/Source/WebCore/rendering/svg/RenderSVGRoot.cpp (104729 => 104730)


--- branches/subpixellayout/Source/WebCore/rendering/svg/RenderSVGRoot.cpp	2012-01-11 19:53:00 UTC (rev 104729)
+++ branches/subpixellayout/Source/WebCore/rendering/svg/RenderSVGRoot.cpp	2012-01-11 19:57:12 UTC (rev 104730)
@@ -434,7 +434,7 @@
 
 bool RenderSVGRoot::nodeAtPoint(const HitTestRequest& request, HitTestResult& result, const LayoutPoint& pointInContainer, const LayoutPoint& accumulatedOffset, HitTestAction hitTestAction)
 {
-    LayoutPoint pointInParent = pointInContainer - toLayoutSize(accumulatedOffset);
+    LayoutPoint pointInParent = pointInContainer - toLayoutSize(roundedIntPoint(accumulatedOffset));
     LayoutPoint pointInBorderBox = pointInParent - parentOriginToBorderBox();
 
     // Note: For now, we're ignoring hits to border and padding for <svg>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to