| Index: cc/blink/web_transform_animation_curve_impl.cc
|
| diff --git a/cc/blink/web_transform_animation_curve_impl.cc b/cc/blink/web_transform_animation_curve_impl.cc
|
| index f91d94b27c1bae009224b7463299b0e60c41815c..86f3602cecd560cdb10d4fe709d3a61ae117b697 100644
|
| --- a/cc/blink/web_transform_animation_curve_impl.cc
|
| +++ b/cc/blink/web_transform_animation_curve_impl.cc
|
| @@ -36,7 +36,8 @@ void WebTransformAnimationCurveImpl::add(const WebTransformKeyframe& keyframe,
|
| static_cast<const WebTransformOperationsImpl&>(keyframe.value())
|
| .AsTransformOperations();
|
| curve_->AddKeyframe(cc::TransformKeyframe::Create(
|
| - keyframe.time(), transform_operations, CreateTimingFunction(type)));
|
| + base::TimeDelta::FromSecondsD(keyframe.time()), transform_operations,
|
| + CreateTimingFunction(type)));
|
| }
|
|
|
| void WebTransformAnimationCurveImpl::add(const WebTransformKeyframe& keyframe,
|
| @@ -48,8 +49,7 @@ void WebTransformAnimationCurveImpl::add(const WebTransformKeyframe& keyframe,
|
| static_cast<const WebTransformOperationsImpl&>(keyframe.value())
|
| .AsTransformOperations();
|
| curve_->AddKeyframe(cc::TransformKeyframe::Create(
|
| - keyframe.time(),
|
| - transform_operations,
|
| + base::TimeDelta::FromSecondsD(keyframe.time()), transform_operations,
|
| cc::CubicBezierTimingFunction::Create(x1, y1, x2, y2)));
|
| }
|
|
|
|
|