| Index: third_party/WebKit/Source/core/editing/PendingSelection.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/PendingSelection.cpp b/third_party/WebKit/Source/core/editing/PendingSelection.cpp
|
| index 83161df0c5915ecd620abde5245508e8309ecb51..a0ce47623cc5323286a52253b4aaef3c798ef531 100644
|
| --- a/third_party/WebKit/Source/core/editing/PendingSelection.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/PendingSelection.cpp
|
| @@ -62,7 +62,7 @@ VisibleSelectionInFlatTree PendingSelection::calcVisibleSelection(const VisibleS
|
| SelectionType selectionType = originalSelection.getSelectionType();
|
| const TextAffinity affinity = originalSelection.affinity();
|
|
|
| - bool paintBlockCursor = m_frameSelection->shouldShowBlockCursor() && selectionType == SelectionType::CaretSelection && !isLogicalEndOfLine(createVisiblePositionDeprecated(end, affinity));
|
| + bool paintBlockCursor = m_frameSelection->shouldShowBlockCursor() && selectionType == SelectionType::CaretSelection && !isLogicalEndOfLine(createVisiblePosition(end, affinity));
|
| VisibleSelectionInFlatTree selection;
|
| if (enclosingTextFormControl(start.computeContainerNode())) {
|
| // TODO(yosin) We should use |PositionMoveType::CodePoint| to avoid
|
| @@ -72,13 +72,13 @@ VisibleSelectionInFlatTree PendingSelection::calcVisibleSelection(const VisibleS
|
| return selection;
|
| }
|
|
|
| - const VisiblePositionInFlatTree& visibleStart = createVisiblePositionDeprecated(start, selectionType == SelectionType::RangeSelection ? TextAffinity::Downstream : affinity);
|
| + const VisiblePositionInFlatTree& visibleStart = createVisiblePosition(start, selectionType == SelectionType::RangeSelection ? TextAffinity::Downstream : affinity);
|
| if (paintBlockCursor) {
|
| - VisiblePositionInFlatTree visibleExtent = createVisiblePositionDeprecated(end, affinity);
|
| + VisiblePositionInFlatTree visibleExtent = createVisiblePosition(end, affinity);
|
| visibleExtent = nextPositionOf(visibleExtent, CanSkipOverEditingBoundary);
|
| return VisibleSelectionInFlatTree(visibleStart, visibleExtent);
|
| }
|
| - const VisiblePositionInFlatTree visibleEnd = createVisiblePositionDeprecated(end, selectionType == SelectionType::RangeSelection ? TextAffinity::Upstream : affinity);
|
| + const VisiblePositionInFlatTree visibleEnd = createVisiblePosition(end, selectionType == SelectionType::RangeSelection ? TextAffinity::Upstream : affinity);
|
| return VisibleSelectionInFlatTree(visibleStart, visibleEnd);
|
| }
|
|
|
|
|