Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(872)

Unified Diff: Source/core/svg/SVGZoomEvent.cpp

Issue 132233010: [SVG] SVGAnimatedRect migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/svg/SVGZoomEvent.cpp
diff --git a/Source/core/svg/SVGZoomEvent.cpp b/Source/core/svg/SVGZoomEvent.cpp
index fe5d283270fb272b097473af9f6ab2f170518a0b..79ec83d42bb3977626c96972f4afb0aac12d967b 100644
--- a/Source/core/svg/SVGZoomEvent.cpp
+++ b/Source/core/svg/SVGZoomEvent.cpp
@@ -20,9 +20,11 @@
*/
#include "config.h"
+
#include "core/svg/SVGZoomEvent.h"
#include "core/events/ThreadLocalEventNames.h"
+#include "core/svg/SVGRectTearOff.h"
namespace WebCore {
@@ -33,9 +35,11 @@ SVGZoomEvent::SVGZoomEvent()
ScriptWrappable::init(this);
}
-SVGRect SVGZoomEvent::zoomRectScreen() const
+PassRefPtr<SVGRectTearOff> SVGZoomEvent::zoomRectScreen() const
{
- return m_zoomRectScreen;
+ RefPtr<SVGRectTearOff> rectTearOff = SVGRectTearOff::create(SVGRect::create(), 0, PropertyIsNotAnimVal);
+ rectTearOff->setIsReadOnlyProperty();
+ return rectTearOff.release();
}
float SVGZoomEvent::previousScale() const

Powered by Google App Engine
This is Rietveld 408576698