Chromium Code Reviews| Index: Source/web/WebDevToolsAgentImpl.cpp |
| diff --git a/Source/web/WebDevToolsAgentImpl.cpp b/Source/web/WebDevToolsAgentImpl.cpp |
| index ec6e783c20b684303dc7e686d0601f96287005fc..38266e6597a5d11404e7ede6a8d6e24fdb600cf2 100644 |
| --- a/Source/web/WebDevToolsAgentImpl.cpp |
| +++ b/Source/web/WebDevToolsAgentImpl.cpp |
| @@ -490,6 +490,7 @@ void WebDevToolsAgentImpl::attach(const WebString& hostId) |
| initializeDeferredAgents(); |
| m_resourceAgent->setHostId(hostId); |
| + m_overlay->setCSSAgent(m_cssAgent.get()); |
| m_inspectorFrontend = adoptPtr(new InspectorFrontend(this)); |
| // We can reconnect to existing front-end -> unmute state. |
| @@ -535,6 +536,7 @@ void WebDevToolsAgentImpl::detach() |
| m_overlay->clear(); |
| InspectorInstrumentation::frontendDeleted(); |
| InspectorInstrumentation::unregisterInstrumentingAgents(m_instrumentingAgents.get()); |
| + m_overlay->setCSSAgent(nullptr); |
|
dgozman
2015/06/25 12:57:56
Let's do this before instrumentation calls.
sergeyv
2015/06/25 13:01:40
Done.
|
| m_attached = false; |
| } |