Index: Source/core/svg/SVGForeignObjectElement.cpp |
diff --git a/Source/core/svg/SVGForeignObjectElement.cpp b/Source/core/svg/SVGForeignObjectElement.cpp |
index be23af376a9f2e4f2322cbb8f2764a4408ab1e8a..94e543a6a218fe2afa9f208d8137e9de9d585e0a 100644 |
--- a/Source/core/svg/SVGForeignObjectElement.cpp |
+++ b/Source/core/svg/SVGForeignObjectElement.cpp |
@@ -122,7 +122,7 @@ void SVGForeignObjectElement::svgAttributeChanged(const QualifiedName& attrName) |
isWidthHeightAttribute ? StyleChangeReasonForTracing::create(StyleChangeReason::SVGContainerSizeChange) : StyleChangeReasonForTracing::fromAttribute(attrName)); |
updateRelativeLengthsInformation(); |
- if (LayoutObject* renderer = this->renderer()) |
+ if (LayoutObject* renderer = this->layoutObject()) |
markForLayoutAndParentResourceInvalidation(renderer); |
} |
} |
@@ -141,7 +141,7 @@ bool SVGForeignObjectElement::rendererIsNeeded(const LayoutStyle& style) |
// parentOrShadowHostElement() instead. |
Element* ancestor = parentElement(); |
while (ancestor && ancestor->isSVGElement()) { |
- if (ancestor->renderer() && ancestor->renderer()->isSVGHiddenContainer()) |
+ if (ancestor->layoutObject() && ancestor->layoutObject()->isSVGHiddenContainer()) |
return false; |
ancestor = ancestor->parentElement(); |