| Index: third_party/WebKit/Source/web/mac/WebSubstringUtil.mm
|
| diff --git a/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm b/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm
|
| index 7460f657fa79e51a498db120515ca67b20df9771..568aa3ce00868c3b1206fffbe579c81c858466fe 100644
|
| --- a/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm
|
| +++ b/third_party/WebKit/Source/web/mac/WebSubstringUtil.mm
|
| @@ -167,9 +167,11 @@ NSAttributedString* WebSubstringUtil::attributedWordAtPoint(
|
| return nil;
|
|
|
| // Expand to word under point.
|
| - VisibleSelection selection = createVisibleSelection(
|
| - SelectionInDOMTree::Builder().setBaseAndExtent(range).build());
|
| - selection.expandUsingGranularity(WordGranularity);
|
| + const VisibleSelection& selection =
|
| + createVisibleSelection(SelectionInDOMTree::Builder()
|
| + .setBaseAndExtent(range)
|
| + .setGranularity(WordGranularity)
|
| + .build());
|
| const EphemeralRange wordRange = selection.toNormalizedEphemeralRange();
|
|
|
| // Convert to NSAttributedString.
|
|
|