summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/speech/speech_grammar.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/speech/speech_grammar.cc')
-rw-r--r--chromium/third_party/blink/renderer/modules/speech/speech_grammar.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/modules/speech/speech_grammar.cc b/chromium/third_party/blink/renderer/modules/speech/speech_grammar.cc
index fba694147e1..7fd2c15771d 100644
--- a/chromium/third_party/blink/renderer/modules/speech/speech_grammar.cc
+++ b/chromium/third_party/blink/renderer/modules/speech/speech_grammar.cc
@@ -39,7 +39,7 @@ SpeechGrammar* SpeechGrammar::Create(const KURL& src, double weight) {
}
void SpeechGrammar::setSrc(ScriptState* script_state, const String& src) {
- Document* document = To<Document>(ExecutionContext::From(script_state));
+ Document* document = Document::From(ExecutionContext::From(script_state));
src_ = document->CompleteURL(src);
}