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

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

Powered by Google App Engine
This is Rietveld 408576698