| Index: Source/core/rendering/RenderBlock.cpp
|
| diff --git a/Source/core/rendering/RenderBlock.cpp b/Source/core/rendering/RenderBlock.cpp
|
| index f5ad8965fa55d8885961e3bd6f963e723e5b8903..7168c5d50687da781d37b4801632ce6459243973 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))
|
|
|