| 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 21e6e9cd7f463c54dd4d7ea778c4bf3770bf49ad..8358af1e2d87e058d6d3caa153980b72807220b8 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| @@ -365,7 +365,7 @@ void LayoutObject::addChild(LayoutObject* newChild, LayoutObject* beforeChild)
|
| // - layerTypeRequired() would return true for the <body>, creating a new Layer
|
| // - when the document is painted, both layers are painted. The <body> layer doesn't
|
| // know that it's inside a "hidden SVG subtree", and thus paints, even if it shouldn't.
|
| - // To avoid the problem alltogether, detect early if we're inside a hidden SVG subtree
|
| + // 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();
|
|
|