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

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

Powered by Google App Engine
This is Rietveld 408576698