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

Unified Diff: Source/bindings/core/v8/PageScriptDebugServer.cpp

Issue 458933002: Fix ScriptPreprocessor leak in inspector test case of LayoutTest. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 4 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 | « Source/bindings/core/v8/PageScriptDebugServer.h ('k') | Source/bindings/core/v8/ScriptDebugServer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/PageScriptDebugServer.cpp
diff --git a/Source/bindings/core/v8/PageScriptDebugServer.cpp b/Source/bindings/core/v8/PageScriptDebugServer.cpp
index b4b8bfab77a13758072dfc13194def234bee1afb..f0f5a7660327676b4470f1cdd0e771388f6d07ac 100644
--- a/Source/bindings/core/v8/PageScriptDebugServer.cpp
+++ b/Source/bindings/core/v8/PageScriptDebugServer.cpp
@@ -308,6 +308,11 @@ String PageScriptDebugServer::preprocessEventListener(LocalFrame* frame, const S
return m_scriptPreprocessor->preprocessSourceCode(source, url, functionName);
}
+void PageScriptDebugServer::clearPreprocessor()
+{
+ m_scriptPreprocessor.clear();
+}
+
void PageScriptDebugServer::muteWarningsAndDeprecations()
{
FrameConsole::mute();
« no previous file with comments | « Source/bindings/core/v8/PageScriptDebugServer.h ('k') | Source/bindings/core/v8/ScriptDebugServer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698