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

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

Issue 66643004: Remove QualifiedName argument from most HTMLElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/HTMLBodyElement.cpp
diff --git a/Source/core/html/HTMLBodyElement.cpp b/Source/core/html/HTMLBodyElement.cpp
index ad0cbb2c37199a28b50cae10dd131a994b7ed52a..182ec0aa1af594a8ad4242dd00112e0bf39ff8d9 100644
--- a/Source/core/html/HTMLBodyElement.cpp
+++ b/Source/core/html/HTMLBodyElement.cpp
@@ -41,21 +41,15 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLBodyElement::HTMLBodyElement(const QualifiedName& tagName, Document& document)
- : HTMLElement(tagName, document)
+HTMLBodyElement::HTMLBodyElement(Document& document)
+ : HTMLElement(bodyTag, document)
{
- ASSERT(hasTagName(bodyTag));
ScriptWrappable::init(this);
}
PassRefPtr<HTMLBodyElement> HTMLBodyElement::create(Document& document)
{
- return adoptRef(new HTMLBodyElement(bodyTag, document));
-}
-
-PassRefPtr<HTMLBodyElement> HTMLBodyElement::create(const QualifiedName& tagName, Document& document)
-{
- return adoptRef(new HTMLBodyElement(tagName, document));
+ return adoptRef(new HTMLBodyElement(document));
}
HTMLBodyElement::~HTMLBodyElement()

Powered by Google App Engine
This is Rietveld 408576698