Index: Source/web/WebLocalFrameImpl.cpp |
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
index 0ec32fb473ab8575c5086aab1f3a71f55ff2f6d6..2c86cd0fcaf4775d02649a81c67ada52954d1267 100644 |
--- a/Source/web/WebLocalFrameImpl.cpp |
+++ b/Source/web/WebLocalFrameImpl.cpp |
@@ -1168,8 +1168,7 @@ bool WebLocalFrameImpl::selectWordAroundCaret() |
FrameSelection& selection = frame()->selection(); |
if (selection.isNone() || selection.isRange()) |
return false; |
- selectWordAroundPosition(frame(), selection.selection().visibleStart()); |
- return true; |
+ return frame()->selection().selectWordAroundPosition(selection.selection().visibleStart()); |
} |
void WebLocalFrameImpl::selectRange(const WebPoint& base, const WebPoint& extent) |