Index: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js |
index 159c0021e77efc43b329244a35c9fe0f3176fd87..f1bf6c6eb837617cdccb5862f200e44a306fa7b4 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js |
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js |
@@ -442,6 +442,8 @@ WebInspector.DeviceModeModel.prototype = { |
this._applyUserAgent(mobile ? WebInspector.DeviceModeModel._defaultMobileUserAgent : ""); |
} |
this._reapplyTouch(); |
+ if (this._target) |
+ this._target.renderingAgent().setShowViewportSizeOnResize(this._type === WebInspector.DeviceModeModel.Type.None); |
this._updateCallback.call(null); |
}, |