diff options
Diffstat (limited to 'Source/WebCore/svg/SVGSwitchElement.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGSwitchElement.cpp | 12 |
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) |