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

Unified Diff: third_party/WebKit/Source/web/InspectorOverlay.cpp

Issue 1957303003: [DevTools] Fix InspectorOverlay breakage after suspend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 4 years, 7 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 | « third_party/WebKit/Source/web/InspectorOverlay.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/InspectorOverlay.cpp
diff --git a/third_party/WebKit/Source/web/InspectorOverlay.cpp b/third_party/WebKit/Source/web/InspectorOverlay.cpp
index ac917ca5e455b87aabf2afe2904f61bfd389d10b..f76a75e867af6c71ba8e541f404c472da4b090e6 100644
--- a/third_party/WebKit/Source/web/InspectorOverlay.cpp
+++ b/third_party/WebKit/Source/web/InspectorOverlay.cpp
@@ -571,7 +571,7 @@ void InspectorOverlay::onTimer(Timer<InspectorOverlay>*)
scheduleUpdate();
}
-void InspectorOverlay::clear()
+void InspectorOverlay::clearInternal()
{
if (m_layoutEditor)
m_layoutEditor.clear();
@@ -586,7 +586,11 @@ void InspectorOverlay::clear()
m_inspectMode = InspectorDOMAgent::NotSearching;
m_timer.stop();
hideHighlight();
+}
+void InspectorOverlay::clear()
+{
+ clearInternal();
m_debuggerAgent.clear();
m_domAgent.clear();
m_cssAgent.clear();
@@ -662,7 +666,7 @@ void InspectorOverlay::overlayClearSelection(bool commitChanges)
void InspectorOverlay::profilingStarted()
{
if (!m_suspendCount++)
- clear();
+ clearInternal();
}
void InspectorOverlay::profilingStopped()
« no previous file with comments | « third_party/WebKit/Source/web/InspectorOverlay.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698