| 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 15ae442e9a9fb3ac1d7ab4b34e0fade56b777386..82b731257e74ac6a36394dd5e1f1f6ab1b78c99c 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -2186,7 +2186,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);
|
| }
|
|
|
|
|