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

Unified Diff: third_party/WebKit/Source/core/inspector/PageConsoleAgent.cpp

Issue 1917733002: [DevTools] Move part of CommandLineAPI to native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: third_party/WebKit/Source/core/inspector/PageConsoleAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/PageConsoleAgent.cpp b/third_party/WebKit/Source/core/inspector/PageConsoleAgent.cpp
index f97987684542d507ab14e818d79ed230326afd2b..e2aaf7c445fd115e55a8f03e6866b272f21bb5ae 100644
--- a/third_party/WebKit/Source/core/inspector/PageConsoleAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/PageConsoleAgent.cpp
@@ -80,7 +80,6 @@ void PageConsoleAgent::disable(ErrorString* errorString)
void PageConsoleAgent::clearMessages(ErrorString* errorString)
{
- m_inspectorDOMAgent->releaseDanglingNodes();
messageStorage()->clear(m_inspectedFrames->root()->document());
}
@@ -113,6 +112,12 @@ void PageConsoleAgent::workerTerminated(WorkerInspectorProxy* workerInspectorPro
}
}
+void PageConsoleAgent::consoleMessagesCleared()
+{
+ m_inspectorDOMAgent->releaseDanglingNodes();
+ InspectorConsoleAgent::consoleMessagesCleared();
+}
+
void PageConsoleAgent::enableStackCapturingIfNeeded()
{
if (!s_enabledAgentCount)

Powered by Google App Engine
This is Rietveld 408576698