diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/svg/SVGZoomEvent.cpp | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
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) |