| Index: Source/devtools/front_end/sdk/DOMModel.js
|
| diff --git a/Source/devtools/front_end/sdk/DOMModel.js b/Source/devtools/front_end/sdk/DOMModel.js
|
| index d0db42c94c84718f28257a0d5089bcdd40e09ce1..d78916cef9ca2a1f724c47fc667aa2114f726612 100644
|
| --- a/Source/devtools/front_end/sdk/DOMModel.js
|
| +++ b/Source/devtools/front_end/sdk/DOMModel.js
|
| @@ -948,9 +948,6 @@ WebInspector.DOMModel = function(target) {
|
| this._defaultHighlighter = new WebInspector.DefaultDOMNodeHighlighter(this._agent);
|
| this._highlighter = this._defaultHighlighter;
|
|
|
| - if (Runtime.experiments.isEnabled("disableAgentsWhenProfile"))
|
| - WebInspector.profilingLock().addEventListener(WebInspector.Lock.Events.StateChanged, this._profilingStateChanged, this);
|
| -
|
| this._agent.enable();
|
| }
|
|
|
| @@ -968,12 +965,14 @@ WebInspector.DOMModel.Events = {
|
| }
|
|
|
| WebInspector.DOMModel.prototype = {
|
| - _profilingStateChanged: function()
|
| + suspendModel: function()
|
| {
|
| - if (WebInspector.profilingLock().isAcquired())
|
| - this._agent.disable();
|
| - else
|
| - this._agent.enable();
|
| + this._agent.disable();
|
| + },
|
| +
|
| + resumeModel: function()
|
| + {
|
| + this._agent.enable();
|
| },
|
|
|
| /**
|
|
|