Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1199)

Unified Diff: Source/core/inspector/InspectorCSSAgent.cpp

Issue 221033003: DevTools: disable CSS agent on disconnect. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: A better fix. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/devtools/front_end/CSSStyleModel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorCSSAgent.cpp
diff --git a/Source/core/inspector/InspectorCSSAgent.cpp b/Source/core/inspector/InspectorCSSAgent.cpp
index a1affb2a803eaea74bc77580667a67b945f6b323..d8aee002483dbaf2c683a71a0101c52209b5a555 100644
--- a/Source/core/inspector/InspectorCSSAgent.cpp
+++ b/Source/core/inspector/InspectorCSSAgent.cpp
@@ -411,6 +411,8 @@ void InspectorCSSAgent::setFrontend(InspectorFrontend* frontend)
void InspectorCSSAgent::clearFrontend()
{
ASSERT(m_frontend);
+ ErrorString error;
+ disable(&error);
m_frontend = 0;
resetNonPersistentData();
}
@@ -507,6 +509,7 @@ void InspectorCSSAgent::wasEnabled(PassRefPtr<EnableCallback> callback)
void InspectorCSSAgent::disable(ErrorString*)
{
+ reset();
m_instrumentingAgents->setInspectorCSSAgent(0);
m_state->setBoolean(CSSAgentState::cssAgentEnabled, false);
}
« no previous file with comments | « no previous file | Source/devtools/front_end/CSSStyleModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698