| Index: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
|
| index 17369a27025b82ed5aa032f5c45b5cd8f8cb0724..3271981ad0d0d28a9d695e1f70b0a6fd5115d775 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
|
| @@ -298,6 +298,20 @@ void LayoutBoxModelObject::styleDidChange(StyleDifference diff,
|
| }
|
| }
|
|
|
| + if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) {
|
| + // hasLayer status will affect whether to create localBorderBoxProperties.
|
| + if (hadLayer != hasLayer()) {
|
| + setNeedsPaintPropertyUpdate();
|
| + } else if (oldStyle && oldStyle->position() != styleRef().position() &&
|
| + (oldStyle->position() == FixedPosition ||
|
| + styleRef().position() == FixedPosition)) {
|
| + // Fixed-position status affects whether to create paintOffsetTranslation.
|
| + // TODO(chrishtr): Update the condition here when changing the condition
|
| + // in PaintPropertyTreeBuilder::updatePaintOffsetTranslation().
|
| + setNeedsPaintPropertyUpdate();
|
| + }
|
| + }
|
| +
|
| if (layer()) {
|
| layer()->styleDidChange(diff, oldStyle);
|
| if (hadLayer && layer()->isSelfPaintingLayer() != layerWasSelfPainting)
|
|
|