summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGClipPathElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGClipPathElement.h')
-rw-r--r--Source/WebCore/svg/SVGClipPathElement.h30
1 files changed, 12 insertions, 18 deletions
diff --git a/Source/WebCore/svg/SVGClipPathElement.h b/Source/WebCore/svg/SVGClipPathElement.h
index d163097d4..8bb257b6c 100644
--- a/Source/WebCore/svg/SVGClipPathElement.h
+++ b/Source/WebCore/svg/SVGClipPathElement.h
@@ -18,10 +18,8 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGClipPathElement_h
-#define SVGClipPathElement_h
+#pragma once
-#if ENABLE(SVG)
#include "SVGAnimatedBoolean.h"
#include "SVGAnimatedEnumeration.h"
#include "SVGExternalResourcesRequired.h"
@@ -35,30 +33,26 @@ class RenderObject;
class SVGClipPathElement final : public SVGGraphicsElement,
public SVGExternalResourcesRequired {
public:
- static PassRefPtr<SVGClipPathElement> create(const QualifiedName&, Document&);
+ static Ref<SVGClipPathElement> create(const QualifiedName&, Document&);
private:
SVGClipPathElement(const QualifiedName&, Document&);
- virtual bool isValid() const override { return SVGTests::isValid(); }
- virtual bool needsPendingResourceHandling() const override { return false; }
+ bool isValid() const final { return SVGTests::isValid(); }
+ bool supportsFocus() const final { return false; }
+ bool needsPendingResourceHandling() const final { return false; }
- bool isSupportedAttribute(const QualifiedName&);
- virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
- virtual void svgAttributeChanged(const QualifiedName&) override;
- virtual void childrenChanged(const ChildChange&) override;
+ static bool isSupportedAttribute(const QualifiedName&);
+ void parseAttribute(const QualifiedName&, const AtomicString&) final;
+ void svgAttributeChanged(const QualifiedName&) final;
+ void childrenChanged(const ChildChange&) final;
- virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override;
+ RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) final;
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGClipPathElement)
DECLARE_ANIMATED_ENUMERATION(ClipPathUnits, clipPathUnits, SVGUnitTypes::SVGUnitType)
- DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired)
+ DECLARE_ANIMATED_BOOLEAN_OVERRIDE(ExternalResourcesRequired, externalResourcesRequired)
END_DECLARE_ANIMATED_PROPERTIES
};
-NODE_TYPE_CASTS(SVGClipPathElement)
-
-}
-
-#endif
-#endif
+} // namespace WebCore