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 4eba0f7a92b7b6badb8cadb9360d5b1bc4722356..fc031a82fd5e5cc7d1038f35ed2e5e08021f4d00 100644 |
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp |
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp |
@@ -3132,6 +3132,8 @@ void FrameView::prePaint() { |
// we need to propagate the flags into the ancestor chain so that |
// PrePaintTreeWalk can reach this frame. |
frameView.setNeedsPaintPropertyUpdate(); |
+ if (auto owner = frameView.frame().ownerLayoutItem()) |
+ owner.setMayNeedPaintInvalidation(); |
} |
}); |
@@ -4956,6 +4958,8 @@ void FrameView::beginLifecycleUpdates() { |
if (!frame().loader().stateMachine()->committedFirstRealDocumentLoad()) |
return; |
m_lifecycleUpdatesThrottled = false; |
+ if (auto owner = frame().ownerLayoutItem()) |
+ owner.setMayNeedPaintInvalidation(); |
setupRenderThrottling(); |
updateRenderThrottlingStatus(m_hiddenForThrottling, m_subtreeThrottled); |
// The compositor will "defer commits" for the main frame until we |