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

Unified Diff: Source/core/svg/SVGSwitchElement.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/SVGSwitchElement.h ('k') | Source/core/svg/SVGSymbolElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGSwitchElement.cpp
diff --git a/Source/core/svg/SVGSwitchElement.cpp b/Source/core/svg/SVGSwitchElement.cpp
index 5ed31253c95da89d183c3230efac542ada0db652..215c0d09d3e1d3c49e72fd9d80678186e56b1b8e 100644
--- a/Source/core/svg/SVGSwitchElement.cpp
+++ b/Source/core/svg/SVGSwitchElement.cpp
@@ -28,7 +28,7 @@
namespace WebCore {
-SVGSwitchElement::SVGSwitchElement(Document& document)
+inline SVGSwitchElement::SVGSwitchElement(Document& document)
: SVGGraphicsElement(SVGNames::switchTag, document)
{
ScriptWrappable::init(this);
@@ -36,6 +36,8 @@ SVGSwitchElement::SVGSwitchElement(Document& document)
UseCounter::count(document, UseCounter::SVGSwitchElement);
}
+DEFINE_NODE_FACTORY(SVGSwitchElement)
+
RenderObject* SVGSwitchElement::createRenderer(RenderStyle*)
{
return new RenderSVGTransformableContainer(this);
« no previous file with comments | « Source/core/svg/SVGSwitchElement.h ('k') | Source/core/svg/SVGSymbolElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698