summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGLocatable.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGLocatable.h')
-rw-r--r--Source/WebCore/svg/SVGLocatable.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/Source/WebCore/svg/SVGLocatable.h b/Source/WebCore/svg/SVGLocatable.h
index 334343af1..acbe7e848 100644
--- a/Source/WebCore/svg/SVGLocatable.h
+++ b/Source/WebCore/svg/SVGLocatable.h
@@ -19,18 +19,16 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGLocatable_h
-#define SVGLocatable_h
+#pragma once
-#if ENABLE(SVG)
#include "AffineTransform.h"
+#include "ExceptionOr.h"
namespace WebCore {
class FloatRect;
class SVGElement;
-
-typedef int ExceptionCode;
+class SVGMatrix;
class SVGLocatable {
public:
@@ -45,7 +43,8 @@ public:
virtual FloatRect getBBox(StyleUpdateStrategy) = 0;
virtual AffineTransform getCTM(StyleUpdateStrategy) = 0;
virtual AffineTransform getScreenCTM(StyleUpdateStrategy) = 0;
- AffineTransform getTransformToElement(SVGElement*, ExceptionCode&, StyleUpdateStrategy = AllowStyleUpdate);
+
+ ExceptionOr<Ref<SVGMatrix>> getTransformToElement(SVGElement*, StyleUpdateStrategy = AllowStyleUpdate);
static SVGElement* nearestViewportElement(const SVGElement*);
static SVGElement* farthestViewportElement(const SVGElement*);
@@ -63,6 +62,3 @@ protected:
};
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif // SVGLocatable_h