| Index: content/renderer/input_tag_speech_dispatcher.cc
|
| diff --git a/content/renderer/input_tag_speech_dispatcher.cc b/content/renderer/input_tag_speech_dispatcher.cc
|
| index 36788c74ad957e26120be71f45b94516383dc05e..092eb2ea2e4a1023172fc86fba39e84c0f86cbbc 100644
|
| --- a/content/renderer/input_tag_speech_dispatcher.cc
|
| +++ b/content/renderer/input_tag_speech_dispatcher.cc
|
| @@ -127,11 +127,10 @@ void InputTagSpeechDispatcher::OnSpeechRecognitionToggleSpeechInput() {
|
| if (document.isNull())
|
| return;
|
|
|
| - WebNode focused_node = document.focusedNode();
|
| - if (focused_node.isNull() || !focused_node.isElementNode())
|
| + blink::WebElement element = document.focusedElement();
|
| + if (element.isNull())
|
| return;
|
|
|
| - blink::WebElement element = focused_node.to<blink::WebElement>();
|
| blink::WebInputElement* input_element = blink::toWebInputElement(&element);
|
| if (!input_element)
|
| return;
|
|
|