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

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

Issue 2815313002: Reland of Move ScriptState::GetExecutionContext (Part 5) (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/modules/speech/SpeechGrammar.cpp
diff --git a/third_party/WebKit/Source/modules/speech/SpeechGrammar.cpp b/third_party/WebKit/Source/modules/speech/SpeechGrammar.cpp
index c24dbc2363f33e656e6e626f7f29142dce160f34..681ceb7049f4ca9f1ee82fa337b9aebdebd330f8 100644
--- a/third_party/WebKit/Source/modules/speech/SpeechGrammar.cpp
+++ b/third_party/WebKit/Source/modules/speech/SpeechGrammar.cpp
@@ -26,6 +26,7 @@
#include "modules/speech/SpeechGrammar.h"
#include "core/dom/Document.h"
+#include "core/dom/ExecutionContext.h"
namespace blink {
@@ -38,7 +39,7 @@
}
void SpeechGrammar::setSrc(ScriptState* script_state, const String& src) {
- Document* document = ToDocument(script_state->GetExecutionContext());
+ Document* document = ToDocument(ExecutionContext::From(script_state));
src_ = document->CompleteURL(src);
}

Powered by Google App Engine
This is Rietveld 408576698