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

Unified Diff: Source/core/svg/SVGViewElement.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/svg/SVGViewElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGViewElement.cpp
diff --git a/Source/core/svg/SVGViewElement.cpp b/Source/core/svg/SVGViewElement.cpp
index 1dad2a97f2b24c4c9ed057187e40fe16579baa60..24e41bac74dca1b366971cdd8cbac524330233a1 100644
--- a/Source/core/svg/SVGViewElement.cpp
+++ b/Source/core/svg/SVGViewElement.cpp
@@ -24,7 +24,7 @@
namespace WebCore {
-SVGViewElement::SVGViewElement(Document& document)
+inline SVGViewElement::SVGViewElement(Document& document)
: SVGElement(SVGNames::viewTag, document)
, SVGFitToViewBox(this)
, m_viewTarget(SVGStaticStringList::create(this, SVGNames::viewTargetAttr))
@@ -34,6 +34,8 @@ SVGViewElement::SVGViewElement(Document& document)
addToPropertyMap(m_viewTarget);
}
+DEFINE_NODE_FACTORY(SVGViewElement)
+
bool SVGViewElement::isSupportedAttribute(const QualifiedName& attrName)
{
DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
« no previous file with comments | « Source/core/svg/SVGViewElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698