Index: Source/core/html/HTMLScriptElement.cpp |
diff --git a/Source/core/html/HTMLScriptElement.cpp b/Source/core/html/HTMLScriptElement.cpp |
index 712f224267f2ad762e85ee3ef578e6d3818a1acc..fd54cc283c2ba7794aca68a4a160b8661b0917ec 100644 |
--- a/Source/core/html/HTMLScriptElement.cpp |
+++ b/Source/core/html/HTMLScriptElement.cpp |
@@ -37,17 +37,16 @@ namespace WebCore { |
using namespace HTMLNames; |
-inline HTMLScriptElement::HTMLScriptElement(const QualifiedName& tagName, Document& document, bool wasInsertedByParser, bool alreadyStarted) |
- : HTMLElement(tagName, document) |
+inline HTMLScriptElement::HTMLScriptElement(Document& document, bool wasInsertedByParser, bool alreadyStarted) |
+ : HTMLElement(scriptTag, document) |
, m_loader(ScriptLoader::create(this, wasInsertedByParser, alreadyStarted)) |
{ |
- ASSERT(hasTagName(scriptTag)); |
ScriptWrappable::init(this); |
} |
-PassRefPtr<HTMLScriptElement> HTMLScriptElement::create(const QualifiedName& tagName, Document& document, bool wasInsertedByParser, bool alreadyStarted) |
+PassRefPtr<HTMLScriptElement> HTMLScriptElement::create(Document& document, bool wasInsertedByParser, bool alreadyStarted) |
{ |
- return adoptRef(new HTMLScriptElement(tagName, document, wasInsertedByParser, alreadyStarted)); |
+ return adoptRef(new HTMLScriptElement(document, wasInsertedByParser, alreadyStarted)); |
} |
bool HTMLScriptElement::isURLAttribute(const Attribute& attribute) const |
@@ -173,7 +172,7 @@ void HTMLScriptElement::dispatchLoadEvent() |
PassRefPtr<Element> HTMLScriptElement::cloneElementWithoutAttributesAndChildren() |
{ |
- return adoptRef(new HTMLScriptElement(tagQName(), document(), false, m_loader->alreadyStarted())); |
+ return adoptRef(new HTMLScriptElement(document(), false, m_loader->alreadyStarted())); |
} |
} |