| 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 29fe2e47346f6676bf226bbba756bea76c07e88e..a86fbea82aedc64ea728f883d6df4c872c200607 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.computeVisibleSelectionInDOMTreeDeprecated()
|
| + .rootEditableElement() ||
|
| selection.computeVisibleSelectionInDOMTreeDeprecated().isRange())) {
|
| // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets
|
| // needs to be audited. See http://crbug.com/590369 for more details.
|
|
|