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

Unified Diff: Source/core/html/HTMLDialogElement.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/HTMLDialogElement.h ('k') | Source/core/html/HTMLDirectoryElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLDialogElement.cpp
diff --git a/Source/core/html/HTMLDialogElement.cpp b/Source/core/html/HTMLDialogElement.cpp
index feda559f1137cb14b79a783c1e75fbca3fb0533f..5eb8125e5345d6253140dcd2ac61e76bbd96a4f2 100644
--- a/Source/core/html/HTMLDialogElement.cpp
+++ b/Source/core/html/HTMLDialogElement.cpp
@@ -89,7 +89,7 @@ static void inertSubtreesChanged(Document& document)
cache->childrenChanged(cache->getOrCreate(&topDocument));
}
-HTMLDialogElement::HTMLDialogElement(Document& document)
+inline HTMLDialogElement::HTMLDialogElement(Document& document)
: HTMLElement(dialogTag, document)
, m_centeringMode(NotCentered)
, m_centeredPosition(0)
@@ -98,10 +98,7 @@ HTMLDialogElement::HTMLDialogElement(Document& document)
ScriptWrappable::init(this);
}
-PassRefPtrWillBeRawPtr<HTMLDialogElement> HTMLDialogElement::create(Document& document)
-{
- return adoptRefWillBeRefCountedGarbageCollected(new HTMLDialogElement(document));
-}
+DEFINE_NODE_FACTORY(HTMLDialogElement)
void HTMLDialogElement::close(const String& returnValue, ExceptionState& exceptionState)
{
« no previous file with comments | « Source/core/html/HTMLDialogElement.h ('k') | Source/core/html/HTMLDirectoryElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698