summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGUnknownElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGUnknownElement.h')
-rw-r--r--Source/WebCore/svg/SVGUnknownElement.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/Source/WebCore/svg/SVGUnknownElement.h b/Source/WebCore/svg/SVGUnknownElement.h
index cb6b65a5f..713f83d59 100644
--- a/Source/WebCore/svg/SVGUnknownElement.h
+++ b/Source/WebCore/svg/SVGUnknownElement.h
@@ -23,10 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef SVGUnknownElement_h
-#define SVGUnknownElement_h
-
-#if ENABLE(SVG)
+#pragma once
#include "SVGElement.h"
@@ -40,9 +37,9 @@ namespace WebCore {
// false to make sure we don't attempt to render such elements.
class SVGUnknownElement final : public SVGElement {
public:
- static PassRefPtr<SVGUnknownElement> create(const QualifiedName& tagName, Document& document)
+ static Ref<SVGUnknownElement> create(const QualifiedName& tagName, Document& document)
{
- return adoptRef(new SVGUnknownElement(tagName, document));
+ return adoptRef(*new SVGUnknownElement(tagName, document));
}
private:
@@ -51,11 +48,7 @@ private:
{
}
- virtual bool rendererIsNeeded(const RenderStyle&) override { return false; }
+ bool rendererIsNeeded(const RenderStyle&) final { return false; }
};
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-
-#endif // SVGUnknownElement_h