| Index: third_party/WebKit/Source/core/editing/WebSubstringUtil.mm
|
| diff --git a/third_party/WebKit/Source/core/editing/WebSubstringUtil.mm b/third_party/WebKit/Source/core/editing/WebSubstringUtil.mm
|
| index 7584a652ea8c5a6c71f3a094a387f0681cab6990..f60a06c80198b73d84c2a961a250d10782508da4 100644
|
| --- a/third_party/WebKit/Source/core/editing/WebSubstringUtil.mm
|
| +++ b/third_party/WebKit/Source/core/editing/WebSubstringUtil.mm
|
| @@ -169,11 +169,9 @@ NSAttributedString* WebSubstringUtil::AttributedWordAtPoint(
|
| return nil;
|
|
|
| // Expand to word under point.
|
| - const VisibleSelection& selection =
|
| - CreateVisibleSelection(SelectionInDOMTree::Builder()
|
| - .SetBaseAndExtent(range)
|
| - .SetGranularity(kWordGranularity)
|
| - .Build());
|
| + const VisibleSelection& selection = CreateVisibleSelectionWithGranularity(
|
| + SelectionInDOMTree::Builder().SetBaseAndExtent(range).Build(),
|
| + kWordGranularity);
|
| const EphemeralRange word_range = selection.ToNormalizedEphemeralRange();
|
|
|
| // Convert to NSAttributedString.
|
|
|