| Index: Source/devtools/front_end/elements/ElementsPanel.js
|
| diff --git a/Source/devtools/front_end/elements/ElementsPanel.js b/Source/devtools/front_end/elements/ElementsPanel.js
|
| index b11fcdf71827008af2200c0dfb54de8e49d3c3ad..b74f5a76fd04f5cf2b7b33646b95fee5444ddb7b 100644
|
| --- a/Source/devtools/front_end/elements/ElementsPanel.js
|
| +++ b/Source/devtools/front_end/elements/ElementsPanel.js
|
| @@ -1116,7 +1116,7 @@ WebInspector.ElementsPanel.prototype = {
|
|
|
| // We need to correct (turn on/off layout editor) the config which is used by inspect element mode, so we re-enable it.
|
| if (WebInspector.inspectElementModeController && WebInspector.inspectElementModeController.enabled())
|
| - domModel.setInspectModeEnabled(true, WebInspector.moduleSetting("showUAShadowDOM").get());
|
| + domModel.setInspectMode(WebInspector.moduleSetting("showUAShadowDOM").get() ? DOMAgent.InspectMode.SearchForUAShadowDOM : DOMAgent.InspectMode.SearchForNode);
|
| }
|
| WebInspector.DOMModel.hideDOMNodeHighlight();
|
| },
|
| @@ -1333,17 +1333,16 @@ WebInspector.ElementsPanel.LayoutEditorNodeHighlighter.prototype = {
|
|
|
| /**
|
| * @override
|
| - * @param {boolean} enabled
|
| - * @param {boolean} inspectUAShadowDOM
|
| + * @param {!DOMAgent.InspectMode} mode
|
| * @param {!DOMAgent.HighlightConfig} config
|
| * @param {function(?Protocol.Error)=} callback
|
| */
|
| - setInspectModeEnabled: function(enabled, inspectUAShadowDOM, config, callback)
|
| + setInspectMode: function(mode, config, callback)
|
| {
|
| config.showLayoutEditor = config.showInfo;
|
| - WebInspector.DefaultDOMNodeHighlighter.prototype.setInspectModeEnabled.call(this, enabled, inspectUAShadowDOM, config, callback);
|
| + WebInspector.DefaultDOMNodeHighlighter.prototype.setInspectMode.call(this, mode, config, callback);
|
|
|
| - if (enabled)
|
| + if (mode !== DOMAgent.InspectMode.None)
|
| return;
|
|
|
| var selectedNode = this._treeOutline.selectedDOMNode();
|
|
|