| Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| index de2132e0a8b9f4a1a87499c4429e485da3291cfb..89d55678ff7d6f26ed137803c28d2265c307216c 100644
|
| --- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| @@ -1086,7 +1086,11 @@ bool WebLocalFrameImpl::hasSelection() const {
|
| return pluginContainer->plugin()->hasSelection();
|
|
|
| // frame()->selection()->isNone() never returns true.
|
| - return frame()->selection().start() != frame()->selection().end();
|
| + return frame()->selection().start() !=
|
| + frame()
|
| + ->selection()
|
| + .computeVisibleSelectionInDOMTreeDeprecated()
|
| + .end();
|
| }
|
|
|
| WebRange WebLocalFrameImpl::selectionRange() const {
|
|
|