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

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

Issue 2426513002: Prune createVisiblePositionDeprecated (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
« no previous file with comments | « third_party/WebKit/Source/core/editing/VisiblePosition.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/VisiblePosition.cpp
diff --git a/third_party/WebKit/Source/core/editing/VisiblePosition.cpp b/third_party/WebKit/Source/core/editing/VisiblePosition.cpp
index 63009d224b9879577fb06bc768731efef2134444..70f54413cf818e9f4ed4e1065f3651cbe03b734c 100644
--- a/third_party/WebKit/Source/core/editing/VisiblePosition.cpp
+++ b/third_party/WebKit/Source/core/editing/VisiblePosition.cpp
@@ -136,52 +136,6 @@ VisiblePositionTemplate<Strategy>::lastPositionInNode(Node* node) {
PositionTemplate<Strategy>::lastPositionInNode(node)));
}
-VisiblePosition createVisiblePositionDeprecated(const Position& position,
- TextAffinity affinity) {
- // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets
- // needs to be audited. See http://crbug.com/590369 for more details.
- if (position.isNotNull())
- position.document()->updateStyleAndLayoutIgnorePendingStylesheets();
-
- return VisiblePosition::create(PositionWithAffinity(position, affinity));
-}
-
-VisiblePosition createVisiblePositionDeprecated(
- const PositionWithAffinity& positionWithAffinity) {
- // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets
- // needs to be audited. See http://crbug.com/590369 for more details.
- if (positionWithAffinity.isNotNull())
- positionWithAffinity.position()
- .document()
- ->updateStyleAndLayoutIgnorePendingStylesheets();
-
- return VisiblePosition::create(positionWithAffinity);
-}
-
-VisiblePositionInFlatTree createVisiblePositionDeprecated(
- const PositionInFlatTree& position,
- TextAffinity affinity) {
- // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets
- // needs to be audited. See http://crbug.com/590369 for more details.
- if (position.isNotNull())
- position.document()->updateStyleAndLayoutIgnorePendingStylesheets();
-
- return VisiblePositionInFlatTree::create(
- PositionInFlatTreeWithAffinity(position, affinity));
-}
-
-VisiblePositionInFlatTree createVisiblePositionDeprecated(
- const PositionInFlatTreeWithAffinity& positionWithAffinity) {
- // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets
- // needs to be audited. See http://crbug.com/590369 for more details.
- if (positionWithAffinity.isNotNull())
- positionWithAffinity.position()
- .document()
- ->updateStyleAndLayoutIgnorePendingStylesheets();
-
- return VisiblePositionInFlatTree::create(positionWithAffinity);
-}
-
VisiblePosition createVisiblePosition(const Position& position,
TextAffinity affinity) {
return VisiblePosition::create(PositionWithAffinity(position, affinity));
« no previous file with comments | « third_party/WebKit/Source/core/editing/VisiblePosition.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698