summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGMPathElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGMPathElement.h')
-rw-r--r--Source/WebCore/svg/SVGMPathElement.h33
1 files changed, 12 insertions, 21 deletions
diff --git a/Source/WebCore/svg/SVGMPathElement.h b/Source/WebCore/svg/SVGMPathElement.h
index aa392fcbe..246973c79 100644
--- a/Source/WebCore/svg/SVGMPathElement.h
+++ b/Source/WebCore/svg/SVGMPathElement.h
@@ -17,10 +17,8 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGMPathElement_h
-#define SVGMPathElement_h
+#pragma once
-#if ENABLE(SVG)
#include "SVGAnimatedBoolean.h"
#include "SVGAnimatedString.h"
#include "SVGElement.h"
@@ -32,11 +30,9 @@ namespace WebCore {
class SVGPathElement;
-class SVGMPathElement final : public SVGElement,
- public SVGURIReference,
- public SVGExternalResourcesRequired {
+class SVGMPathElement final : public SVGElement, public SVGURIReference, public SVGExternalResourcesRequired {
public:
- static PassRefPtr<SVGMPathElement> create(const QualifiedName&, Document&);
+ static Ref<SVGMPathElement> create(const QualifiedName&, Document&);
virtual ~SVGMPathElement();
@@ -47,28 +43,23 @@ public:
private:
SVGMPathElement(const QualifiedName&, Document&);
- void buildPendingResource() override;
+ void buildPendingResource() final;
void clearResourceReferences();
- virtual InsertionNotificationRequest insertedInto(ContainerNode&) override;
- virtual void removedFrom(ContainerNode&) override;
+ InsertionNotificationRequest insertedInto(ContainerNode&) final;
+ void removedFrom(ContainerNode&) final;
- bool isSupportedAttribute(const QualifiedName&);
- virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
- virtual void svgAttributeChanged(const QualifiedName&) override;
+ void parseAttribute(const QualifiedName&, const AtomicString&) final;
+ void svgAttributeChanged(const QualifiedName&) final;
- virtual bool rendererIsNeeded(const RenderStyle&) override { return false; }
+ bool rendererIsNeeded(const RenderStyle&) final { return false; }
+ void finishedInsertingSubtree() final;
void notifyParentOfPathChange(ContainerNode*);
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGMPathElement)
- DECLARE_ANIMATED_STRING(Href, href)
- DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired)
+ DECLARE_ANIMATED_STRING_OVERRIDE(Href, href)
+ DECLARE_ANIMATED_BOOLEAN_OVERRIDE(ExternalResourcesRequired, externalResourcesRequired)
END_DECLARE_ANIMATED_PROPERTIES
};
-NODE_TYPE_CASTS(SVGMPathElement)
-
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif // SVGMPathElement_h