summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGAnimateMotionElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGAnimateMotionElement.h')
-rw-r--r--Source/WebCore/svg/SVGAnimateMotionElement.h37
1 files changed, 15 insertions, 22 deletions
diff --git a/Source/WebCore/svg/SVGAnimateMotionElement.h b/Source/WebCore/svg/SVGAnimateMotionElement.h
index a7057a82b..df3dc385d 100644
--- a/Source/WebCore/svg/SVGAnimateMotionElement.h
+++ b/Source/WebCore/svg/SVGAnimateMotionElement.h
@@ -18,9 +18,8 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGAnimateMotionElement_h
-#define SVGAnimateMotionElement_h
-#if ENABLE(SVG)
+#pragma once
+
#include "Path.h"
#include "SVGAnimationElement.h"
@@ -30,26 +29,25 @@ class AffineTransform;
class SVGAnimateMotionElement final : public SVGAnimationElement {
public:
- static PassRefPtr<SVGAnimateMotionElement> create(const QualifiedName&, Document&);
+ static Ref<SVGAnimateMotionElement> create(const QualifiedName&, Document&);
void updateAnimationPath();
private:
SVGAnimateMotionElement(const QualifiedName&, Document&);
- virtual bool hasValidAttributeType() override;
- virtual bool hasValidAttributeName() override;
+ bool hasValidAttributeType() override;
+ bool hasValidAttributeName() override;
- bool isSupportedAttribute(const QualifiedName&);
- virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
+ void parseAttribute(const QualifiedName&, const AtomicString&) override;
- virtual void resetAnimatedType() override;
- virtual void clearAnimatedType(SVGElement* targetElement) override;
- virtual bool calculateToAtEndOfDurationValue(const String& toAtEndOfDurationString) override;
- virtual bool calculateFromAndToValues(const String& fromString, const String& toString) override;
- virtual bool calculateFromAndByValues(const String& fromString, const String& byString) override;
- virtual void calculateAnimatedValue(float percentage, unsigned repeatCount, SVGSMILElement* resultElement) override;
- virtual void applyResultsToTarget() override;
- virtual float calculateDistance(const String& fromString, const String& toString) override;
+ void resetAnimatedType() override;
+ void clearAnimatedType(SVGElement* targetElement) override;
+ bool calculateToAtEndOfDurationValue(const String& toAtEndOfDurationString) override;
+ bool calculateFromAndToValues(const String& fromString, const String& toString) override;
+ bool calculateFromAndByValues(const String& fromString, const String& byString) override;
+ void calculateAnimatedValue(float percentage, unsigned repeatCount, SVGSMILElement* resultElement) override;
+ void applyResultsToTarget() override;
+ float calculateDistance(const String& fromString, const String& toString) override;
enum RotateMode {
RotateAngle,
@@ -61,7 +59,7 @@ private:
bool m_hasToPointAtEndOfDuration;
- virtual void updateAnimationMode() override;
+ void updateAnimationMode() override;
// Note: we do not support percentage values for to/from coords as the spec implies we should (opera doesn't either)
FloatPoint m_fromPoint;
@@ -71,10 +69,5 @@ private:
Path m_path;
Path m_animationPath;
};
-
-NODE_TYPE_CASTS(SVGAnimateMotionElement)
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif // SVGAnimateMotionElement_h