| Index: third_party/WebKit/Source/core/editing/GranularityStrategy.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/GranularityStrategy.cpp b/third_party/WebKit/Source/core/editing/GranularityStrategy.cpp
|
| index 2b51dcb4ae864b06f008e1d38d382f6621c7c6ef..d6d932089cc42a96387ec97749dbc25b643f65f3 100644
|
| --- a/third_party/WebKit/Source/core/editing/GranularityStrategy.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/GranularityStrategy.cpp
|
| @@ -268,9 +268,11 @@ VisibleSelection DirectionGranularityStrategy::updateExtent(
|
|
|
| m_diffExtentPointFromExtentPosition =
|
| extentPoint + IntSize(m_offset, 0) - positionLocation(newSelectionExtent);
|
| - VisibleSelection newSelection = selection;
|
| - newSelection.setExtent(newSelectionExtent);
|
| - return newSelection;
|
| + return createVisibleSelection(
|
| + SelectionInDOMTree::Builder(selection.asSelection())
|
| + .collapse(selection.base())
|
| + .extend(newSelectionExtent.deepEquivalent())
|
| + .build());
|
| }
|
|
|
| } // namespace blink
|
|
|