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

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

Powered by Google App Engine
This is Rietveld 408576698