summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGSwitchElement.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/svg/SVGSwitchElement.cpp
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/svg/SVGSwitchElement.cpp')
-rw-r--r--Source/WebCore/svg/SVGSwitchElement.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/Source/WebCore/svg/SVGSwitchElement.cpp b/Source/WebCore/svg/SVGSwitchElement.cpp
index 25ce517cd..a40571ac9 100644
--- a/Source/WebCore/svg/SVGSwitchElement.cpp
+++ b/Source/WebCore/svg/SVGSwitchElement.cpp
@@ -19,8 +19,6 @@
*/
#include "config.h"
-
-#if ENABLE(SVG)
#include "SVGSwitchElement.h"
#include "ElementIterator.h"
@@ -44,9 +42,9 @@ inline SVGSwitchElement::SVGSwitchElement(const QualifiedName& tagName, Document
registerAnimatedPropertiesForSVGSwitchElement();
}
-PassRefPtr<SVGSwitchElement> SVGSwitchElement::create(const QualifiedName& tagName, Document& document)
+Ref<SVGSwitchElement> SVGSwitchElement::create(const QualifiedName& tagName, Document& document)
{
- return adoptRef(new SVGSwitchElement(tagName, document));
+ return adoptRef(*new SVGSwitchElement(tagName, document));
}
bool SVGSwitchElement::childShouldCreateRenderer(const Node& child) const
@@ -62,11 +60,9 @@ bool SVGSwitchElement::childShouldCreateRenderer(const Node& child) const
return false;
}
-RenderPtr<RenderElement> SVGSwitchElement::createElementRenderer(PassRef<RenderStyle> style)
+RenderPtr<RenderElement> SVGSwitchElement::createElementRenderer(RenderStyle&& style, const RenderTreePosition&)
{
- return createRenderer<RenderSVGTransformableContainer>(*this, std::move(style));
+ return createRenderer<RenderSVGTransformableContainer>(*this, WTFMove(style));
}
}
-
-#endif // ENABLE(SVG)