Index: Source/modules/speech/SpeechRecognition.cpp |
diff --git a/Source/modules/speech/SpeechRecognition.cpp b/Source/modules/speech/SpeechRecognition.cpp |
index 8c75608abf642428172fa0006362efa1359f3965..a9b3dc1946e97e2a693c45eda7ea98e40b40cf1a 100644 |
--- a/Source/modules/speech/SpeechRecognition.cpp |
+++ b/Source/modules/speech/SpeechRecognition.cpp |
@@ -180,10 +180,10 @@ SpeechRecognition::SpeechRecognition(ExecutionContext* context) |
{ |
Document* document = toDocument(executionContext()); |
- Page* page = document->page(); |
- ASSERT(page); |
+ LocalFrame* frame = document->frame(); |
+ ASSERT(frame); |
- m_controller = SpeechRecognitionController::from(page); |
+ m_controller = SpeechRecognitionController::from(*frame); |
ASSERT(m_controller); |
// FIXME: Need to hook up with Page to get notified when the visibility changes. |