| Index: third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
|
| index 1f11e9809007648f8021300f03ebf495772820d2..ffc1a4dd5a7c98e5abc5f70c4ed624f2c932a90b 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
|
| @@ -2849,6 +2849,14 @@ LayoutUnit LayoutBlockFlow::nextFloatLogicalBottomBelowForBlock(LayoutUnit logic
|
| return m_floatingObjects->findNextFloatLogicalBottomBelowForBlock(logicalHeight);
|
| }
|
|
|
| +Node* LayoutBlockFlow::nodeForHitTest() const
|
| +{
|
| + // If we are in the margins of block elements that are part of a
|
| + // continuation we're actually still inside the enclosing element
|
| + // that was split. Use the appropriate inner node.
|
| + return isAnonymousBlockContinuation() ? continuation()->node() : node();
|
| +}
|
| +
|
| bool LayoutBlockFlow::hitTestChildren(HitTestResult& result, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction hitTestAction)
|
| {
|
| LayoutPoint scrolledOffset(hasOverflowClip() ? accumulatedOffset - scrolledContentOffset() : accumulatedOffset);
|
|
|