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

Unified Diff: Source/core/html/HTMLNoScriptElement.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/HTMLNoScriptElement.h ('k') | Source/core/html/HTMLOListElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLNoScriptElement.cpp
diff --git a/Source/core/html/HTMLNoScriptElement.cpp b/Source/core/html/HTMLNoScriptElement.cpp
index f85191455de643a556a4784488bf43a56fcb0f5a..8828f3b321e3fb0ca6c5f9cb84954f3fcb6444a7 100644
--- a/Source/core/html/HTMLNoScriptElement.cpp
+++ b/Source/core/html/HTMLNoScriptElement.cpp
@@ -39,15 +39,12 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLNoScriptElement::HTMLNoScriptElement(Document& document)
+inline HTMLNoScriptElement::HTMLNoScriptElement(Document& document)
: HTMLElement(noscriptTag, document)
{
}
-PassRefPtrWillBeRawPtr<HTMLNoScriptElement> HTMLNoScriptElement::create(Document& document)
-{
- return adoptRefWillBeRefCountedGarbageCollected(new HTMLNoScriptElement(document));
-}
+DEFINE_NODE_FACTORY(HTMLNoScriptElement)
bool HTMLNoScriptElement::rendererIsNeeded(const RenderStyle& style)
{
« no previous file with comments | « Source/core/html/HTMLNoScriptElement.h ('k') | Source/core/html/HTMLOListElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698