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

Unified Diff: cc/blink/web_animation_impl.cc

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « cc/blink/cc_blink_tests.gyp ('k') | cc/blink/web_display_item_list_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_animation_impl.cc
diff --git a/cc/blink/web_animation_impl.cc b/cc/blink/web_animation_impl.cc
index 705c33a9bf85d18ffef0d43ed0cecd4a2ea02c6c..24fa4ec8cfc6b2f298f187fe7b108ecebe826fe1 100644
--- a/cc/blink/web_animation_impl.cc
+++ b/cc/blink/web_animation_impl.cc
@@ -119,13 +119,13 @@ void WebCompositorAnimationImpl::setTimeOffset(double monotonic_time) {
blink::WebCompositorAnimation::Direction WebCompositorAnimationImpl::direction()
const {
switch (animation_->direction()) {
- case cc::Animation::DIRECTION_NORMAL:
+ case cc::Animation::Normal:
return DirectionNormal;
- case cc::Animation::DIRECTION_REVERSE:
+ case cc::Animation::Reverse:
return DirectionReverse;
- case cc::Animation::DIRECTION_ALTERNATE:
+ case cc::Animation::Alternate:
return DirectionAlternate;
- case cc::Animation::DIRECTION_ALTERNATE_REVERSE:
+ case cc::Animation::AlternateReverse:
return DirectionAlternateReverse;
default:
NOTREACHED();
@@ -136,16 +136,16 @@ blink::WebCompositorAnimation::Direction WebCompositorAnimationImpl::direction()
void WebCompositorAnimationImpl::setDirection(Direction direction) {
switch (direction) {
case DirectionNormal:
- animation_->set_direction(cc::Animation::DIRECTION_NORMAL);
+ animation_->set_direction(cc::Animation::Normal);
break;
case DirectionReverse:
- animation_->set_direction(cc::Animation::DIRECTION_REVERSE);
+ animation_->set_direction(cc::Animation::Reverse);
break;
case DirectionAlternate:
- animation_->set_direction(cc::Animation::DIRECTION_ALTERNATE);
+ animation_->set_direction(cc::Animation::Alternate);
break;
case DirectionAlternateReverse:
- animation_->set_direction(cc::Animation::DIRECTION_ALTERNATE_REVERSE);
+ animation_->set_direction(cc::Animation::AlternateReverse);
break;
}
}
@@ -161,13 +161,13 @@ void WebCompositorAnimationImpl::setPlaybackRate(double playback_rate) {
blink::WebCompositorAnimation::FillMode WebCompositorAnimationImpl::fillMode()
const {
switch (animation_->fill_mode()) {
- case cc::Animation::FILL_MODE_NONE:
+ case cc::Animation::FillModeNone:
return FillModeNone;
- case cc::Animation::FILL_MODE_FORWARDS:
+ case cc::Animation::FillModeForwards:
return FillModeForwards;
- case cc::Animation::FILL_MODE_BACKWARDS:
+ case cc::Animation::FillModeBackwards:
return FillModeBackwards;
- case cc::Animation::FILL_MODE_BOTH:
+ case cc::Animation::FillModeBoth:
return FillModeBoth;
default:
NOTREACHED();
@@ -178,16 +178,16 @@ blink::WebCompositorAnimation::FillMode WebCompositorAnimationImpl::fillMode()
void WebCompositorAnimationImpl::setFillMode(FillMode fill_mode) {
switch (fill_mode) {
case FillModeNone:
- animation_->set_fill_mode(cc::Animation::FILL_MODE_NONE);
+ animation_->set_fill_mode(cc::Animation::FillModeNone);
break;
case FillModeForwards:
- animation_->set_fill_mode(cc::Animation::FILL_MODE_FORWARDS);
+ animation_->set_fill_mode(cc::Animation::FillModeForwards);
break;
case FillModeBackwards:
- animation_->set_fill_mode(cc::Animation::FILL_MODE_BACKWARDS);
+ animation_->set_fill_mode(cc::Animation::FillModeBackwards);
break;
case FillModeBoth:
- animation_->set_fill_mode(cc::Animation::FILL_MODE_BOTH);
+ animation_->set_fill_mode(cc::Animation::FillModeBoth);
break;
}
}
« no previous file with comments | « cc/blink/cc_blink_tests.gyp ('k') | cc/blink/web_display_item_list_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698