| 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 a78f5657114819d9c6f6e4a9e84c8e7721e58397..6479e8ed1424b60b9260d6d577d419a5449adec6 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,7 @@ 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 = (this._deviceOutlineSetting.get() && Runtime.experiments.isEnabled("deviceFrames")) ? orientation.outlineInsets : new Insets(0,0,0,0);
|
| 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;
|
| @@ -476,7 +476,7 @@ WebInspector.DeviceModeModel.prototype = {
|
| */
|
| _calculateFitScale: function(screenWidth, screenHeight)
|
| {
|
| - var scale = Math.min(screenWidth ? this._preferredSize.width / screenWidth: 1, screenHeight ? this._preferredSize.height / screenHeight : 1);
|
| + var scale = Math.min(screenWidth ? this._preferredSize.width / screenWidth : 1, screenHeight ? this._preferredSize.height / screenHeight : 1);
|
| return Math.min(scale, 1);
|
| },
|
|
|
|
|