| Index: third_party/WebKit/Source/devtools/front_end/emulation/AdvancedApp.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/AdvancedApp.js b/third_party/WebKit/Source/devtools/front_end/emulation/AdvancedApp.js
|
| index be5ba325895f36b88bb204dbcbfe4ee056644757..6fb70c5f163ee929ed5e6c71518e741a455dbc44 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/emulation/AdvancedApp.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/emulation/AdvancedApp.js
|
| @@ -33,7 +33,7 @@ Emulation.AdvancedApp = class {
|
| this._rootSplitWidget.setDefaultFocusedChild(UI.inspectorView);
|
| UI.inspectorView.setOwnerSplit(this._rootSplitWidget);
|
|
|
| - this._inspectedPagePlaceholder = new Emulation.InspectedPagePlaceholder();
|
| + this._inspectedPagePlaceholder = Emulation.InspectedPagePlaceholder.instance();
|
| this._inspectedPagePlaceholder.addEventListener(
|
| Emulation.InspectedPagePlaceholder.Events.Update, this._onSetInspectedPageBounds.bind(this), this);
|
| this._deviceModeView = new Emulation.DeviceModeWrapper(this._inspectedPagePlaceholder);
|
| @@ -176,9 +176,12 @@ Emulation.AdvancedApp = class {
|
| return;
|
| if (!this._inspectedPagePlaceholder.isShowing())
|
| return;
|
| - var bounds = /** @type {{x: number, y: number, width: number, height: number}} */ (event.data);
|
| + var bounds =
|
| + /** @type {{x: number, y: number, width: number, height: number, force: (boolean|undefined)}} */ (event.data);
|
| + var force = bounds.force || false;
|
| + delete bounds.force;
|
| console.timeStamp('AdvancedApp.setInspectedPageBounds');
|
| - InspectorFrontendHost.setInspectedPageBounds(bounds);
|
| + InspectorFrontendHost.setInspectedPageBounds(bounds, force);
|
| }
|
| };
|
|
|
|
|