summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGTransformable.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGTransformable.h')
-rw-r--r--Source/WebCore/svg/SVGTransformable.h21
1 files changed, 8 insertions, 13 deletions
diff --git a/Source/WebCore/svg/SVGTransformable.h b/Source/WebCore/svg/SVGTransformable.h
index be79d1f99..b5e07175a 100644
--- a/Source/WebCore/svg/SVGTransformable.h
+++ b/Source/WebCore/svg/SVGTransformable.h
@@ -18,20 +18,18 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGTransformable_h
-#define SVGTransformable_h
+#pragma once
-#if ENABLE(SVG)
#include "SVGLocatable.h"
-#include "SVGTransform.h"
+#include "SVGTransformValue.h"
#include <wtf/text/WTFString.h>
namespace WebCore {
class AffineTransform;
-class SVGTransformList;
+class SVGTransformListValues;
-class SVGTransformable : virtual public SVGLocatable {
+class SVGTransformable : public SVGLocatable {
public:
enum TransformParsingMode {
ClearList,
@@ -40,15 +38,12 @@ public:
virtual ~SVGTransformable();
- static bool parseTransformAttribute(SVGTransformList&, const UChar*& ptr, const UChar* end, TransformParsingMode mode = ClearList);
- static bool parseTransformValue(unsigned type, const UChar*& ptr, const UChar* end, SVGTransform&);
- static SVGTransform::SVGTransformType parseTransformType(const String&);
+ static bool parseTransformAttribute(SVGTransformListValues&, const UChar*& ptr, const UChar* end, TransformParsingMode = ClearList);
+ static bool parseTransformValue(SVGTransformValue::SVGTransformType, const UChar*& ptr, const UChar* end, SVGTransformValue&);
+ static SVGTransformValue::SVGTransformType parseTransformType(const String&);
- virtual AffineTransform localCoordinateSpaceTransform(SVGLocatable::CTMScope) const override { return animatedLocalTransform(); }
+ AffineTransform localCoordinateSpaceTransform(SVGLocatable::CTMScope) const override { return animatedLocalTransform(); }
virtual AffineTransform animatedLocalTransform() const = 0;
};
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif // SVGTransformable_h