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

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

Issue 19284011: Apply ScriptPreprocessor to Web page scripts only. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase, fix Mac compiler issue Created 7 years, 5 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: Source/bindings/v8/PageScriptDebugServer.cpp
diff --git a/Source/bindings/v8/PageScriptDebugServer.cpp b/Source/bindings/v8/PageScriptDebugServer.cpp
index 671567a45f6af913e99ec145c7eaead12418be09..d1d2185ff4a0b5b9ce3189a770ea59eaef501bbd 100644
--- a/Source/bindings/v8/PageScriptDebugServer.cpp
+++ b/Source/bindings/v8/PageScriptDebugServer.cpp
@@ -64,6 +64,14 @@ static Frame* retrieveFrameWithGlobalObjectCheck(v8::Handle<v8::Context> context
return toFrameIfNotDetached(context);
}
+ScriptController* PageScriptDebugServer::scriptController(v8::Handle<v8::Context> context)
+{
+ Frame* frame = retrieveFrameWithGlobalObjectCheck(context);
+ if (frame)
+ return frame->script();
+ return 0;
+}
+
PageScriptDebugServer& PageScriptDebugServer::shared()
{
DEFINE_STATIC_LOCAL(PageScriptDebugServer, server, ());
@@ -182,7 +190,7 @@ void PageScriptDebugServer::runMessageLoopOnPause(v8::Handle<v8::Context> contex
// The listener may have been removed in the nested loop.
if (ScriptDebugListener* listener = m_listenersMap.get(m_pausedPage))
listener->didContinue();
-
+
m_pausedPage = 0;
}

Powered by Google App Engine
This is Rietveld 408576698