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

Unified Diff: Source/core/html/HTMLLabelElement.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/HTMLLabelElement.cpp
diff --git a/Source/core/html/HTMLLabelElement.cpp b/Source/core/html/HTMLLabelElement.cpp
index e5b985e961e371dfda91a56eec02096deef5de15..860305add7dc956fde475aff9ba61902e78de184 100644
--- a/Source/core/html/HTMLLabelElement.cpp
+++ b/Source/core/html/HTMLLabelElement.cpp
@@ -44,16 +44,15 @@ static bool supportsLabels(Element* element)
return toLabelableElement(element)->supportLabels();
}
-inline HTMLLabelElement::HTMLLabelElement(const QualifiedName& tagName, Document& document)
- : HTMLElement(tagName, document)
+inline HTMLLabelElement::HTMLLabelElement(Document& document)
+ : HTMLElement(labelTag, document)
{
- ASSERT(hasTagName(labelTag));
ScriptWrappable::init(this);
}
-PassRefPtr<HTMLLabelElement> HTMLLabelElement::create(const QualifiedName& tagName, Document& document)
+PassRefPtr<HTMLLabelElement> HTMLLabelElement::create(Document& document)
{
- return adoptRef(new HTMLLabelElement(tagName, document));
+ return adoptRef(new HTMLLabelElement(document));
}
bool HTMLLabelElement::rendererIsFocusable() const

Powered by Google App Engine
This is Rietveld 408576698