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

Unified Diff: third_party/WebKit/Source/core/frame/History.cpp

Issue 2616923002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Fix errors Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/core/frame/History.h ('k') | third_party/WebKit/Source/core/frame/History.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/History.cpp
diff --git a/third_party/WebKit/Source/core/frame/History.cpp b/third_party/WebKit/Source/core/frame/History.cpp
index d6f76e68d4dfdabdded50b82bdfa00d8c79585fa..beaa08f47bae29beee63b178f08b66784cbd5462 100644
--- a/third_party/WebKit/Source/core/frame/History.cpp
+++ b/third_party/WebKit/Source/core/frame/History.cpp
@@ -26,6 +26,7 @@
#include "core/frame/History.h"
#include "bindings/core/v8/ExceptionState.h"
+#include "bindings/core/v8/ScriptState.h"
#include "core/dom/Document.h"
#include "core/frame/LocalFrame.h"
#include "core/loader/DocumentLoader.h"
@@ -121,20 +122,20 @@ bool History::isSameAsCurrentState(SerializedScriptValue* state) const {
return state == stateInternal();
}
-void History::back(ExecutionContext* context) {
- go(context, -1);
+void History::back(ScriptState* scriptState) {
+ go(scriptState, -1);
}
-void History::forward(ExecutionContext* context) {
- go(context, 1);
+void History::forward(ScriptState* scriptState) {
+ go(scriptState, 1);
}
-void History::go(ExecutionContext* context, int delta) {
+void History::go(ScriptState* scriptState, int delta) {
if (!frame() || !frame()->loader().client())
return;
DCHECK(isMainThread());
- Document* activeDocument = toDocument(context);
+ Document* activeDocument = toDocument(scriptState->getExecutionContext());
if (!activeDocument)
return;
« no previous file with comments | « third_party/WebKit/Source/core/frame/History.h ('k') | third_party/WebKit/Source/core/frame/History.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698