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

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

Issue 1318913004: [CodeHealth][Editing] Refactor EphemeralRange::isNull/isNotNull impl. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/EphemeralRange.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/EphemeralRange.cpp
diff --git a/Source/core/editing/EphemeralRange.cpp b/Source/core/editing/EphemeralRange.cpp
index 05253b23128bc0387893767dd98513c75c2c9b39..1f3acaac471f46538bd5eb292edcc73786f36d9a 100644
--- a/Source/core/editing/EphemeralRange.cpp
+++ b/Source/core/editing/EphemeralRange.cpp
@@ -118,13 +118,6 @@ bool EphemeralRangeTemplate<Strategy>::isCollapsed() const
}
template <typename Strategy>
-bool EphemeralRangeTemplate<Strategy>::isNotNull() const
-{
- ASSERT(isValid());
- return m_startPosition.isNotNull();
-}
-
-template <typename Strategy>
EphemeralRangeTemplate<Strategy> EphemeralRangeTemplate<Strategy>::rangeOfContents(const Node& node)
{
return EphemeralRangeTemplate<Strategy>(PositionAlgorithm<Strategy>::firstPositionInNode(&const_cast<Node&>(node)), PositionAlgorithm<Strategy>::lastPositionInNode(&const_cast<Node&>(node)));
« no previous file with comments | « Source/core/editing/EphemeralRange.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698