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

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

Issue 1320313002: Move makeRange() with VisiblePosition to EditingUtilities.cpp from VisiblePosition.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-31T14:11:43 Created 5 years, 4 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 | « 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: Source/core/editing/VisiblePosition.cpp
diff --git a/Source/core/editing/VisiblePosition.cpp b/Source/core/editing/VisiblePosition.cpp
index 4e9143e54e075f79c754781d676ee90002c60d5a..b9956e6b411c233e756e19b32d717e75181a360f 100644
--- a/Source/core/editing/VisiblePosition.cpp
+++ b/Source/core/editing/VisiblePosition.cpp
@@ -772,19 +772,6 @@ void VisiblePosition::showTreeForThis() const
#endif
-EphemeralRange makeRange(const VisiblePosition &start, const VisiblePosition &end)
-{
- if (start.isNull() || end.isNull())
- return EphemeralRange();
-
- Position s = start.deepEquivalent().parentAnchoredEquivalent();
- Position e = end.deepEquivalent().parentAnchoredEquivalent();
- if (s.isNull() || e.isNull())
- return EphemeralRange();
-
- return EphemeralRange(s, e);
-}
-
DEFINE_TRACE(VisiblePosition)
{
visitor->trace(m_deepPosition);
« no previous file with comments | « Source/core/editing/VisiblePosition.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698