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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2659483003: Revert of Changing URL bar constraints only calls performResize on Hidden <-> Both (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 72c1838a4e0a0c3089efe1bc05e2282724c0a6c4..ab8025e66cc5816381fc962a8e66a62a0439bf61 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -1798,14 +1798,12 @@
browserControls().updateConstraintsAndState(constraint, current, animate);
- // If the controls are going from a locked hidden to unlocked state, or vice
- // versa, the ICB size needs to change but we can't rely on getting a
- // WebViewImpl::resize since the top controls shown state may not have
- // changed.
- if ((oldPermittedState == WebBrowserControlsHidden &&
- constraint == WebBrowserControlsBoth) ||
- (oldPermittedState == WebBrowserControlsBoth &&
- constraint == WebBrowserControlsHidden)) {
+ // If the controls are going from a locked to an unlocked state, or
+ // vice-versa, then we need to force a recompute of the ICB size since that
+ // depends on the permitted browser controls state.
+ if (oldPermittedState != constraint &&
+ (oldPermittedState == WebBrowserControlsBoth ||
+ constraint == WebBrowserControlsBoth)) {
performResize();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698