diff options
Diffstat (limited to 'WebCore/svg/SVGAElement.cpp')
-rw-r--r-- | WebCore/svg/SVGAElement.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/WebCore/svg/SVGAElement.cpp b/WebCore/svg/SVGAElement.cpp index 8e429d0..8e0e56e 100644 --- a/WebCore/svg/SVGAElement.cpp +++ b/WebCore/svg/SVGAElement.cpp @@ -121,7 +121,7 @@ void SVGAElement::synchronizeProperty(const QualifiedName& attrName) RenderObject* SVGAElement::createRenderer(RenderArena* arena, RenderStyle*) { - if (static_cast<SVGElement*>(parent())->isTextContent()) + if (static_cast<SVGElement*>(parentNode())->isTextContent()) return new (arena) RenderSVGInline(this); return new (arena) RenderSVGTransformableContainer(this); @@ -207,8 +207,8 @@ bool SVGAElement::childShouldCreateRenderer(Node* child) const // The 'a' element may contain any element that its parent may contain, except itself. if (child->hasTagName(SVGNames::aTag)) return false; - if (parent() && parent()->isSVGElement()) - return parent()->childShouldCreateRenderer(child); + if (parentNode() && parentNode()->isSVGElement()) + return parentNode()->childShouldCreateRenderer(child); return SVGElement::childShouldCreateRenderer(child); } |