From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/svg/SVGAnimateMotionElement.h | 37 +++++++++++----------------- 1 file changed, 15 insertions(+), 22 deletions(-) (limited to 'Source/WebCore/svg/SVGAnimateMotionElement.h') 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 create(const QualifiedName&, Document&); + static Ref 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 -- cgit v1.2.1