Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(846)

Unified Diff: Source/core/html/HTMLHtmlElement.cpp

Issue 66643004: Remove QualifiedName argument from most HTMLElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Hack for XML prefix Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLHtmlElement.cpp
diff --git a/Source/core/html/HTMLHtmlElement.cpp b/Source/core/html/HTMLHtmlElement.cpp
index fe9f0ac9aa310646c05416460ae0e317613bd992..e4a56c917c41464cc80e0809bcb13e09f116c9b1 100644
--- a/Source/core/html/HTMLHtmlElement.cpp
+++ b/Source/core/html/HTMLHtmlElement.cpp
@@ -36,21 +36,15 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLHtmlElement::HTMLHtmlElement(const QualifiedName& tagName, Document& document)
- : HTMLElement(tagName, document)
+HTMLHtmlElement::HTMLHtmlElement(Document& document)
+ : HTMLElement(htmlTag, document)
{
- ASSERT(hasTagName(htmlTag));
ScriptWrappable::init(this);
}
PassRefPtr<HTMLHtmlElement> HTMLHtmlElement::create(Document& document)
{
- return adoptRef(new HTMLHtmlElement(htmlTag, document));
-}
-
-PassRefPtr<HTMLHtmlElement> HTMLHtmlElement::create(const QualifiedName& tagName, Document& document)
-{
- return adoptRef(new HTMLHtmlElement(tagName, document));
+ return adoptRef(new HTMLHtmlElement(document));
}
bool HTMLHtmlElement::isURLAttribute(const Attribute& attribute) const

Powered by Google App Engine
This is Rietveld 408576698