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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp

Issue 2811793005: Rename LocalFrame::Script() to GetScriptController() (Closed)
Patch Set: 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/core/inspector/InspectorPageAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
index 15322eb586758b30c6a758f3acfc667b1059c694..7f4aa0b241fa053b88b963f606b7f8420f999dc5 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
@@ -648,11 +648,13 @@ void InspectorPageAgent::DidClearDocumentOfWindowObject(LocalFrame* frame) {
auto script = scripts->at(i);
String script_text;
if (script.second->asString(&script_text))
- frame->Script().ExecuteScriptInMainWorld(script_text);
+ frame->GetScriptController().ExecuteScriptInMainWorld(script_text);
}
}
- if (!script_to_evaluate_on_load_once_.IsEmpty())
- frame->Script().ExecuteScriptInMainWorld(script_to_evaluate_on_load_once_);
+ if (!script_to_evaluate_on_load_once_.IsEmpty()) {
+ frame->GetScriptController().ExecuteScriptInMainWorld(
+ script_to_evaluate_on_load_once_);
+ }
}
void InspectorPageAgent::DomContentLoadedEventFired(LocalFrame* frame) {
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp ('k') | third_party/WebKit/Source/core/loader/FrameFetchContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698