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); |