| Index: third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
|
| index 8812e24dbe49b2fd8b5ad52c34b0949eb5a040fb..9c2e7cc2bb33e9583d90af38d1c4b45eabae1b7c 100644
|
| --- a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
|
| @@ -483,7 +483,7 @@ void InspectorDOMAgent::innerEnable()
|
| m_history = new InspectorHistory();
|
| m_domEditor = new DOMEditor(m_history.get());
|
| m_document = m_inspectedFrames->root()->document();
|
| - m_instrumentingAgents->setInspectorDOMAgent(this);
|
| + m_instrumentingAgents->addInspectorDOMAgent(this);
|
| if (m_backendNodeIdToInspect)
|
| frontend()->inspectNodeRequested(m_backendNodeIdToInspect);
|
| m_backendNodeIdToInspect = 0;
|
| @@ -510,7 +510,7 @@ void InspectorDOMAgent::disable(ErrorString* errorString)
|
| }
|
| m_state->setBoolean(DOMAgentState::domAgentEnabled, false);
|
| setSearchingForNode(errorString, NotSearching, Maybe<protocol::DOM::HighlightConfig>());
|
| - m_instrumentingAgents->setInspectorDOMAgent(nullptr);
|
| + m_instrumentingAgents->removeInspectorDOMAgent(this);
|
| m_history.clear();
|
| m_domEditor.clear();
|
| setDocument(nullptr);
|
|
|