| Index: third_party/WebKit/Source/web/WebViewImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| index 64e2af8a2e923aed9d6cd694a9e3f53af4d04ebe..6ab6f1809a29f36d31897ab7a981c0805ff3364b 100644
|
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| @@ -2356,7 +2356,8 @@ bool WebViewImpl::selectionBounds(WebRect& anchor, WebRect& focus) const {
|
| if (!localFrame)
|
| return false;
|
| FrameSelection& selection = localFrame->selection();
|
| - if (!selection.isAvailable() || selection.isNone()) {
|
| + if (!selection.isAvailable() ||
|
| + selection.computeVisibleSelectionInDOMTreeDeprecated().isNone()) {
|
| // plugins/mouse-capture-inside-shadow.html reaches here.
|
| return false;
|
| }
|
|
|