summaryrefslogtreecommitdiffstats
path: root/webkit/renderer
diff options
context:
space:
mode:
authorrafaelw@google.com <rafaelw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-01 00:57:00 +0000
committerrafaelw@google.com <rafaelw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-01 00:57:00 +0000
commit5f28eb4ad6cd3c061561e3b84f8e364ff1b487d0 (patch)
tree0d635d7e4430b52fedd50948b90bf45f1f422661 /webkit/renderer
parent1a0436898a9e983e4b0188c9a7f124c5668a29a7 (diff)
downloadchromium_src-5f28eb4ad6cd3c061561e3b84f8e364ff1b487d0.zip
chromium_src-5f28eb4ad6cd3c061561e3b84f8e364ff1b487d0.tar.gz
chromium_src-5f28eb4ad6cd3c061561e3b84f8e364ff1b487d0.tar.bz2
Revert "Handle direction control in compositor Animations"
Caused compile failures in blink canary builders. TBR=a.renevier@samsung.com BUG=348071 Review URL: https://codereview.chromium.org/220403002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260721 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/renderer')
-rw-r--r--webkit/renderer/compositor_bindings/web_animation_impl.cc39
-rw-r--r--webkit/renderer/compositor_bindings/web_animation_impl.h5
2 files changed, 2 insertions, 42 deletions
diff --git a/webkit/renderer/compositor_bindings/web_animation_impl.cc b/webkit/renderer/compositor_bindings/web_animation_impl.cc
index d910acf..c401d5c 100644
--- a/webkit/renderer/compositor_bindings/web_animation_impl.cc
+++ b/webkit/renderer/compositor_bindings/web_animation_impl.cc
@@ -95,48 +95,13 @@ void WebAnimationImpl::setTimeOffset(double monotonic_time) {
animation_->set_time_offset(monotonic_time);
}
-#if WEB_ANIMATION_SUPPORTS_FULL_DIRECTION
-blink::WebAnimation::Direction WebAnimationImpl::direction() const {
- switch (animation_->direction()) {
- case cc::Animation::Normal:
- return DirectionNormal;
- case cc::Animation::Reverse:
- return DirectionReverse;
- case cc::Animation::Alternate:
- return DirectionAlternate;
- case cc::Animation::AlternateReverse:
- return DirectionAlternateReverse;
- default:
- NOTREACHED();
- }
- return DirectionNormal;
-}
-
-void WebAnimationImpl::setDirection(Direction direction) {
- switch (direction) {
- case DirectionNormal:
- animation_->set_direction(cc::Animation::Normal);
- break;
- case DirectionReverse:
- animation_->set_direction(cc::Animation::Reverse);
- break;
- case DirectionAlternate:
- animation_->set_direction(cc::Animation::Alternate);
- break;
- case DirectionAlternateReverse:
- animation_->set_direction(cc::Animation::AlternateReverse);
- break;
- }
-}
-#else
bool WebAnimationImpl::alternatesDirection() const {
- return animation_->direction() == cc::Animation::Alternate;
+ return animation_->alternates_direction();
}
void WebAnimationImpl::setAlternatesDirection(bool alternates) {
- return animation_->set_direction(cc::Animation::Alternate);
+ animation_->set_alternates_direction(alternates);
}
-#endif
scoped_ptr<cc::Animation> WebAnimationImpl::PassAnimation() {
animation_->set_needs_synchronized_start_time(true);
diff --git a/webkit/renderer/compositor_bindings/web_animation_impl.h b/webkit/renderer/compositor_bindings/web_animation_impl.h
index 07d72c7..0c248fc 100644
--- a/webkit/renderer/compositor_bindings/web_animation_impl.h
+++ b/webkit/renderer/compositor_bindings/web_animation_impl.h
@@ -33,13 +33,8 @@ class WebAnimationImpl : public blink::WebAnimation {
virtual void setStartTime(double monotonic_time);
virtual double timeOffset() const;
virtual void setTimeOffset(double monotonic_time);
-#if WEB_ANIMATION_SUPPORTS_FULL_DIRECTION
- virtual Direction direction() const;
- virtual void setDirection(Direction);
-#else
virtual bool alternatesDirection() const;
virtual void setAlternatesDirection(bool alternates);
-#endif
scoped_ptr<cc::Animation> PassAnimation();