summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGAnimatedBoolean.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGAnimatedBoolean.h')
-rw-r--r--Source/WebCore/svg/SVGAnimatedBoolean.h30
1 files changed, 14 insertions, 16 deletions
diff --git a/Source/WebCore/svg/SVGAnimatedBoolean.h b/Source/WebCore/svg/SVGAnimatedBoolean.h
index 996865d0e..6515a0531 100644
--- a/Source/WebCore/svg/SVGAnimatedBoolean.h
+++ b/Source/WebCore/svg/SVGAnimatedBoolean.h
@@ -17,10 +17,8 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGAnimatedBoolean_h
-#define SVGAnimatedBoolean_h
+#pragma once
-#if ENABLE(SVG)
#include "SVGAnimatedStaticPropertyTearOff.h"
#include "SVGAnimatedTypeAnimator.h"
@@ -30,7 +28,10 @@ typedef SVGAnimatedStaticPropertyTearOff<bool> SVGAnimatedBoolean;
// Helper macros to declare/define a SVGAnimatedBoolean object
#define DECLARE_ANIMATED_BOOLEAN(UpperProperty, LowerProperty) \
-DECLARE_ANIMATED_PROPERTY(SVGAnimatedBoolean, bool, UpperProperty, LowerProperty)
+DECLARE_ANIMATED_PROPERTY(SVGAnimatedBoolean, bool, UpperProperty, LowerProperty, )
+
+#define DECLARE_ANIMATED_BOOLEAN_OVERRIDE(UpperProperty, LowerProperty) \
+DECLARE_ANIMATED_PROPERTY(SVGAnimatedBoolean, bool, UpperProperty, LowerProperty, override)
#define DEFINE_ANIMATED_BOOLEAN(OwnerType, DOMAttribute, UpperProperty, LowerProperty) \
DEFINE_ANIMATED_PROPERTY(AnimatedBoolean, OwnerType, DOMAttribute, DOMAttribute.localName(), UpperProperty, LowerProperty)
@@ -41,19 +42,16 @@ class SVGAnimatedBooleanAnimator final : public SVGAnimatedTypeAnimator {
public:
SVGAnimatedBooleanAnimator(SVGAnimationElement*, SVGElement*);
- virtual std::unique_ptr<SVGAnimatedType> constructFromString(const String&) override;
- virtual std::unique_ptr<SVGAnimatedType> startAnimValAnimation(const SVGElementAnimatedPropertyList&) override;
- virtual void stopAnimValAnimation(const SVGElementAnimatedPropertyList&) override;
- virtual void resetAnimValToBaseVal(const SVGElementAnimatedPropertyList&, SVGAnimatedType*) override;
- virtual void animValWillChange(const SVGElementAnimatedPropertyList&) override;
- virtual void animValDidChange(const SVGElementAnimatedPropertyList&) override;
+ std::unique_ptr<SVGAnimatedType> constructFromString(const String&) override;
+ std::unique_ptr<SVGAnimatedType> startAnimValAnimation(const SVGElementAnimatedPropertyList&) override;
+ void stopAnimValAnimation(const SVGElementAnimatedPropertyList&) override;
+ void resetAnimValToBaseVal(const SVGElementAnimatedPropertyList&, SVGAnimatedType&) override;
+ void animValWillChange(const SVGElementAnimatedPropertyList&) override;
+ void animValDidChange(const SVGElementAnimatedPropertyList&) override;
- virtual void addAnimatedTypes(SVGAnimatedType*, SVGAnimatedType*) override;
- virtual void calculateAnimatedValue(float percentage, unsigned repeatCount, SVGAnimatedType*, SVGAnimatedType*, SVGAnimatedType*, SVGAnimatedType*) override;
- virtual float calculateDistance(const String& fromString, const String& toString) override;
+ void addAnimatedTypes(SVGAnimatedType*, SVGAnimatedType*) override;
+ void calculateAnimatedValue(float percentage, unsigned repeatCount, SVGAnimatedType*, SVGAnimatedType*, SVGAnimatedType*, SVGAnimatedType*) override;
+ float calculateDistance(const String& fromString, const String& toString) override;
};
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif