Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: third_party/WebKit/Source/core/editing/VisibleSelection.cpp

Issue 2411303002: Prune deprecated functions from VisibleSelection and VisibleUnits (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {
« no previous file with comments | « third_party/WebKit/Source/core/editing/VisibleSelection.h ('k') | third_party/WebKit/Source/core/editing/VisibleUnits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698