Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(713)

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2792063002: Reland of Skip paint property update and visual rect update if no geometry change (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698