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

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

Issue 2539693002: Early-out from the prepaint tree walk (Closed)
Patch Set: Address chrishtrs comments Created 4 years 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 bd0ba94ac49d929f860c99b9eaa2e8d88e60a75e..7e1b0e02db7dd02cbcf9e9a832e7805a7e4b34d9 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -1737,10 +1737,16 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
// tree update during the next document lifecycle update.
//
// In addition to tracking if an object needs its own paint properties
- // updated, |descendantNeedsPaintPropertyUpdate| is used to track if any
- // descendant needs an update too. This bit is up the tree, crossing frames,
- // when calling |setNeedsPaintPropertyUpdate|.
+ // updated, setNeedsPaintPropertyUpdate marks all ancestors as having a
+ // descendant needing a paint property update too.
void setNeedsPaintPropertyUpdate();
+#if DCHECK_IS_ON()
+ // Same as setNeedsPaintPropertyUpdate() but does not mark ancestors as
+ // having a descendant needing a paint property update.
+ void setOnlyThisNeedsPaintPropertyUpdateForTesting() {
+ m_bitfields.setNeedsPaintPropertyUpdate(true);
+ }
+#endif
bool needsPaintPropertyUpdate() const {
return m_bitfields.needsPaintPropertyUpdate();
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698