Chromium Code Reviews| Index: Source/core/rendering/RenderLayerModelObject.cpp |
| diff --git a/Source/core/rendering/RenderLayerModelObject.cpp b/Source/core/rendering/RenderLayerModelObject.cpp |
| index 6edec16bd01f8d54abaee3bd93bf4541cc58f009..23147a467236e056aca1e61cb12001c4c2cb6ec1 100644 |
| --- a/Source/core/rendering/RenderLayerModelObject.cpp |
| +++ b/Source/core/rendering/RenderLayerModelObject.cpp |
| @@ -96,15 +96,12 @@ void RenderLayerModelObject::styleWillChange(StyleDifference diff, const RenderS |
| // we need to dirty our stacking context's z-order list. |
| RenderStyle* oldStyle = style(); |
| if (oldStyle && newStyle) { |
| - if (parent()) { |
| - // Do a repaint with the old style first, e.g., for example if we go from |
| - // having an outline to not having an outline. |
| - if (diff == StyleDifferenceRepaintLayer) { |
| - layer()->repainter().repaintIncludingDescendants(); |
| - if (oldStyle->clip() != newStyle->clip()) |
| - layer()->clipper().clearClipRectsIncludingDescendants(); |
| - } else if (diff == StyleDifferenceRepaint || newStyle->outlineSize() < oldStyle->outlineSize()) |
| - repaint(); |
| + // Do a repaint with the old style first, e.g., for example if we go from |
| + // having an outline to not having an outline. |
|
esprehn
2014/03/31 17:19:50
This comment is now stale. Please remove it.
Julien - ping for review
2014/03/31 18:04:04
We still generate an invalidation with the old sty
|
| + if (parent() && diff == StyleDifferenceRepaintLayer) { |
| + layer()->repainter().repaintIncludingDescendants(); |
| + if (oldStyle->clip() != newStyle->clip()) |
| + layer()->clipper().clearClipRectsIncludingDescendants(); |
| } |
| if (diff == StyleDifferenceLayout || diff == StyleDifferenceSimplifiedLayout) { |