Index: Source/core/inspector/InspectorDOMAgent.cpp |
diff --git a/Source/core/inspector/InspectorDOMAgent.cpp b/Source/core/inspector/InspectorDOMAgent.cpp |
index 765a44fd6bb9116a21573741822a2c22fc1cb6bb..9a9012c9a4b913f5377e036eaeda01675634266e 100644 |
--- a/Source/core/inspector/InspectorDOMAgent.cpp |
+++ b/Source/core/inspector/InspectorDOMAgent.cpp |
@@ -235,6 +235,7 @@ InspectorDOMAgent::InspectorDOMAgent(InspectorPageAgent* pageAgent, InjectedScri |
, m_lastNodeId(1) |
, m_searchingForNode(NotSearching) |
, m_suppressAttributeModifiedEvent(false) |
+ , m_listener(0) |
{ |
} |
@@ -486,6 +487,8 @@ void InspectorDOMAgent::enable(ErrorString*) |
if (enabled()) |
return; |
m_state->setBoolean(DOMAgentState::domAgentEnabled, true); |
+ if (m_listener) |
+ m_listener->domAgentWasEnabled(); |
} |
bool InspectorDOMAgent::enabled() const |
@@ -499,6 +502,8 @@ void InspectorDOMAgent::disable(ErrorString*) |
return; |
m_state->setBoolean(DOMAgentState::domAgentEnabled, false); |
reset(); |
+ if (m_listener) |
+ m_listener->domAgentWasDisabled(); |
} |
void InspectorDOMAgent::getDocument(ErrorString* errorString, RefPtr<TypeBuilder::DOM::Node>& root) |