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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 2506353002: Incrementally build main thread scrolling reasons [spv2] (Closed)
Patch Set: Fix test mistake 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/layout/LayoutObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index 0ba1003ccdd46c1af60c31ba6c1eb1abb933836d..1e94872db340e509d0aa852af59f2e22f1cd9e74 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -1728,6 +1728,13 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
void setNeedsPaintPropertyUpdate() {
m_bitfields.setNeedsPaintPropertyUpdate(true);
}
+ // TODO(pdr): This can be removed once we have more granular update flags.
+ void setAllAncestorsNeedPaintPropertyUpdate() {
+ if (m_parent) {
+ m_parent->setNeedsPaintPropertyUpdate();
+ m_parent->setAllAncestorsNeedPaintPropertyUpdate();
+ }
+ }
void clearNeedsPaintPropertyUpdate() {
DCHECK_EQ(document().lifecycle().state(), DocumentLifecycle::InPrePaint);
m_bitfields.setNeedsPaintPropertyUpdate(false);
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698