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

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

Powered by Google App Engine
This is Rietveld 408576698