| 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..369b952f4b5fa75ee2ae6223769ff921ded39309 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.h
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.h
|
| @@ -728,10 +728,15 @@ 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; }
|
| + // tree update during the next document lifecycle update. For subframes,
|
| + // the owning LayoutObject is marked as having a descendant needing an update.
|
| + void setNeedsPaintPropertyUpdate();
|
| + // Same as |setNeedsPaintPropertyUpdate| but does not notify the owning
|
| + // LayoutObject as having a descendant needing a paint property update.
|
| + void setNeedsPaintPropertyUpdateWithoutMarkingAncestors() {
|
| + DCHECK_EQ(lifecycle().state(), DocumentLifecycle::InPrePaint);
|
| + m_needsPaintPropertyUpdate = true;
|
| + }
|
| void clearNeedsPaintPropertyUpdate() {
|
| DCHECK_EQ(lifecycle().state(), DocumentLifecycle::InPrePaint);
|
| m_needsPaintPropertyUpdate = false;
|
|
|