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

Unified Diff: Source/core/html/HTMLFontElement.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/HTMLFontElement.h ('k') | Source/core/html/HTMLFrameElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLFontElement.cpp
diff --git a/Source/core/html/HTMLFontElement.cpp b/Source/core/html/HTMLFontElement.cpp
index 9932dc2bad5b0eaef739a95217cdbdf8629b138e..6bfb18d8ff483d99c045f8ca113cabf25b04649e 100644
--- a/Source/core/html/HTMLFontElement.cpp
+++ b/Source/core/html/HTMLFontElement.cpp
@@ -38,16 +38,13 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLFontElement::HTMLFontElement(Document& document)
+inline HTMLFontElement::HTMLFontElement(Document& document)
: HTMLElement(fontTag, document)
{
ScriptWrappable::init(this);
}
-PassRefPtrWillBeRawPtr<HTMLFontElement> HTMLFontElement::create(Document& document)
-{
- return adoptRefWillBeRefCountedGarbageCollected(new HTMLFontElement(document));
-}
+DEFINE_NODE_FACTORY(HTMLFontElement)
// http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#fonts-and-colors
template <typename CharacterType>
« no previous file with comments | « Source/core/html/HTMLFontElement.h ('k') | Source/core/html/HTMLFrameElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698