diff options
Diffstat (limited to 'WebCore/svg/SVGAElement.cpp')
-rw-r--r-- | WebCore/svg/SVGAElement.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/WebCore/svg/SVGAElement.cpp b/WebCore/svg/SVGAElement.cpp index a2a4e73..b0ffc74 100644 --- a/WebCore/svg/SVGAElement.cpp +++ b/WebCore/svg/SVGAElement.cpp @@ -45,17 +45,14 @@ namespace WebCore { -SVGAElement::SVGAElement(const QualifiedName& tagName, Document *doc) - : SVGStyledTransformableElement(tagName, doc) - , SVGURIReference() - , SVGTests() - , SVGLangSpace() - , SVGExternalResourcesRequired() +inline SVGAElement::SVGAElement(const QualifiedName& tagName, Document* document) + : SVGStyledTransformableElement(tagName, document) { } -SVGAElement::~SVGAElement() +PassRefPtr<SVGAElement> SVGAElement::create(const QualifiedName& tagName, Document* document) { + return adoptRef(new SVGAElement(tagName, document)); } String SVGAElement::title() const @@ -222,7 +219,7 @@ bool SVGAElement::childShouldCreateRenderer(Node* child) const if (child->hasTagName(SVGNames::aTag)) return false; if (parent() && parent()->isSVGElement()) - return static_cast<SVGElement*>(parent())->childShouldCreateRenderer(child); + return parent()->childShouldCreateRenderer(child); return SVGElement::childShouldCreateRenderer(child); } |