| Index: third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| index 029e5f7c40f442e4ff6f2d412d26bf02dacaf176..2400a5fccb2e230f2ecbbc727ebb83120d2eff9c 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| @@ -393,7 +393,7 @@ static bool ExecuteInsertElement(LocalFrame& frame, HTMLElement* content) {
|
|
|
| static bool ExpandSelectionToGranularity(LocalFrame& frame,
|
| TextGranularity granularity) {
|
| - const VisibleSelection& selection = CreateVisibleSelection(
|
| + const VisibleSelection& selection = CreateVisibleSelectionWithGranularity(
|
| SelectionInDOMTree::Builder()
|
| .SetBaseAndExtent(frame.Selection()
|
| .ComputeVisibleSelectionInDOMTreeDeprecated()
|
| @@ -401,8 +401,8 @@ static bool ExpandSelectionToGranularity(LocalFrame& frame,
|
| frame.Selection()
|
| .ComputeVisibleSelectionInDOMTreeDeprecated()
|
| .Extent())
|
| - .SetGranularity(granularity)
|
| - .Build());
|
| + .Build(),
|
| + granularity);
|
| const EphemeralRange new_range = selection.ToNormalizedEphemeralRange();
|
| if (new_range.IsNull())
|
| return false;
|
|
|