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

Unified Diff: third_party/WebKit/Source/modules/speech/SpeechGrammarList.cpp

Issue 2821443002: Revert of Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: Revert 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/modules/speech/SpeechGrammarList.cpp
diff --git a/third_party/WebKit/Source/modules/speech/SpeechGrammarList.cpp b/third_party/WebKit/Source/modules/speech/SpeechGrammarList.cpp
index eadbca85c266c8d946d34d8dc3ed2d7ddbf5f8de..ae5af549c848668fdca341598c2ba81e3db2ef9c 100644
--- a/third_party/WebKit/Source/modules/speech/SpeechGrammarList.cpp
+++ b/third_party/WebKit/Source/modules/speech/SpeechGrammarList.cpp
@@ -27,7 +27,6 @@
#include "bindings/core/v8/ScriptState.h"
#include "core/dom/Document.h"
-#include "core/dom/ExecutionContext.h"
namespace blink {
@@ -45,7 +44,7 @@ SpeechGrammar* SpeechGrammarList::item(unsigned index) const {
void SpeechGrammarList::addFromUri(ScriptState* script_state,
const String& src,
double weight) {
- Document* document = ToDocument(ExecutionContext::From(script_state));
+ Document* document = ToDocument(script_state->GetExecutionContext());
grammars_.push_back(
SpeechGrammar::Create(document->CompleteURL(src), weight));
}
« no previous file with comments | « third_party/WebKit/Source/modules/speech/SpeechGrammar.cpp ('k') | third_party/WebKit/Source/modules/vr/NavigatorVR.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698