| Index: third_party/WebKit/Source/core/frame/FrameView.h
|
| diff --git a/third_party/WebKit/Source/core/frame/FrameView.h b/third_party/WebKit/Source/core/frame/FrameView.h
|
| index 34ae469618f4a2fcb824dfabe31932249f3645f9..2078addea7ef70a3a23801beb97a13fedcd4c8a7 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.h
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.h
|
| @@ -727,11 +727,18 @@ class CORE_EXPORT FrameView final
|
|
|
| // Paint properties (e.g., m_preTranslation, etc.) are built from the
|
| // FrameView's state (e.g., x(), y(), etc.) as well as inherited context.
|
| - // When these inputs change, setNeedsPaintPropertyUpdate will cause a property
|
| - // tree update during the next document lifecycle update.
|
| - // TODO(pdr): Add additional granularity such as the ability to signal that
|
| - // only a local paint property update is needed.
|
| - void setNeedsPaintPropertyUpdate() { m_needsPaintPropertyUpdate = true; }
|
| + // When these inputs change, setNeedsPaintPropertyUpdate will cause a paint
|
| + // property tree update during the next document lifecycle update.
|
| + // setNeedsPaintPropertyUpdate also sets the owning layout tree as needing a
|
| + // paint property update.
|
| + void setNeedsPaintPropertyUpdate();
|
| +#if DCHECK_IS_ON()
|
| + // Similar to setNeedsPaintPropertyUpdate() but does not set the owning layout
|
| + // tree as needing a paint property update.
|
| + void setOnlyThisNeedsPaintPropertyUpdateForTesting() {
|
| + m_needsPaintPropertyUpdate = true;
|
| + }
|
| +#endif
|
| void clearNeedsPaintPropertyUpdate() {
|
| DCHECK_EQ(lifecycle().state(), DocumentLifecycle::InPrePaint);
|
| m_needsPaintPropertyUpdate = false;
|
|
|