| Index: Source/core/rendering/RenderLayerModelObject.cpp
|
| diff --git a/Source/core/rendering/RenderLayerModelObject.cpp b/Source/core/rendering/RenderLayerModelObject.cpp
|
| index 16587ac73d9a3e1ee351f496c70c48d4c96923d5..0820cbd735449fc4f3a6d7574ab106cd31916293 100644
|
| --- a/Source/core/rendering/RenderLayerModelObject.cpp
|
| +++ b/Source/core/rendering/RenderLayerModelObject.cpp
|
| @@ -90,16 +90,14 @@ void RenderLayerModelObject::styleWillChange(StyleDifference diff, const RenderS
|
| {
|
| s_wasFloating = isFloating();
|
|
|
| - // If our z-index changes value or our visibility changes,
|
| - // we need to dirty our stacking context's z-order list.
|
| RenderStyle* oldStyle = style();
|
| if (oldStyle) {
|
| - // Do a repaint with the old style first through RenderLayerRepainter.
|
| - // RenderObject::styleWillChange takes care of repainting objects without RenderLayers.
|
| + // Mark layer for invalidation with the old style first.
|
| + // RenderObject::styleWillChange and RenderObject::setStyle take care of
|
| + // invalidating objects without RenderLayers and invalidating layers with the
|
| + // new style.
|
| if (parent() && diff.needsRepaintLayer()) {
|
| - // This is currently need to make non-layout-requiring updates work that impact descendant layers,
|
| - // such as changes to opacity or transform.
|
| - layer()->repainter().repaintIncludingNonCompositingDescendants();
|
| + layer()->setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants();
|
| if (oldStyle->hasClip() != newStyle.hasClip()
|
| || oldStyle->clip() != newStyle.clip())
|
| layer()->clipper().clearClipRectsIncludingDescendants();
|
|
|