| Index: third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| index f1ecdfa63692fe8c7e2134668be174c57723f868..2e243242c277b07bfecacaeefadd0c68c8622202 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| @@ -480,11 +480,14 @@ void LayoutView::mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* anc
|
| mapToVisibleRectInAncestorSpace(ancestor, rect, IsNotFixedPosition, invalidationState);
|
| }
|
|
|
| -void LayoutView::mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, LayoutRect& rect, ViewportConstrainedPosition viewportConstraint, const PaintInvalidationState* state) const
|
| +void LayoutView::mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, LayoutRect& rect, ViewportConstrainedPosition viewportConstraint,
|
| + const PaintInvalidationState* paintInvalidationState) const
|
| {
|
| if (document().printing())
|
| return;
|
|
|
| + // TODO(chrishtr): fix PaintInvalidationState offsets for LayoutViews.
|
| +
|
| if (style()->isFlippedBlocksWritingMode()) {
|
| // We have to flip by hand since the view's logical height has not been determined. We
|
| // can use the viewport width and height.
|
| @@ -509,7 +512,7 @@ void LayoutView::mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* anc
|
| return;
|
|
|
| if (LayoutBox* obj = owner->layoutBox()) {
|
| - if (!state || !state->viewClippingAndScrollOffsetDisabled()) {
|
| + if (!paintInvalidationState || !paintInvalidationState->viewClippingAndScrollOffsetDisabled()) {
|
| // Intersect the viewport with the paint invalidation rect.
|
| LayoutRect viewRectangle = viewRect();
|
| rect.intersect(viewRectangle);
|
|
|