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

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: rebsaed 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
« no previous file with comments | « Source/core/svg/SVGZoomEvent.h ('k') | Source/core/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGZoomEvent.cpp
diff --git a/Source/core/svg/SVGZoomEvent.cpp b/Source/core/svg/SVGZoomEvent.cpp
index fe5d283270fb272b097473af9f6ab2f170518a0b..f78bd52eb80466f238b562cd34b2791385e53d95 100644
--- a/Source/core/svg/SVGZoomEvent.cpp
+++ b/Source/core/svg/SVGZoomEvent.cpp
@@ -23,6 +23,7 @@
#include "core/svg/SVGZoomEvent.h"
#include "core/events/ThreadLocalEventNames.h"
+#include "core/svg/SVGRectTearOff.h"
namespace WebCore {
@@ -33,9 +34,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
« no previous file with comments | « Source/core/svg/SVGZoomEvent.h ('k') | Source/core/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698