Chromium Code Reviews| 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..3d2198be1e6367c3953dda4b221b2ed94060ac9f 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 content::WebTransformOperationsImpl&>(keyframe.value()) |
|
jam
2014/06/11 00:27:04
nit: here and below, no "content::" inside content
|
| + .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 content::WebTransformOperationsImpl&>(keyframe.value()) |
| + .AsTransformOperations(); |
| curve_->AddKeyframe(cc::TransformKeyframe::Create( |
| keyframe.time(), |
| transform_operations, |
| @@ -57,4 +59,4 @@ WebTransformAnimationCurveImpl::CloneToAnimationCurve() const { |
| return curve_->Clone(); |
| } |
| -} // namespace webkit |
| +} // namespace content |