Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp |
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp |
index 328a66f32efadc066fde63062f19eb7f505bd0d8..724eb92af74ae98ab506506d9c772f3692e52fbb 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp |
@@ -383,7 +383,7 @@ bool LayoutSVGRoot::nodeAtPoint(HitTestResult& result, const HitTestLocation& lo |
// FIXME: nodeAtFloatPoint() doesn't handle rect-based hit tests yet. |
if (child->nodeAtFloatPoint(result, localPoint, hitTestAction)) { |
updateHitTestResult(result, pointInBorderBox); |
- if (!result.addNodeToListBasedTestResult(child->node(), locationInContainer)) |
+ if (result.addNodeToListBasedTestResult(child->node(), locationInContainer) == StopHitTesting) |
return true; |
} |
} |
@@ -399,7 +399,7 @@ bool LayoutSVGRoot::nodeAtPoint(HitTestResult& result, const HitTestLocation& lo |
LayoutRect boundsRect(accumulatedOffset + location(), size()); |
if (locationInContainer.intersects(boundsRect)) { |
updateHitTestResult(result, pointInBorderBox); |
- if (!result.addNodeToListBasedTestResult(node(), locationInContainer, boundsRect)) |
+ if (result.addNodeToListBasedTestResult(node(), locationInContainer, boundsRect) == StopHitTesting) |
return true; |
} |
} |