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

Unified Diff: Source/core/html/HTMLHeadElement.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/HTMLHeadElement.cpp
diff --git a/Source/core/html/HTMLHeadElement.cpp b/Source/core/html/HTMLHeadElement.cpp
index a0afa3049c304d3fdd09ad5e8df48c7411751b8c..8a25aa6a51d721bd7a15a189b6e4df6a32dce985 100644
--- a/Source/core/html/HTMLHeadElement.cpp
+++ b/Source/core/html/HTMLHeadElement.cpp
@@ -30,21 +30,15 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLHeadElement::HTMLHeadElement(const QualifiedName& tagName, Document& document)
- : HTMLElement(tagName, document)
+HTMLHeadElement::HTMLHeadElement(Document& document)
+ : HTMLElement(headTag, document)
{
- ASSERT(hasTagName(headTag));
ScriptWrappable::init(this);
}
PassRefPtr<HTMLHeadElement> HTMLHeadElement::create(Document& document)
{
- return adoptRef(new HTMLHeadElement(headTag, document));
-}
-
-PassRefPtr<HTMLHeadElement> HTMLHeadElement::create(const QualifiedName& tagName, Document& document)
-{
- return adoptRef(new HTMLHeadElement(tagName, document));
+ return adoptRef(new HTMLHeadElement(document));
}
}

Powered by Google App Engine
This is Rietveld 408576698