| 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();
|
| }
|
|
|