diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/svg/SVGDefsElement.cpp | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/svg/SVGDefsElement.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGDefsElement.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
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> SVGDefsElement::create(const QualifiedName& tagName, Document& document) +Ref<SVGDefsElement> 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<RenderElement> SVGDefsElement::createElementRenderer(PassRef<RenderStyle> style) +RenderPtr<RenderElement> SVGDefsElement::createElementRenderer(RenderStyle&& style, const RenderTreePosition&) { - return createRenderer<RenderSVGHiddenContainer>(*this, std::move(style)); + return createRenderer<RenderSVGHiddenContainer>(*this, WTFMove(style)); } } - -#endif // ENABLE(SVG) |