Index: cc/input/top_controls_manager.cc |
diff --git a/cc/input/top_controls_manager.cc b/cc/input/top_controls_manager.cc |
index 1a961b50e9393697598bf83738dbe3684c56d1e4..7f8399d4e7189bc6ab2a793576f60280310298ac 100644 |
--- a/cc/input/top_controls_manager.cc |
+++ b/cc/input/top_controls_manager.cc |
@@ -176,8 +176,8 @@ void TopControlsManager::ResetAnimations() { |
void TopControlsManager::SetupAnimation(AnimationDirection direction) { |
DCHECK_NE(NO_ANIMATION, direction); |
- DCHECK_IMPLIES(direction == HIDING_CONTROLS, TopControlsShownRatio() > 0.f); |
- DCHECK_IMPLIES(direction == SHOWING_CONTROLS, TopControlsShownRatio() < 1.f); |
+ DCHECK((direction != HIDING_CONTROLS) || (TopControlsShownRatio() > 0.f)); |
danakj
2015/06/29 19:30:58
|| has lower precedence you dont need the ()s righ
|
+ DCHECK((direction != SHOWING_CONTROLS) || (TopControlsShownRatio() < 1.f)); |
if (top_controls_animation_ && animation_direction_ == direction) |
return; |