| Index: Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
|
| index a05d7e3c62780a09594497cb82a7510129560743..1606915fb3313b8631f6da61f9f8b0e5147202bc 100644
|
| --- a/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/Source/web/WebLocalFrameImpl.cpp
|
| @@ -1146,11 +1146,7 @@ WebString WebLocalFrameImpl::selectionAsMarkup() const
|
|
|
| void WebLocalFrameImpl::selectWordAroundPosition(LocalFrame* frame, VisiblePosition position)
|
| {
|
| - VisibleSelection selection(position);
|
| - selection.expandUsingGranularity(WordGranularity);
|
| -
|
| - TextGranularity granularity = selection.isRange() ? WordGranularity : CharacterGranularity;
|
| - frame->selection().setSelection(selection, granularity);
|
| + frame->selection().selectWordAroundPosition(position);
|
| }
|
|
|
| bool WebLocalFrameImpl::selectWordAroundCaret()
|
|
|