summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGDefsElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGDefsElement.cpp')
-rw-r--r--Source/WebCore/svg/SVGDefsElement.cpp12
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)