Chromium Code Reviews| Index: Source/bindings/v8/PageScriptDebugServer.cpp |
| diff --git a/Source/bindings/v8/PageScriptDebugServer.cpp b/Source/bindings/v8/PageScriptDebugServer.cpp |
| index 8ee19c6564a8a96284d9384f5b2c2e24706ba95a..c6e5d2f23567894cc210d4e88d61382a3a22c459 100644 |
| --- a/Source/bindings/v8/PageScriptDebugServer.cpp |
| +++ b/Source/bindings/v8/PageScriptDebugServer.cpp |
| @@ -64,6 +64,13 @@ 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 && frame->page()) |
| + return frame->page()->mainFrame()->script(); |
|
haraken
2013/07/11 01:13:59
I'm curious about how this is different from frame
johnjbarton
2013/07/11 19:14:42
Done.
|
| +} |
| + |
| PageScriptDebugServer& PageScriptDebugServer::shared() |
| { |
| DEFINE_STATIC_LOCAL(PageScriptDebugServer, server, ()); |
| @@ -182,7 +189,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; |
| } |