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

Unified Diff: Source/core/html/HTMLTableElement.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/HTMLTableElement.cpp
diff --git a/Source/core/html/HTMLTableElement.cpp b/Source/core/html/HTMLTableElement.cpp
index 7cc5939418e31d1bee1d40ad2ff497429989c4a3..c648673f6ef8492e3769387cb644e0285a267bc9 100644
--- a/Source/core/html/HTMLTableElement.cpp
+++ b/Source/core/html/HTMLTableElement.cpp
@@ -46,26 +46,20 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLTableElement::HTMLTableElement(const QualifiedName& tagName, Document& document)
- : HTMLElement(tagName, document)
+HTMLTableElement::HTMLTableElement(Document& document)
+ : HTMLElement(tableTag, document)
, m_borderAttr(false)
, m_borderColorAttr(false)
, m_frameAttr(false)
, m_rulesAttr(UnsetRules)
, m_padding(1)
{
- ASSERT(hasTagName(tableTag));
ScriptWrappable::init(this);
}
PassRefPtr<HTMLTableElement> HTMLTableElement::create(Document& document)
{
- return adoptRef(new HTMLTableElement(tableTag, document));
-}
-
-PassRefPtr<HTMLTableElement> HTMLTableElement::create(const QualifiedName& tagName, Document& document)
-{
- return adoptRef(new HTMLTableElement(tagName, document));
+ return adoptRef(new HTMLTableElement(document));
}
HTMLTableCaptionElement* HTMLTableElement::caption() const
@@ -166,7 +160,7 @@ PassRefPtr<HTMLElement> HTMLTableElement::createCaption()
{
if (HTMLTableCaptionElement* existingCaption = caption())
return existingCaption;
- RefPtr<HTMLTableCaptionElement> caption = HTMLTableCaptionElement::create(captionTag, document());
+ RefPtr<HTMLTableCaptionElement> caption = HTMLTableCaptionElement::create(document());
setCaption(caption, IGNORE_EXCEPTION);
return caption.release();
}

Powered by Google App Engine
This is Rietveld 408576698