Commit 8b5592ba authored by Kurt Horimoto's avatar Kurt Horimoto Committed by Commit Bot

[iOS] Don't reset fullscreen state if the toolbar height doesn't change.

Bug: 794478
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: Id37c0070d19c0b393903d121e58753a5e0be9aea
Reviewed-on: https://chromium-review.googlesource.com/835648Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Commit-Queue: Kurt Horimoto <kkhorimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#525267}
parent 0f82ef11
......@@ -65,6 +65,8 @@ void FullscreenModel::AnimationEndedWithProgress(CGFloat progress) {
}
void FullscreenModel::SetToolbarHeight(CGFloat toolbar_height) {
if (AreCGFloatsEqual(toolbar_height_, toolbar_height))
return;
DCHECK_GE(toolbar_height, 0.0);
toolbar_height_ = toolbar_height;
ResetForNavigation();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment