summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGScriptElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/svg/SVGScriptElement.cpp')
-rw-r--r--WebCore/svg/SVGScriptElement.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/WebCore/svg/SVGScriptElement.cpp b/WebCore/svg/SVGScriptElement.cpp
index 4109aad..6532ac2 100644
--- a/WebCore/svg/SVGScriptElement.cpp
+++ b/WebCore/svg/SVGScriptElement.cpp
@@ -31,17 +31,16 @@
namespace WebCore {
-SVGScriptElement::SVGScriptElement(const QualifiedName& tagName, Document* doc, bool createdByParser)
- : SVGElement(tagName, doc)
- , SVGURIReference()
- , SVGExternalResourcesRequired()
+inline SVGScriptElement::SVGScriptElement(const QualifiedName& tagName, Document* document, bool createdByParser)
+ : SVGElement(tagName, document)
, m_data(this, this)
{
m_data.setCreatedByParser(createdByParser);
}
-SVGScriptElement::~SVGScriptElement()
+PassRefPtr<SVGScriptElement> SVGScriptElement::create(const QualifiedName& tagName, Document* document, bool createdByParser)
{
+ return adoptRef(new SVGScriptElement(tagName, document, createdByParser));
}
String SVGScriptElement::scriptContent() const