| Index: third_party/WebKit/Source/core/input/MouseEventManager.cpp
|
| diff --git a/third_party/WebKit/Source/core/input/MouseEventManager.cpp b/third_party/WebKit/Source/core/input/MouseEventManager.cpp
|
| index 2be66b1a3fd4abb3afab2fdf53deb50dcf063a4f..524f298cea7f49e43ac6efd4c6e3ae32d1b9f5b7 100644
|
| --- a/third_party/WebKit/Source/core/input/MouseEventManager.cpp
|
| +++ b/third_party/WebKit/Source/core/input/MouseEventManager.cpp
|
| @@ -425,7 +425,10 @@ WebInputEventResult MouseEventManager::handleMouseFocus(
|
| // be focused if the user does a mouseup over it, however, because the
|
| // mouseup will set a selection inside it, which will call
|
| // FrameSelection::setFocusedNodeIfNeeded.
|
| - if (element && m_frame->selection().isRange()) {
|
| + if (element &&
|
| + m_frame->selection()
|
| + .computeVisibleSelectionInDOMTreeDeprecated()
|
| + .isRange()) {
|
| // TODO(yosin) We should not create |Range| object for calling
|
| // |isNodeFullyContained()|.
|
| if (createRange(m_frame->selection()
|
|
|