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

Side by Side Diff: Source/WebCore/bindings/v8/PageScriptDebugServer.cpp

Issue 12087054: Revert 140611 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1397/
Patch Set: Created 7 years, 10 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 Google Inc. All rights reserved. 2 * Copyright (c) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 v8::Handle<v8::Value> value; 101 v8::Handle<v8::Value> value;
102 { 102 {
103 V8RecursionScope::MicrotaskSuppression scope; 103 V8RecursionScope::MicrotaskSuppression scope;
104 value = getScriptsFunction->Call(m_debuggerScript.get(), 1, argv); 104 value = getScriptsFunction->Call(m_debuggerScript.get(), 1, argv);
105 } 105 }
106 if (value.IsEmpty()) 106 if (value.IsEmpty())
107 return; 107 return;
108 ASSERT(!value->IsUndefined() && value->IsArray()); 108 ASSERT(!value->IsUndefined() && value->IsArray());
109 v8::Handle<v8::Array> scriptsArray = v8::Handle<v8::Array>::Cast(value); 109 v8::Handle<v8::Array> scriptsArray = v8::Handle<v8::Array>::Cast(value);
110 for (unsigned i = 0; i < scriptsArray->Length(); ++i) 110 for (unsigned i = 0; i < scriptsArray->Length(); ++i)
111 dispatchDidParseSource(listener, v8::Handle<v8::Object>::Cast(scriptsArr ay->Get(v8Integer(i, context->GetIsolate())))); 111 dispatchDidParseSource(listener, v8::Handle<v8::Object>::Cast(scriptsArr ay->Get(deprecatedV8Integer(i))));
112 } 112 }
113 113
114 void PageScriptDebugServer::removeListener(ScriptDebugListener* listener, Page* page) 114 void PageScriptDebugServer::removeListener(ScriptDebugListener* listener, Page* page)
115 { 115 {
116 if (!m_listenersMap.contains(page)) 116 if (!m_listenersMap.contains(page))
117 return; 117 return;
118 118
119 if (m_pausedPage == page) 119 if (m_pausedPage == page)
120 continueProgram(); 120 continueProgram();
121 121
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 } 189 }
190 190
191 void PageScriptDebugServer::quitMessageLoopOnPause() 191 void PageScriptDebugServer::quitMessageLoopOnPause()
192 { 192 {
193 m_clientMessageLoop->quitNow(); 193 m_clientMessageLoop->quitNow();
194 } 194 }
195 195
196 } // namespace WebCore 196 } // namespace WebCore
197 197
198 #endif // ENABLE(JAVASCRIPT_DEBUGGER) 198 #endif // ENABLE(JAVASCRIPT_DEBUGGER)
OLDNEW
« no previous file with comments | « Source/WebCore/bindings/v8/NPV8Object.cpp ('k') | Source/WebCore/bindings/v8/ScriptController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698