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 91c82bdcf3276ac701da5bd92e86ee05da3e6acf..1267462429b369a1ebede62d220810be697ee5ce 100644 |
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp |
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp |
@@ -3155,6 +3155,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(); |
} |
}); |
@@ -4979,6 +4981,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 |