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

Unified Diff: Source/core/html/HTMLHRElement.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/HTMLHRElement.h ('k') | Source/core/html/HTMLHeadElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLHRElement.cpp
diff --git a/Source/core/html/HTMLHRElement.cpp b/Source/core/html/HTMLHRElement.cpp
index c3eac3359411b5770880cfc4f9cfa79d3b8e7d37..c8b2c2dd830f11f631386d4c100c91f031728fb4 100644
--- a/Source/core/html/HTMLHRElement.cpp
+++ b/Source/core/html/HTMLHRElement.cpp
@@ -33,16 +33,13 @@ namespace WebCore {
using namespace HTMLNames;
-HTMLHRElement::HTMLHRElement(Document& document)
+inline HTMLHRElement::HTMLHRElement(Document& document)
: HTMLElement(hrTag, document)
{
ScriptWrappable::init(this);
}
-PassRefPtrWillBeRawPtr<HTMLHRElement> HTMLHRElement::create(Document& document)
-{
- return adoptRefWillBeRefCountedGarbageCollected(new HTMLHRElement(document));
-}
+DEFINE_NODE_FACTORY(HTMLHRElement)
bool HTMLHRElement::isPresentationAttribute(const QualifiedName& name) const
{
« no previous file with comments | « Source/core/html/HTMLHRElement.h ('k') | Source/core/html/HTMLHeadElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698