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 c0226c98d7ccadbd7a1d6061e9ed5337804b914e..663f5a15cb97403ec1ae4300e0952cfd6f0e85e6 100644 |
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp |
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp |
@@ -1099,14 +1099,11 @@ void FrameView::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalidation |
rootForPaintInvalidation.invalidateTreeIfNeeded(paintInvalidationState); |
- if (!m_frame->settings() || !m_frame->settings()->rootLayerScrolls()) { |
- paintInvalidationState.setViewClippingAndScrollOffsetDisabled(true); |
+ if (!m_frame->settings() || !m_frame->settings()->rootLayerScrolls()) |
invalidatePaintOfScrollControlsIfNeeded(paintInvalidationState); |
- paintInvalidationState.setViewClippingAndScrollOffsetDisabled(false); |
- } |
#if ENABLE(ASSERT) |
- layoutView()->assertSubtreeClearedPaintInvalidationState(); |
+ layoutView()->assertSubtreeClearedPaintInvalidationFlags(); |
#endif |
if (m_frame->selection().isCaretBoundsDirty()) |
@@ -2114,7 +2111,7 @@ IntRect FrameView::windowClipRect(IncludeScrollbarsInRect scrollbarInclusion) co |
ASSERT(m_frame->view() == this); |
LayoutRect clipRect(LayoutPoint(), LayoutSize(visibleContentSize(scrollbarInclusion))); |
- layoutView()->mapToVisibleRectInAncestorSpace(&layoutView()->containerForPaintInvalidation(), clipRect, nullptr); |
+ layoutView()->mapToVisibleRectInAncestorSpace(&layoutView()->containerForPaintInvalidation(), clipRect); |
return enclosingIntRect(clipRect); |
} |
@@ -3972,7 +3969,7 @@ void FrameView::collectFrameTimingRequests(GraphicsLayerFrameTimingRequests& gra |
if (!graphicsLayer) |
return; |
- PaintLayer::mapRectToPaintInvalidationBacking(localFrame->contentLayoutObject(), &paintInvalidationContainer, viewRect); |
+ PaintLayer::mapRectToPaintInvalidationBacking(*localFrame->contentLayoutObject(), paintInvalidationContainer, viewRect); |
graphicsLayerTimingRequests.add(graphicsLayer, Vector<std::pair<int64_t, WebRect>>()).storedValue->value.append(std::make_pair(m_frame->frameID(), enclosingIntRect(viewRect))); |
} |