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

Unified Diff: Source/core/html/HTMLRTElement.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/HTMLRTElement.h ('k') | Source/core/html/HTMLRubyElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLRTElement.cpp
diff --git a/Source/core/html/HTMLRTElement.cpp b/Source/core/html/HTMLRTElement.cpp
index 345c268a93840987819f91f67aa31e9090f5fa82..2f5e782b8b13901bd8c96d1335cf020cfcf0f743 100644
--- a/Source/core/html/HTMLRTElement.cpp
+++ b/Source/core/html/HTMLRTElement.cpp
@@ -12,15 +12,12 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLRTElement::HTMLRTElement(Document& document)
+inline HTMLRTElement::HTMLRTElement(Document& document)
: HTMLElement(rtTag, document)
{
}
-PassRefPtrWillBeRawPtr<HTMLRTElement> HTMLRTElement::create(Document& document)
-{
- return adoptRefWillBeRefCountedGarbageCollected(new HTMLRTElement(document));
-}
+DEFINE_NODE_FACTORY(HTMLRTElement)
RenderObject* HTMLRTElement::createRenderer(RenderStyle* style)
{
« no previous file with comments | « Source/core/html/HTMLRTElement.h ('k') | Source/core/html/HTMLRubyElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698