diff options
Diffstat (limited to 'WebCore/html/HTMLScriptElement.cpp')
-rw-r--r-- | WebCore/html/HTMLScriptElement.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/WebCore/html/HTMLScriptElement.cpp b/WebCore/html/HTMLScriptElement.cpp index 83af32e..f4c3ae8 100644 --- a/WebCore/html/HTMLScriptElement.cpp +++ b/WebCore/html/HTMLScriptElement.cpp @@ -35,16 +35,17 @@ namespace WebCore { using namespace HTMLNames; -HTMLScriptElement::HTMLScriptElement(const QualifiedName& tagName, Document* doc, bool createdByParser) - : HTMLElement(tagName, doc) +inline HTMLScriptElement::HTMLScriptElement(const QualifiedName& tagName, Document* document, bool createdByParser) + : HTMLElement(tagName, document) , m_data(this, this) { ASSERT(hasTagName(scriptTag)); m_data.setCreatedByParser(createdByParser); } -HTMLScriptElement::~HTMLScriptElement() +PassRefPtr<HTMLScriptElement> HTMLScriptElement::create(const QualifiedName& tagName, Document* document, bool createdByParser) { + return new HTMLScriptElement(tagName, document, createdByParser); } bool HTMLScriptElement::isURLAttribute(Attribute* attr) const |