diff options
Diffstat (limited to 'Source/WebCore/svg/SVGZoomEvent.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGZoomEvent.cpp | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/Source/WebCore/svg/SVGZoomEvent.cpp b/Source/WebCore/svg/SVGZoomEvent.cpp index 4ffde5f59..87ca4cebb 100644 --- a/Source/WebCore/svg/SVGZoomEvent.cpp +++ b/Source/WebCore/svg/SVGZoomEvent.cpp @@ -20,11 +20,10 @@ */ #include "config.h" - -#if ENABLE(SVG) - #include "SVGZoomEvent.h" -#include "EventNames.h" + +#include "SVGPoint.h" +#include "SVGRect.h" namespace WebCore { @@ -34,9 +33,9 @@ SVGZoomEvent::SVGZoomEvent() { } -FloatRect SVGZoomEvent::zoomRectScreen() const +Ref<SVGRect> SVGZoomEvent::zoomRectScreen() const { - return m_zoomRectScreen; + return SVGRect::create(m_zoomRectScreen); } float SVGZoomEvent::previousScale() const @@ -49,9 +48,9 @@ void SVGZoomEvent::setPreviousScale(float scale) m_previousScale = scale; } -SVGPoint SVGZoomEvent::previousTranslate() const +Ref<SVGPoint> SVGZoomEvent::previousTranslate() const { - return m_previousTranslate; + return SVGPoint::create(m_previousTranslate); } float SVGZoomEvent::newScale() const @@ -64,9 +63,9 @@ void SVGZoomEvent::setNewScale(float scale) m_newScale = scale; } -SVGPoint SVGZoomEvent::newTranslate() const +Ref<SVGPoint> SVGZoomEvent::newTranslate() const { - return m_newTranslate; + return SVGPoint::create(m_newTranslate); } EventInterface SVGZoomEvent::eventInterface() const @@ -75,5 +74,3 @@ EventInterface SVGZoomEvent::eventInterface() const } } // namespace WebCore - -#endif // ENABLE(SVG) |