| Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| index 2049367d76af354817202b78d02a37dc94f97772..2e5d49956ccb987cb43e61b87bfcba2847fb71d8 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| @@ -2734,8 +2734,17 @@ void LayoutObject::willBeRemovedFromTree() {
|
|
|
| void LayoutObject::setNeedsPaintPropertyUpdate() {
|
| m_bitfields.setNeedsPaintPropertyUpdate(true);
|
| + // |paintInvalidationParent()| is used to ensure we continue marking across
|
| + // frame boundaries.
|
| + if (LayoutObject* ancestor = paintInvalidationParent())
|
| + ancestor->setDescendantNeedsPaintPropertyUpdate();
|
| +}
|
| +
|
| +void LayoutObject::setDescendantNeedsPaintPropertyUpdate() {
|
| + if (m_bitfields.descendantNeedsPaintPropertyUpdate())
|
| + return;
|
| + m_bitfields.setDescendantNeedsPaintPropertyUpdate(true);
|
|
|
| - // Mark all ancestors as having a descendant needing paint property updates.
|
| // |paintInvalidationParent()| is used to ensure we continue marking across
|
| // frame boundaries.
|
| LayoutObject* ancestor = paintInvalidationParent();
|
|
|