| Index: third_party/WebKit/Source/core/svg/SVGForeignObjectElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGForeignObjectElement.cpp b/third_party/WebKit/Source/core/svg/SVGForeignObjectElement.cpp
|
| index 1a411249b1e5dbbe15d7f943f6f1229ca9d9f739..16d5897f8770deffe63bfd70ab681ed321d5b035 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGForeignObjectElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGForeignObjectElement.cpp
|
| @@ -138,9 +138,9 @@ LayoutObject* SVGForeignObjectElement::createLayoutObject(
|
| bool SVGForeignObjectElement::layoutObjectIsNeeded(const ComputedStyle& style) {
|
| // Suppress foreignObject layoutObjects in SVG hidden containers.
|
| // (https://bugs.webkit.org/show_bug.cgi?id=87297)
|
| - // Note that we currently do not support foreignObject instantiation via <use>, hence it is safe
|
| - // to use parentElement() here. If that changes, this method should be updated to use
|
| - // parentOrShadowHostElement() instead.
|
| + // Note that we currently do not support foreignObject instantiation via
|
| + // <use>, hence it is safe to use parentElement() here. If that changes, this
|
| + // method should be updated to use parentOrShadowHostElement() instead.
|
| Element* ancestor = parentElement();
|
| while (ancestor && ancestor->isSVGElement()) {
|
| if (ancestor->layoutObject() &&
|
|
|