Index: cc/animation/animation_player.cc |
diff --git a/cc/animation/animation_player.cc b/cc/animation/animation_player.cc |
index 0c380118987882b29692f850b4b8c26c8e769fcf..0bec9265426789d5dd537e56913198e88d4624cb 100644 |
--- a/cc/animation/animation_player.cc |
+++ b/cc/animation/animation_player.cc |
@@ -119,8 +119,9 @@ |
} |
void AnimationPlayer::AddAnimation(scoped_ptr<Animation> animation) { |
- DCHECK(animation->target_property() != Animation::SCROLL_OFFSET || |
- (animation_host_ && animation_host_->SupportsScrollAnimations())); |
+ DCHECK_IMPLIES( |
+ animation->target_property() == Animation::SCROLL_OFFSET, |
+ animation_host_ && animation_host_->SupportsScrollAnimations()); |
if (element_animations_) { |
element_animations_->layer_animation_controller()->AddAnimation( |