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

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

Issue 1721883003: Put Top Control resizing change behind a flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ...and update tests to use the flag Created 4 years, 10 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
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 a1c1a2cd81cf357f42bba7c2e4116f47001cf337..a4ae5bc52978d2cf2c7e863e1631fa1a16cd760b 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -1793,7 +1793,7 @@ void WebViewImpl::performResize()
// controls hide so that the ICB will always be the same size as the
// viewport with the top controls shown.
IntSize ICBSize = m_size;
- if (!topControls().shrinkViewport())
+ if (RuntimeEnabledFeatures::inertTopControlsEnabled() && !topControls().shrinkViewport())
ICBSize.expand(0, -topControls().height());
pageScaleConstraintsSet().didChangeInitialContainingBlockSize(ICBSize);
« no previous file with comments | « third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in ('k') | third_party/WebKit/Source/web/tests/TopControlsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698