| Index: third_party/WebKit/Source/core/editing/VisibleSelection.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
|
| index ec7f7da35795bc7a17af6222ee77d0cf97a05295..051d6dd005c943676eb1027ab6d74197b446fef5 100644
|
| --- a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
|
| @@ -74,143 +74,6 @@ VisibleSelectionTemplate<Strategy> VisibleSelectionTemplate<Strategy>::create(
|
| return VisibleSelectionTemplate(base, extent, affinity, isDirectional);
|
| }
|
|
|
| -VisibleSelection createVisibleSelectionDeprecated(const Position& pos,
|
| - TextAffinity affinity,
|
| - bool isDirectional) {
|
| - if (pos.isNotNull())
|
| - pos.document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| - return VisibleSelection::create(pos, pos, affinity, isDirectional);
|
| -}
|
| -
|
| -VisibleSelection createVisibleSelectionDeprecated(const Position& base,
|
| - const Position& extent,
|
| - TextAffinity affinity,
|
| - bool isDirectional) {
|
| - if (base.isNotNull())
|
| - base.document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| - if (extent.isNotNull())
|
| - extent.document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| - return VisibleSelection::create(base, extent, affinity, isDirectional);
|
| -}
|
| -
|
| -VisibleSelection createVisibleSelectionDeprecated(
|
| - const PositionWithAffinity& pos,
|
| - bool isDirectional) {
|
| - if (pos.isNotNull())
|
| - pos.document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| - return VisibleSelection::create(pos.position(), pos.position(),
|
| - pos.affinity(), isDirectional);
|
| -}
|
| -
|
| -VisibleSelection createVisibleSelectionDeprecated(const VisiblePosition& pos,
|
| - bool isDirectional) {
|
| - if (pos.isNotNull())
|
| - pos.deepEquivalent()
|
| - .document()
|
| - ->updateStyleAndLayoutIgnorePendingStylesheets();
|
| - return VisibleSelection::create(pos.deepEquivalent(), pos.deepEquivalent(),
|
| - pos.affinity(), isDirectional);
|
| -}
|
| -
|
| -VisibleSelection createVisibleSelectionDeprecated(const VisiblePosition& base,
|
| - const VisiblePosition& extent,
|
| - bool isDirectional) {
|
| - if (base.isNotNull())
|
| - base.deepEquivalent()
|
| - .document()
|
| - ->updateStyleAndLayoutIgnorePendingStylesheets();
|
| - if (extent.isNotNull())
|
| - extent.deepEquivalent()
|
| - .document()
|
| - ->updateStyleAndLayoutIgnorePendingStylesheets();
|
| - return VisibleSelection::create(base.deepEquivalent(),
|
| - extent.deepEquivalent(), base.affinity(),
|
| - isDirectional);
|
| -}
|
| -
|
| -VisibleSelection createVisibleSelectionDeprecated(const EphemeralRange& range,
|
| - TextAffinity affinity,
|
| - bool isDirectional) {
|
| - if (range.isNotNull())
|
| - range.startPosition()
|
| - .document()
|
| - ->updateStyleAndLayoutIgnorePendingStylesheets();
|
| - return VisibleSelection::create(range.startPosition(), range.endPosition(),
|
| - affinity, isDirectional);
|
| -}
|
| -
|
| -VisibleSelectionInFlatTree createVisibleSelectionDeprecated(
|
| - const PositionInFlatTree& pos,
|
| - TextAffinity affinity,
|
| - bool isDirectional) {
|
| - if (pos.isNotNull())
|
| - pos.document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| - return VisibleSelectionInFlatTree::create(pos, pos, affinity, isDirectional);
|
| -}
|
| -
|
| -VisibleSelectionInFlatTree createVisibleSelectionDeprecated(
|
| - const PositionInFlatTree& base,
|
| - const PositionInFlatTree& extent,
|
| - TextAffinity affinity,
|
| - bool isDirectional) {
|
| - if (base.isNotNull())
|
| - base.document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| - if (extent.isNotNull())
|
| - extent.document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| - return VisibleSelectionInFlatTree::create(base, extent, affinity,
|
| - isDirectional);
|
| -}
|
| -
|
| -VisibleSelectionInFlatTree createVisibleSelectionDeprecated(
|
| - const PositionInFlatTreeWithAffinity& pos,
|
| - bool isDirectional) {
|
| - if (pos.isNotNull())
|
| - pos.document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| - return VisibleSelectionInFlatTree::create(pos.position(), pos.position(),
|
| - pos.affinity(), isDirectional);
|
| -}
|
| -
|
| -VisibleSelectionInFlatTree createVisibleSelectionDeprecated(
|
| - const VisiblePositionInFlatTree& pos,
|
| - bool isDirectional) {
|
| - if (pos.isNotNull())
|
| - pos.deepEquivalent()
|
| - .document()
|
| - ->updateStyleAndLayoutIgnorePendingStylesheets();
|
| - return VisibleSelectionInFlatTree::create(pos.deepEquivalent(),
|
| - pos.deepEquivalent(),
|
| - pos.affinity(), isDirectional);
|
| -}
|
| -
|
| -VisibleSelectionInFlatTree createVisibleSelectionDeprecated(
|
| - const VisiblePositionInFlatTree& base,
|
| - const VisiblePositionInFlatTree& extent,
|
| - bool isDirectional) {
|
| - if (base.isNotNull())
|
| - base.deepEquivalent()
|
| - .document()
|
| - ->updateStyleAndLayoutIgnorePendingStylesheets();
|
| - if (extent.isNotNull())
|
| - extent.deepEquivalent()
|
| - .document()
|
| - ->updateStyleAndLayoutIgnorePendingStylesheets();
|
| - return VisibleSelectionInFlatTree::create(base.deepEquivalent(),
|
| - extent.deepEquivalent(),
|
| - base.affinity(), isDirectional);
|
| -}
|
| -
|
| -VisibleSelectionInFlatTree createVisibleSelectionDeprecated(
|
| - const EphemeralRangeInFlatTree& range,
|
| - TextAffinity affinity,
|
| - bool isDirectional) {
|
| - if (range.isNotNull())
|
| - range.startPosition()
|
| - .document()
|
| - ->updateStyleAndLayoutIgnorePendingStylesheets();
|
| - return VisibleSelectionInFlatTree::create(
|
| - range.startPosition(), range.endPosition(), affinity, isDirectional);
|
| -}
|
| -
|
| VisibleSelection createVisibleSelection(const Position& pos,
|
| TextAffinity affinity,
|
| bool isDirectional) {
|
|
|