Index: Source/core/rendering/RenderBlock.cpp |
diff --git a/Source/core/rendering/RenderBlock.cpp b/Source/core/rendering/RenderBlock.cpp |
index fbcc31eb3c1ddbed2c55e49fdf3f75103d6adc04..dcbca7ce52686aab6ae7aef42410755ba3e8fdca 100644 |
--- a/Source/core/rendering/RenderBlock.cpp |
+++ b/Source/core/rendering/RenderBlock.cpp |
@@ -2863,7 +2863,8 @@ bool RenderBlock::nodeAtPoint(const HitTestRequest& request, HitTestResult& resu |
if (!isRenderView()) { |
// Check if we need to do anything at all. |
- LayoutRect overflowBox = visualOverflowRect(); |
+ // If we have clipping, then we can't have any spillout. |
+ LayoutRect overflowBox = hasOverflowClip() ? borderBoxRect() : visualOverflowRect(); |
flipForWritingMode(overflowBox); |
overflowBox.moveBy(adjustedLocation); |
if (!locationInContainer.intersects(overflowBox)) |