Index: third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
index ae0385bc3e257924da6719ff2fe449ecf36bc649..c5e2eeb3ee729620fe4cb7dcd4d485427266ec6c 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
@@ -1655,7 +1655,7 @@ bool LayoutBlock::nodeAtPoint(HitTestResult& result, const HitTestLocation& loca |
&& isPointInOverflowControl(result, locationInContainer.point(), adjustedLocation)) { |
updateHitTestResult(result, locationInContainer.point() - localOffset); |
// FIXME: isPointInOverflowControl() doesn't handle rect-based tests yet. |
- if (!result.addNodeToListBasedTestResult(nodeForHitTest(), locationInContainer)) |
+ if (result.addNodeToListBasedTestResult(nodeForHitTest(), locationInContainer) == StopHitTesting) |
return true; |
} |
@@ -1673,7 +1673,7 @@ bool LayoutBlock::nodeAtPoint(HitTestResult& result, const HitTestLocation& loca |
LayoutRect boundsRect(adjustedLocation, size()); |
if (visibleToHitTestRequest(result.hitTestRequest()) && locationInContainer.intersects(boundsRect)) { |
updateHitTestResult(result, flipForWritingMode(locationInContainer.point() - localOffset)); |
- if (!result.addNodeToListBasedTestResult(nodeForHitTest(), locationInContainer, boundsRect)) |
+ if (result.addNodeToListBasedTestResult(nodeForHitTest(), locationInContainer, boundsRect) == StopHitTesting) |
return true; |
} |
} |