| Index: third_party/WebKit/Source/core/frame/FrameView.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| index 4784dd7466c71d63bfc859a221047804fdb73f04..daae31a2898b8f35afdfde756cd68a1d2e203d4d 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -2191,7 +2191,13 @@ IntRect FrameView::windowClipRect(IncludeScrollbarsInRect scrollbarInclusion) co
|
| ASSERT(m_frame->view() == this);
|
|
|
| LayoutRect clipRect(LayoutPoint(), LayoutSize(visibleContentSize(scrollbarInclusion)));
|
| - layoutViewItem().mapToVisualRectInAncestorSpace(&layoutView()->containerForPaintInvalidation(), clipRect);
|
| + const LayoutBoxModelObject* paintInvalidationContainer = &layoutView()->containerForPaintInvalidation();
|
| + layoutViewItem().mapToVisualRectInAncestorSpace(paintInvalidationContainer, clipRect);
|
| + if (paintInvalidationContainer->isBox()) {
|
| + const LayoutBox* box = toLayoutBox(paintInvalidationContainer);
|
| + if (box->hasOverflowClip())
|
| + clipRect.move(-box->scrolledContentOffset());
|
| + }
|
| return enclosingIntRect(clipRect);
|
| }
|
|
|
|
|