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

Unified Diff: webkit/compositor_bindings/web_transform_animation_curve_impl.cc

Issue 12496013: Move compositor bindings implementations out of WebKit::, fix style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
Index: webkit/compositor_bindings/web_transform_animation_curve_impl.cc
diff --git a/webkit/compositor_bindings/web_transform_animation_curve_impl.cc b/webkit/compositor_bindings/web_transform_animation_curve_impl.cc
index efdf92b6fc5e0b3d1fd3d40d57c2342b3defb14d..9eb6a9485908f97a289fbb91683c26fb9de973af 100644
--- a/webkit/compositor_bindings/web_transform_animation_curve_impl.cc
+++ b/webkit/compositor_bindings/web_transform_animation_curve_impl.cc
@@ -10,14 +10,16 @@
#include "webkit/compositor_bindings/web_animation_curve_common.h"
#include "webkit/compositor_bindings/web_transform_operations_impl.h"
-namespace WebKit {
+using WebKit::WebTransformKeyframe;
+
+namespace webkit {
WebTransformAnimationCurveImpl::WebTransformAnimationCurveImpl()
: curve_(cc::KeyframedTransformAnimationCurve::Create()) {}
WebTransformAnimationCurveImpl::~WebTransformAnimationCurveImpl() {}
-WebAnimationCurve::AnimationCurveType
+WebKit::WebAnimationCurve::AnimationCurveType
WebTransformAnimationCurveImpl::type() const {
return WebAnimationCurve::AnimationCurveTypeTransform;
}
@@ -32,7 +34,7 @@ void WebTransformAnimationCurveImpl::add(const WebTransformKeyframe& keyframe,
static_cast<const webkit::WebTransformOperationsImpl&>(keyframe.value())
.AsTransformOperations();
curve_->AddKeyframe(cc::TransformKeyframe::Create(
- keyframe.time(), transform_operations, createTimingFunction(type)));
+ keyframe.time(), transform_operations, CreateTimingFunction(type)));
}
void WebTransformAnimationCurveImpl::add(const WebTransformKeyframe& keyframe,
@@ -55,4 +57,4 @@ WebTransformAnimationCurveImpl::cloneToAnimationCurve() const {
return curve_->Clone();
}
-} // namespace WebKit
+} // namespace webkit

Powered by Google App Engine
This is Rietveld 408576698