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

Unified Diff: Source/bindings/v8/ScriptController.cpp

Issue 32793003: Have Frame::navigationScheduler() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 2 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 | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/ScriptController.cpp
diff --git a/Source/bindings/v8/ScriptController.cpp b/Source/bindings/v8/ScriptController.cpp
index f9c10f02b3a4380cccb4f306f05b2ededf23dff2..d20f337e62514ab912105acb5cbfcbba9b69a3ff 100644
--- a/Source/bindings/v8/ScriptController.cpp
+++ b/Source/bindings/v8/ScriptController.cpp
@@ -599,7 +599,7 @@ bool ScriptController::executeScriptIfJavaScriptURL(const KURL& url)
const int javascriptSchemeLength = sizeof("javascript:") - 1;
- bool locationChangeBefore = m_frame->navigationScheduler()->locationChangePending();
+ bool locationChangeBefore = m_frame->navigationScheduler().locationChangePending();
String decodedURL = decodeURLEscapeSequences(url.string());
ScriptValue result = evaluateScriptInMainWorld(ScriptSourceCode(decodedURL.substring(javascriptSchemeLength)), NotSharableCrossOrigin, DoNotExecuteScriptWhenScriptsDisabled);
@@ -616,7 +616,7 @@ bool ScriptController::executeScriptIfJavaScriptURL(const KURL& url)
// We're still in a frame, so there should be a DocumentLoader.
ASSERT(m_frame->document()->loader());
- if (!locationChangeBefore && m_frame->navigationScheduler()->locationChangePending())
+ if (!locationChangeBefore && m_frame->navigationScheduler().locationChangePending())
return true;
// DocumentWriter::replaceDocument can cause the DocumentLoader to get deref'ed and possible destroyed,
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698