| Index: Source/web/WebViewImpl.cpp
 | 
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
 | 
| index 2aa2f8c76b099732489994c76661023d14a81d16..fd553a1abb1cc18c3c7a3034f491939a9233c463 100644
 | 
| --- a/Source/web/WebViewImpl.cpp
 | 
| +++ b/Source/web/WebViewImpl.cpp
 | 
| @@ -2165,17 +2165,17 @@ WebTextInputInfo WebViewImpl::textInputInfo()
 | 
|      if (!focused)
 | 
|          return info;
 | 
|  
 | 
| -    FrameSelection& selection = focused->selection();
 | 
| -    Node* node = selection.selection().rootEditableElement();
 | 
| -    if (!node)
 | 
| -        return info;
 | 
| -
 | 
|      info.inputMode = inputModeOfFocusedElement();
 | 
|  
 | 
|      info.type = textInputType();
 | 
|      if (info.type == WebTextInputTypeNone)
 | 
|          return info;
 | 
|  
 | 
| +    FrameSelection& selection = focused->selection();
 | 
| +    Node* node = selection.selection().rootEditableElement();
 | 
| +    if (!node)
 | 
| +        return info;
 | 
| +
 | 
|      if (!focused->editor().canEdit())
 | 
|          return info;
 | 
|  
 | 
| 
 |