| 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 05643deba378b8642aee9c3e9e8619f8f2115a49..c34902ecec7e5da81b2824dc66d53d77890c1574 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| @@ -1891,6 +1891,13 @@ void LayoutObject::styleDidChange(StyleDifference diff,
|
| frame->localFrameRoot()->eventHandler().scheduleCursorUpdate();
|
| }
|
| }
|
| +
|
| + if (diff.needsPaintInvalidation() && oldStyle) {
|
| + if (resolveColor(*oldStyle, CSSPropertyBackgroundColor) !=
|
| + resolveColor(CSSPropertyBackgroundColor) ||
|
| + oldStyle->backgroundLayers() != styleRef().backgroundLayers())
|
| + setBackgroundChangedSinceLastPaintInvalidation();
|
| + }
|
| }
|
|
|
| void LayoutObject::propagateStyleToAnonymousChildren() {
|
| @@ -3451,6 +3458,7 @@ void LayoutObject::clearPaintInvalidationFlags() {
|
| m_bitfields.setMayNeedPaintInvalidationSubtree(false);
|
| m_bitfields.setMayNeedPaintInvalidationAnimatedBackgroundImage(false);
|
| m_bitfields.setShouldInvalidateSelection(false);
|
| + m_bitfields.setBackgroundChangedSinceLastPaintInvalidation(false);
|
| }
|
|
|
| bool LayoutObject::isAllowedToModifyLayoutTreeStructure(Document& document) {
|
|
|