diff options
Diffstat (limited to 'Source/WebCore/svg/SVGPolygonElement.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGPolygonElement.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/WebCore/svg/SVGPolygonElement.cpp b/Source/WebCore/svg/SVGPolygonElement.cpp index 2540bedb0..5833e438b 100644 --- a/Source/WebCore/svg/SVGPolygonElement.cpp +++ b/Source/WebCore/svg/SVGPolygonElement.cpp @@ -19,9 +19,8 @@ */ #include "config.h" - -#if ENABLE(SVG) #include "SVGPolygonElement.h" + #include "SVGNames.h" namespace WebCore { @@ -32,11 +31,9 @@ inline SVGPolygonElement::SVGPolygonElement(const QualifiedName& tagName, Docume ASSERT(hasTagName(SVGNames::polygonTag)); } -PassRefPtr<SVGPolygonElement> SVGPolygonElement::create(const QualifiedName& tagName, Document& document) +Ref<SVGPolygonElement> SVGPolygonElement::create(const QualifiedName& tagName, Document& document) { - return adoptRef(new SVGPolygonElement(tagName, document)); + return adoptRef(*new SVGPolygonElement(tagName, document)); } } - -#endif // ENABLE(SVG) |