Title: [137730] trunk/Source/WebCore
Revision
137730
Author
[email protected]
Date
2012-12-14 01:08:30 -0800 (Fri, 14 Dec 2012)

Log Message

LayerTreeAgent should only be enabled upon restore if it was previously in the enabled state
https://bugs.webkit.org/show_bug.cgi?id=104887

Patch by Antoine Quint <[email protected]> on 2012-12-14
Reviewed by Pavel Feldman.

Check that we were previously in the enabled state before re-enabling the agent upon restore,
as suggested by Pavel Feldman in follow-up discussion to https://bugs.webkit.org/show_bug.cgi?id=103513.

* inspector/InspectorLayerTreeAgent.cpp:
(WebCore::InspectorLayerTreeAgent::restore):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (137729 => 137730)


--- trunk/Source/WebCore/ChangeLog	2012-12-14 08:54:51 UTC (rev 137729)
+++ trunk/Source/WebCore/ChangeLog	2012-12-14 09:08:30 UTC (rev 137730)
@@ -1,3 +1,16 @@
+2012-12-14  Antoine Quint  <[email protected]>
+
+        LayerTreeAgent should only be enabled upon restore if it was previously in the enabled state
+        https://bugs.webkit.org/show_bug.cgi?id=104887
+
+        Reviewed by Pavel Feldman.
+
+        Check that we were previously in the enabled state before re-enabling the agent upon restore,
+        as suggested by Pavel Feldman in follow-up discussion to https://bugs.webkit.org/show_bug.cgi?id=103513.
+
+        * inspector/InspectorLayerTreeAgent.cpp:
+        (WebCore::InspectorLayerTreeAgent::restore):
+
 2012-12-14  Eugene Klyuchnikov  <[email protected]>
 
         Web Inspector: CPU Profile: Search in "heavy" mode is very slow.

Modified: trunk/Source/WebCore/inspector/InspectorLayerTreeAgent.cpp (137729 => 137730)


--- trunk/Source/WebCore/inspector/InspectorLayerTreeAgent.cpp	2012-12-14 08:54:51 UTC (rev 137729)
+++ trunk/Source/WebCore/inspector/InspectorLayerTreeAgent.cpp	2012-12-14 09:08:30 UTC (rev 137730)
@@ -78,7 +78,8 @@
 
 void InspectorLayerTreeAgent::restore()
 {
-    enable(0);
+    if (m_state->getBoolean(LayerTreeAgentState::layerTreeAgentEnabled))
+        enable(0);
 }
 
 void InspectorLayerTreeAgent::reset()
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to