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

Unified Diff: Source/core/html/HTMLTableElement.cpp

Issue 327633004: Apply DEFINE/DECLARE_NODE_FACTORY(T) macro to element factories with single Document& argument. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months 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
« no previous file with comments | « Source/core/html/HTMLTableElement.h ('k') | Source/core/html/HTMLTableRowElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTableElement.cpp
diff --git a/Source/core/html/HTMLTableElement.cpp b/Source/core/html/HTMLTableElement.cpp
index d077ed0332d8ba4bef4fa6e7292bd2f885ef7517..42973b33738553f0e308e7364fdbaff434ab5e34 100644
--- a/Source/core/html/HTMLTableElement.cpp
+++ b/Source/core/html/HTMLTableElement.cpp
@@ -51,7 +51,7 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLTableElement::HTMLTableElement(Document& document)
+inline HTMLTableElement::HTMLTableElement(Document& document)
: HTMLElement(tableTag, document)
, m_borderAttr(false)
, m_borderColorAttr(false)
@@ -62,10 +62,7 @@ HTMLTableElement::HTMLTableElement(Document& document)
ScriptWrappable::init(this);
}
-PassRefPtrWillBeRawPtr<HTMLTableElement> HTMLTableElement::create(Document& document)
-{
- return adoptRefWillBeRefCountedGarbageCollected(new HTMLTableElement(document));
-}
+DEFINE_NODE_FACTORY(HTMLTableElement)
HTMLTableCaptionElement* HTMLTableElement::caption() const
{
« no previous file with comments | « Source/core/html/HTMLTableElement.h ('k') | Source/core/html/HTMLTableRowElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698