| Index: Source/devtools/front_end/main/AdvancedApp.js
|
| diff --git a/Source/devtools/front_end/main/AdvancedApp.js b/Source/devtools/front_end/main/AdvancedApp.js
|
| index 303969c00a3c1048dee029cf395301303f42833f..3abe5f9b31e1432b6c2d17c4b5927bd620223aaf 100644
|
| --- a/Source/devtools/front_end/main/AdvancedApp.js
|
| +++ b/Source/devtools/front_end/main/AdvancedApp.js
|
| @@ -45,7 +45,11 @@ WebInspector.AdvancedApp.prototype = {
|
| this._toggleEmulationButton.element.classList.toggle("warning", !!message);
|
| },
|
|
|
| - presentUI: function()
|
| + /**
|
| + * @param {!Document} document
|
| + * @override
|
| + */
|
| + presentUI: function(document)
|
| {
|
| var rootView = new WebInspector.RootView();
|
|
|
| @@ -68,7 +72,7 @@ WebInspector.AdvancedApp.prototype = {
|
|
|
| WebInspector.inspectorView.showInitialPanel();
|
| console.timeStamp("AdvancedApp.attachToBody");
|
| - rootView.attachToBody();
|
| + rootView.attachToDocument(document);
|
| this._inspectedPagePlaceholder.update();
|
| },
|
|
|
| @@ -88,15 +92,22 @@ WebInspector.AdvancedApp.prototype = {
|
| },
|
|
|
| /**
|
| - * @param {!Element} rootElement
|
| + * @param {!Document} toolboxDocument
|
| * @override
|
| */
|
| - toolboxLoaded: function(rootElement)
|
| + toolboxLoaded: function(toolboxDocument)
|
| {
|
| + WebInspector.initializeUIUtils(toolboxDocument.defaultView);
|
| + WebInspector.installComponentRootStyles(/** @type {!Element} */ (toolboxDocument.body));
|
| + WebInspector.ContextMenu.installHandler(toolboxDocument);
|
| +
|
| + var rootView = new WebInspector.RootView();
|
| var inspectedPagePlaceholder = new WebInspector.InspectedPagePlaceholder();
|
| inspectedPagePlaceholder.addEventListener(WebInspector.InspectedPagePlaceholder.Events.Update, this._onSetInspectedPageBounds.bind(this, true));
|
| this._toolboxResponsiveDesignView = new WebInspector.ResponsiveDesignView(inspectedPagePlaceholder);
|
| - this._toolboxResponsiveDesignView.show(rootElement);
|
| + this._toolboxResponsiveDesignView.show(rootView.element);
|
| + rootView.attachToDocument(toolboxDocument);
|
| +
|
| this._updatePageResizer();
|
| },
|
|
|
|
|