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/SVGZoomEvent.h | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) (limited to 'Source/WebCore/svg/SVGZoomEvent.h') 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 create() { return adoptRef(new SVGZoomEvent); } + static Ref createForBindings() { return adoptRef(*new SVGZoomEvent); } // 'SVGZoomEvent' functions - FloatRect zoomRectScreen() const; + Ref zoomRectScreen() const; float previousScale() const; void setPreviousScale(float); - SVGPoint previousTranslate() const; + Ref previousTranslate() const; float newScale() const; void setNewScale(float); - SVGPoint newTranslate() const; + Ref 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 -- cgit v1.2.1