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

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

Issue 132233016: [SVG] SVGAnimatedPointList migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: set NeedsRebaseline 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/SVGZoomEvent.idl » ('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 f78bd52eb80466f238b562cd34b2791385e53d95..a65cca366e6c889dd4a2f00e82410ab6738b5ad9 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/SVGPointTearOff.h"
#include "core/svg/SVGRectTearOff.h"
namespace WebCore {
@@ -51,9 +52,11 @@ void SVGZoomEvent::setPreviousScale(float scale)
m_previousScale = scale;
}
-SVGPoint SVGZoomEvent::previousTranslate() const
+PassRefPtr<SVGPointTearOff> SVGZoomEvent::previousTranslate() const
{
- return m_previousTranslate;
+ RefPtr<SVGPointTearOff> pointTearOff = SVGPointTearOff::create(SVGPoint::create(m_previousTranslate), 0, PropertyIsNotAnimVal);
+ pointTearOff->setIsReadOnlyProperty();
+ return pointTearOff.release();
}
float SVGZoomEvent::newScale() const
@@ -66,9 +69,11 @@ void SVGZoomEvent::setNewScale(float scale)
m_newScale = scale;
}
-SVGPoint SVGZoomEvent::newTranslate() const
+PassRefPtr<SVGPointTearOff> SVGZoomEvent::newTranslate() const
{
- return m_newTranslate;
+ RefPtr<SVGPointTearOff> pointTearOff = SVGPointTearOff::create(SVGPoint::create(m_newTranslate), 0, PropertyIsNotAnimVal);
+ pointTearOff->setIsReadOnlyProperty();
+ return pointTearOff.release();
}
const AtomicString& SVGZoomEvent::interfaceName() const
« no previous file with comments | « Source/core/svg/SVGZoomEvent.h ('k') | Source/core/svg/SVGZoomEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698