Title: [124592] trunk/Source/WebCore
Revision
124592
Author
[email protected]
Date
2012-08-03 03:45:00 -0700 (Fri, 03 Aug 2012)

Log Message

Web Inspector: Remove InspectorCSSAgent from InstrumentingAgents on clearFrontend()
https://bugs.webkit.org/show_bug.cgi?id=93082

Reviewed by Yury Semikhatsky.

* inspector/InspectorCSSAgent.cpp:
(WebCore::InspectorCSSAgent::InspectorCSSAgent):
(WebCore::InspectorCSSAgent::~InspectorCSSAgent):
(WebCore::InspectorCSSAgent::setFrontend):
(WebCore::InspectorCSSAgent::clearFrontend):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (124591 => 124592)


--- trunk/Source/WebCore/ChangeLog	2012-08-03 10:28:23 UTC (rev 124591)
+++ trunk/Source/WebCore/ChangeLog	2012-08-03 10:45:00 UTC (rev 124592)
@@ -1,3 +1,16 @@
+2012-08-03  Alexander Pavlov  <[email protected]>
+
+        Web Inspector: Remove InspectorCSSAgent from InstrumentingAgents on clearFrontend()
+        https://bugs.webkit.org/show_bug.cgi?id=93082
+
+        Reviewed by Yury Semikhatsky.
+
+        * inspector/InspectorCSSAgent.cpp:
+        (WebCore::InspectorCSSAgent::InspectorCSSAgent):
+        (WebCore::InspectorCSSAgent::~InspectorCSSAgent):
+        (WebCore::InspectorCSSAgent::setFrontend):
+        (WebCore::InspectorCSSAgent::clearFrontend):
+
 2012-08-03  Eugene Klyuchnikov  <[email protected]>
 
         Web Inspector: Profiles: extract save to file / load from code

Modified: trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp (124591 => 124592)


--- trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp	2012-08-03 10:28:23 UTC (rev 124591)
+++ trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp	2012-08-03 10:45:00 UTC (rev 124592)
@@ -467,13 +467,11 @@
     , m_lastStyleSheetId(1)
 {
     m_domAgent->setDOMListener(this);
-    m_instrumentingAgents->setInspectorCSSAgent(this);
 }
 
 InspectorCSSAgent::~InspectorCSSAgent()
 {
     ASSERT(!m_domAgent);
-    m_instrumentingAgents->setInspectorCSSAgent(0);
     reset();
 }
 
@@ -481,12 +479,14 @@
 {
     ASSERT(!m_frontend);
     m_frontend = frontend->css();
+    m_instrumentingAgents->setInspectorCSSAgent(this);
 }
 
 void InspectorCSSAgent::clearFrontend()
 {
     ASSERT(m_frontend);
     m_frontend = 0;
+    m_instrumentingAgents->setInspectorCSSAgent(0);
     resetPseudoStates();
     String errorString;
     stopSelectorProfilerImpl(&errorString, false);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to