| 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 6479e8ed1424b60b9260d6d577d419a5449adec6..e839c832bf2056ece31cd1206be63f3cf0bc8bf4 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
|
| @@ -434,7 +434,9 @@ WebInspector.DeviceModeModel.prototype = {
|
|
|
| if (this._type === WebInspector.DeviceModeModel.Type.Device) {
|
| var orientation = this._device.orientationByName(this._mode.orientation);
|
| - var outline = (this._deviceOutlineSetting.get() && Runtime.experiments.isEnabled("deviceFrames")) ? orientation.outlineInsets : new Insets(0,0,0,0);
|
| + var outline = new Insets(0, 0, 0, 0);
|
| + if (Runtime.experiments.isEnabled("deviceFrames") && this._deviceOutlineSetting.get())
|
| + outline = orientation.outlineInsets || outline;
|
| this._fitScale = this._calculateFitScale(orientation.width, orientation.height);
|
| if (this._device.mobile())
|
| this._appliedUserAgentType = this._device.touch() ? WebInspector.DeviceModeModel.UA.Mobile : WebInspector.DeviceModeModel.UA.MobileNoTouch;
|
| @@ -501,7 +503,7 @@ WebInspector.DeviceModeModel.prototype = {
|
| /**
|
| * @param {!Size} screenSize
|
| * @param {!Insets} insets
|
| - * @param {!Insets|null} outline
|
| + * @param {!Insets} outline
|
| * @param {number} scale
|
| * @param {number} deviceScaleFactor
|
| * @param {boolean} mobile
|
|
|