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

Unified Diff: third_party/WebKit/Source/web/WebDevToolsFrontendImpl.cpp

Issue 2796653003: Move ScriptState::forWorld/ScriptState::forMainWorld (Part 2) (Closed)
Patch Set: Rebase Created 3 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/web/WebDevToolsFrontendImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebDevToolsFrontendImpl.cpp b/third_party/WebKit/Source/web/WebDevToolsFrontendImpl.cpp
index 2c8412793a86636ea2721c9bbd4afe4e1cb14047..d31830935e1e808e0ef0ed9b3fd974a3156055a8 100644
--- a/third_party/WebKit/Source/web/WebDevToolsFrontendImpl.cpp
+++ b/third_party/WebKit/Source/web/WebDevToolsFrontendImpl.cpp
@@ -31,6 +31,7 @@
#include "web/WebDevToolsFrontendImpl.h"
#include "bindings/core/v8/ScriptController.h"
+#include "bindings/core/v8/V8Binding.h"
#include "bindings/core/v8/V8DevToolsHost.h"
#include "core/frame/LocalFrame.h"
#include "core/inspector/DevToolsHost.h"
@@ -68,7 +69,7 @@ void WebDevToolsFrontendImpl::didClearWindowObject(WebLocalFrameImpl* frame) {
// Use higher limit for DevTools isolate so that it does not OOM when
// profiling large heaps.
isolate->IncreaseHeapLimitForDebugging();
- ScriptState* scriptState = ScriptState::forMainWorld(m_webFrame->frame());
+ ScriptState* scriptState = toScriptStateForMainWorld(m_webFrame->frame());
DCHECK(scriptState);
ScriptState::Scope scope(scriptState);
« no previous file with comments | « third_party/WebKit/Source/web/InspectorOverlay.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698