| Index: third_party/WebKit/Source/core/input/EventHandler.cpp
|
| diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
|
| index c96ff69f4da233f86bf94261dc424a0ac5305eb8..29fe2e47346f6676bf226bbba756bea76c07e88e 100644
|
| --- a/third_party/WebKit/Source/core/input/EventHandler.cpp
|
| +++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
|
| @@ -1839,7 +1839,8 @@ WebInputEventResult EventHandler::sendContextMenuEventForKey(
|
| VisualViewport& visualViewport = frameHost()->visualViewport();
|
|
|
| if (!overrideTargetElement && start.anchorNode() &&
|
| - (selection.rootEditableElement() || selection.isRange())) {
|
| + (selection.rootEditableElement() ||
|
| + selection.computeVisibleSelectionInDOMTreeDeprecated().isRange())) {
|
| // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets
|
| // needs to be audited. See http://crbug.com/590369 for more details.
|
| doc->updateStyleAndLayoutIgnorePendingStylesheets();
|
|
|