summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGZoomEvent.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGZoomEvent.h')
-rw-r--r--Source/WebCore/svg/SVGZoomEvent.h29
1 files changed, 12 insertions, 17 deletions
diff --git a/Source/WebCore/svg/SVGZoomEvent.h b/Source/WebCore/svg/SVGZoomEvent.h
index 6e29dfd52..d7e3fd1ed 100644
--- a/Source/WebCore/svg/SVGZoomEvent.h
+++ b/Source/WebCore/svg/SVGZoomEvent.h
@@ -19,34 +19,34 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef SVGZoomEvent_h
-#define SVGZoomEvent_h
-#if ENABLE(SVG)
+#pragma once
#include "FloatRect.h"
-#include "SVGPoint.h"
#include "UIEvent.h"
namespace WebCore {
-class SVGZoomEvent : public UIEvent {
+class SVGPoint;
+class SVGRect;
+
+class SVGZoomEvent final : public UIEvent {
public:
- static PassRefPtr<SVGZoomEvent> create() { return adoptRef(new SVGZoomEvent); }
+ static Ref<SVGZoomEvent> createForBindings() { return adoptRef(*new SVGZoomEvent); }
// 'SVGZoomEvent' functions
- FloatRect zoomRectScreen() const;
+ Ref<SVGRect> zoomRectScreen() const;
float previousScale() const;
void setPreviousScale(float);
- SVGPoint previousTranslate() const;
+ Ref<SVGPoint> previousTranslate() const;
float newScale() const;
void setNewScale(float);
- SVGPoint newTranslate() const;
+ Ref<SVGPoint> newTranslate() const;
- virtual EventInterface eventInterface() const override;
+ EventInterface eventInterface() const final;
private:
SVGZoomEvent();
@@ -56,13 +56,8 @@ private:
FloatRect m_zoomRectScreen;
- SVGPoint m_newTranslate;
- SVGPoint m_previousTranslate;
+ FloatPoint m_newTranslate;
+ FloatPoint m_previousTranslate;
};
} // namespace WebCore
-
-#endif // ENABLE(SVG)
-#endif // SVGZoomEvent_h
-
-// vim:ts=4:noet