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

Unified Diff: cc/keyframed_animation_curve.cc

Issue 11644004: Only create instances of WebTransformOperations using cc::TransformOperations::Create (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase, and fix WebTransformAnimationCurveImpl Created 8 years 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: cc/keyframed_animation_curve.cc
diff --git a/cc/keyframed_animation_curve.cc b/cc/keyframed_animation_curve.cc
index 9cf0ef37e14343565988e9e3a755d7e82453c2b7..f5cf0fca573a1e6151e93a23664632c778f5875b 100644
--- a/cc/keyframed_animation_curve.cc
+++ b/cc/keyframed_animation_curve.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "cc/keyframed_animation_curve.h"
+#include "cc/transform_operations.h"
using WebKit::WebTransformationMatrix;
@@ -91,7 +92,7 @@ scoped_ptr<TransformKeyframe> TransformKeyframe::create(double time, const WebKi
TransformKeyframe::TransformKeyframe(double time, const WebKit::WebTransformOperations& value, scoped_ptr<TimingFunction> timingFunction)
: Keyframe(time, timingFunction.Pass())
- , m_value(value)
+ , m_value(TransformOperations::Create(value))
{
}
@@ -101,7 +102,7 @@ TransformKeyframe::~TransformKeyframe()
const WebKit::WebTransformOperations& TransformKeyframe::value() const
{
- return m_value;
+ return *m_value;
}
scoped_ptr<TransformKeyframe> TransformKeyframe::clone() const

Powered by Google App Engine
This is Rietveld 408576698