summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGDefsElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGDefsElement.h')
-rw-r--r--Source/WebCore/svg/SVGDefsElement.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/Source/WebCore/svg/SVGDefsElement.h b/Source/WebCore/svg/SVGDefsElement.h
index dc75b836a..ba0819cd6 100644
--- a/Source/WebCore/svg/SVGDefsElement.h
+++ b/Source/WebCore/svg/SVGDefsElement.h
@@ -18,10 +18,8 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGDefsElement_h
-#define SVGDefsElement_h
+#pragma once
-#if ENABLE(SVG)
#include "SVGAnimatedBoolean.h"
#include "SVGExternalResourcesRequired.h"
#include "SVGGraphicsElement.h"
@@ -31,21 +29,19 @@ namespace WebCore {
class SVGDefsElement final : public SVGGraphicsElement,
public SVGExternalResourcesRequired {
public:
- static PassRefPtr<SVGDefsElement> create(const QualifiedName&, Document&);
+ static Ref<SVGDefsElement> create(const QualifiedName&, Document&);
private:
SVGDefsElement(const QualifiedName&, Document&);
- virtual bool isValid() const override;
+ bool isValid() const final;
+ bool supportsFocus() const final { return false; }
- virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override;
+ RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) final;
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGDefsElement)
- DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired)
+ DECLARE_ANIMATED_BOOLEAN_OVERRIDE(ExternalResourcesRequired, externalResourcesRequired)
END_DECLARE_ANIMATED_PROPERTIES
};
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif