| 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 d80c768cf7ce15c604a70082f07d7519a0b6f39b..0c6f807ad672cb735dc2bb633c22be393993eedb 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| @@ -352,7 +352,7 @@ void LayoutObject::addChild(LayoutObject* newChild, LayoutObject* beforeChild)
|
| // To avoid the problem altogether, detect early if we're inside a hidden SVG subtree
|
| // and stop creating layers at all for these cases - they're not used anyways.
|
| if (newChild->hasLayer() && !layerCreationAllowedForSubtree())
|
| - toLayoutBoxModelObject(newChild)->layer()->removeOnlyThisLayer();
|
| + toLayoutBoxModelObject(newChild)->layer()->removeOnlyThisLayerAfterStyleChange();
|
| }
|
|
|
| void LayoutObject::removeChild(LayoutObject* oldChild)
|
|
|