From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/svg/SVGDefsElement.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'Source/WebCore/svg/SVGDefsElement.cpp') diff --git a/Source/WebCore/svg/SVGDefsElement.cpp b/Source/WebCore/svg/SVGDefsElement.cpp index 6ff2f6abb..f2fd3ed31 100644 --- a/Source/WebCore/svg/SVGDefsElement.cpp +++ b/Source/WebCore/svg/SVGDefsElement.cpp @@ -19,8 +19,6 @@ */ #include "config.h" - -#if ENABLE(SVG) #include "SVGDefsElement.h" #include "RenderSVGHiddenContainer.h" @@ -43,9 +41,9 @@ inline SVGDefsElement::SVGDefsElement(const QualifiedName& tagName, Document& do registerAnimatedPropertiesForSVGDefsElement(); } -PassRefPtr SVGDefsElement::create(const QualifiedName& tagName, Document& document) +Ref SVGDefsElement::create(const QualifiedName& tagName, Document& document) { - return adoptRef(new SVGDefsElement(tagName, document)); + return adoptRef(*new SVGDefsElement(tagName, document)); } bool SVGDefsElement::isValid() const @@ -53,11 +51,9 @@ bool SVGDefsElement::isValid() const return SVGTests::isValid(); } -RenderPtr SVGDefsElement::createElementRenderer(PassRef style) +RenderPtr SVGDefsElement::createElementRenderer(RenderStyle&& style, const RenderTreePosition&) { - return createRenderer(*this, std::move(style)); + return createRenderer(*this, WTFMove(style)); } } - -#endif // ENABLE(SVG) -- cgit v1.2.1