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 89d55678ff7d6f26ed137803c28d2265c307216c..7a1c25a7383ffffcb86d09f88dcdbf1000fa9c86 100644 |
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
@@ -1149,7 +1149,8 @@ void WebLocalFrameImpl::selectWordAroundPosition(LocalFrame* frame, |
bool WebLocalFrameImpl::selectWordAroundCaret() { |
TRACE_EVENT0("blink", "WebLocalFrameImpl::selectWordAroundCaret"); |
FrameSelection& selection = frame()->selection(); |
- if (selection.isNone() || selection.isRange()) |
+ if (selection.isNone() || |
+ selection.computeVisibleSelectionInDOMTreeDeprecated().isRange()) |
return false; |
// TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets |