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

Unified Diff: Source/core/html/HTMLTableRowElement.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/HTMLTableRowElement.h ('k') | Source/core/html/HTMLTemplateElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTableRowElement.cpp
diff --git a/Source/core/html/HTMLTableRowElement.cpp b/Source/core/html/HTMLTableRowElement.cpp
index 9d5dea7280503bfeceb64b5a179b3ee5cf039fb6..df3fd53f2851dac2d9f537cb2ae45e38c3d5afdc 100644
--- a/Source/core/html/HTMLTableRowElement.cpp
+++ b/Source/core/html/HTMLTableRowElement.cpp
@@ -38,12 +38,14 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLTableRowElement::HTMLTableRowElement(Document& document)
+inline HTMLTableRowElement::HTMLTableRowElement(Document& document)
: HTMLTablePartElement(trTag, document)
{
ScriptWrappable::init(this);
}
+DEFINE_NODE_FACTORY(HTMLTableRowElement)
+
bool HTMLTableRowElement::hasLegalLinkAttribute(const QualifiedName& name) const
{
return name == backgroundAttr || HTMLTablePartElement::hasLegalLinkAttribute(name);
@@ -54,11 +56,6 @@ const QualifiedName& HTMLTableRowElement::subResourceAttributeName() const
return backgroundAttr;
}
-PassRefPtrWillBeRawPtr<HTMLTableRowElement> HTMLTableRowElement::create(Document& document)
-{
- return adoptRefWillBeRefCountedGarbageCollected(new HTMLTableRowElement(document));
-}
-
int HTMLTableRowElement::rowIndex() const
{
ContainerNode* table = parentNode();
« no previous file with comments | « Source/core/html/HTMLTableRowElement.h ('k') | Source/core/html/HTMLTemplateElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698