| Index: content/renderer/compositor_bindings/web_transform_animation_curve_impl.cc
|
| diff --git a/webkit/renderer/compositor_bindings/web_transform_animation_curve_impl.cc b/content/renderer/compositor_bindings/web_transform_animation_curve_impl.cc
|
| similarity index 75%
|
| rename from webkit/renderer/compositor_bindings/web_transform_animation_curve_impl.cc
|
| rename to content/renderer/compositor_bindings/web_transform_animation_curve_impl.cc
|
| index 1b0d073b21eede8b80c8f72834dcfee93cb06483..a83ea34b68cbc244d6b594540be3ec042a0a8a92 100644
|
| --- a/webkit/renderer/compositor_bindings/web_transform_animation_curve_impl.cc
|
| +++ b/content/renderer/compositor_bindings/web_transform_animation_curve_impl.cc
|
| @@ -2,22 +2,24 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "webkit/renderer/compositor_bindings/web_transform_animation_curve_impl.h"
|
| +#include "content/renderer/compositor_bindings/web_transform_animation_curve_impl.h"
|
|
|
| #include "cc/animation/keyframed_animation_curve.h"
|
| #include "cc/animation/timing_function.h"
|
| #include "cc/animation/transform_operations.h"
|
| -#include "webkit/renderer/compositor_bindings/web_animation_curve_common.h"
|
| -#include "webkit/renderer/compositor_bindings/web_transform_operations_impl.h"
|
| +#include "content/renderer/compositor_bindings/web_animation_curve_common.h"
|
| +#include "content/renderer/compositor_bindings/web_transform_operations_impl.h"
|
|
|
| using blink::WebTransformKeyframe;
|
|
|
| -namespace webkit {
|
| +namespace content {
|
|
|
| WebTransformAnimationCurveImpl::WebTransformAnimationCurveImpl()
|
| - : curve_(cc::KeyframedTransformAnimationCurve::Create()) {}
|
| + : curve_(cc::KeyframedTransformAnimationCurve::Create()) {
|
| +}
|
|
|
| -WebTransformAnimationCurveImpl::~WebTransformAnimationCurveImpl() {}
|
| +WebTransformAnimationCurveImpl::~WebTransformAnimationCurveImpl() {
|
| +}
|
|
|
| blink::WebAnimationCurve::AnimationCurveType
|
| WebTransformAnimationCurveImpl::type() const {
|
| @@ -31,8 +33,8 @@ void WebTransformAnimationCurveImpl::add(const WebTransformKeyframe& keyframe) {
|
| void WebTransformAnimationCurveImpl::add(const WebTransformKeyframe& keyframe,
|
| TimingFunctionType type) {
|
| const cc::TransformOperations& transform_operations =
|
| - static_cast<const webkit::WebTransformOperationsImpl&>(keyframe.value())
|
| - .AsTransformOperations();
|
| + static_cast<const WebTransformOperationsImpl&>(keyframe.value())
|
| + .AsTransformOperations();
|
| curve_->AddKeyframe(cc::TransformKeyframe::Create(
|
| keyframe.time(), transform_operations, CreateTimingFunction(type)));
|
| }
|
| @@ -43,8 +45,8 @@ void WebTransformAnimationCurveImpl::add(const WebTransformKeyframe& keyframe,
|
| double x2,
|
| double y2) {
|
| const cc::TransformOperations& transform_operations =
|
| - static_cast<const webkit::WebTransformOperationsImpl&>(keyframe.value())
|
| - .AsTransformOperations();
|
| + static_cast<const WebTransformOperationsImpl&>(keyframe.value())
|
| + .AsTransformOperations();
|
| curve_->AddKeyframe(cc::TransformKeyframe::Create(
|
| keyframe.time(),
|
| transform_operations,
|
| @@ -57,4 +59,5 @@ WebTransformAnimationCurveImpl::CloneToAnimationCurve() const {
|
| return curve_->Clone();
|
| }
|
|
|
| -} // namespace webkit
|
| +} // namespace content
|
| +
|
|
|