| Index: cc/input/top_controls_manager.cc
|
| diff --git a/cc/input/top_controls_manager.cc b/cc/input/top_controls_manager.cc
|
| index 3ac3b4a8813cfcf733cea0f6449817e1acf733f7..56c9d8f43ff8d14419cb93986ebce052f278fda2 100644
|
| --- a/cc/input/top_controls_manager.cc
|
| +++ b/cc/input/top_controls_manager.cc
|
| @@ -101,6 +101,9 @@ void TopControlsManager::ScrollBegin() {
|
|
|
| gfx::Vector2dF TopControlsManager::ScrollBy(
|
| const gfx::Vector2dF& pending_delta) {
|
| + if (!TopControlsHeight())
|
| + return pending_delta;
|
| +
|
| if (pinch_gesture_active_)
|
| return pending_delta;
|
|
|
| @@ -183,6 +186,12 @@ void TopControlsManager::SetupAnimation(AnimationDirection direction) {
|
| if (top_controls_animation_ && animation_direction_ == direction)
|
| return;
|
|
|
| + if (!TopControlsHeight()) {
|
| + client_->SetCurrentTopControlsShownRatio(
|
| + direction == HIDING_CONTROLS ? 0.f : 1.f);
|
| + return;
|
| + }
|
| +
|
| top_controls_animation_ = KeyframedFloatAnimationCurve::Create();
|
| base::TimeDelta start_time = gfx::FrameTime::Now() - base::TimeTicks();
|
| top_controls_animation_->AddKeyframe(
|
|
|