summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/svg/SVGElement.cpp')
-rw-r--r--WebCore/svg/SVGElement.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/svg/SVGElement.cpp b/WebCore/svg/SVGElement.cpp
index 37e4930..ee16e8f 100644
--- a/WebCore/svg/SVGElement.cpp
+++ b/WebCore/svg/SVGElement.cpp
@@ -52,13 +52,13 @@ namespace WebCore {
using namespace HTMLNames;
SVGElement::SVGElement(const QualifiedName& tagName, Document* document)
- : StyledElement(tagName, document, CreateSVGElementZeroRefCount)
+ : StyledElement(tagName, document, CreateSVGElement)
{
}
PassRefPtr<SVGElement> SVGElement::create(const QualifiedName& tagName, Document* document)
{
- return new SVGElement(tagName, document);
+ return adoptRef(new SVGElement(tagName, document));
}
SVGElement::~SVGElement()