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

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

Issue 2521613003: Add flag for tracking descendant paint property updates (Closed)
Patch Set: Address Xianzhu's comments Created 4 years, 1 month 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 1e1bf54b71d6690470c8e3bd803e423ea33ab088..daa201599aa31f263a7fd7e28793e60cdf33439d 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -1483,7 +1483,7 @@ void FrameView::addBackgroundAttachmentFixedObject(LayoutObject* object) {
if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
setNeedsPaintPropertyUpdate();
// The object's scroll properties are not affected by its own background.
- object->setAllAncestorsNeedPaintPropertyUpdate();
+ object->setAncestorsNeedPaintPropertyUpdateForMainThreadScrolling();
}
}
@@ -1499,7 +1499,7 @@ void FrameView::removeBackgroundAttachmentFixedObject(LayoutObject* object) {
if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
setNeedsPaintPropertyUpdate();
// The object's scroll properties are not affected by its own background.
- object->setAllAncestorsNeedPaintPropertyUpdate();
+ object->setAncestorsNeedPaintPropertyUpdateForMainThreadScrolling();
}
}

Powered by Google App Engine
This is Rietveld 408576698