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

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

Issue 2732573003: Skip paint property update and visual rect update if no geometry change (Closed)
Patch Set: - Created 3 years, 9 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 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

Powered by Google App Engine
This is Rietveld 408576698