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

Unified Diff: Source/core/editing/VisibleSelection.h

Issue 1201423002: Use VisibleSelection::InDOMTree::equalSelections() instead of operator==() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-06-24T15:30:20 Rebase - exclude FrameSelection Created 5 years, 6 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: Source/core/editing/VisibleSelection.h
diff --git a/Source/core/editing/VisibleSelection.h b/Source/core/editing/VisibleSelection.h
index ad5f2ee20957349017c5a5fec8b2ea5fbd422770..1247b7cb9895a79514fcacad0ab03254d1557272 100644
--- a/Source/core/editing/VisibleSelection.h
+++ b/Source/core/editing/VisibleSelection.h
@@ -246,23 +246,6 @@ private:
bool m_isDirectional : 1; // Non-directional ignores m_baseIsFirst and selection always extends on shift + arrow key.
};
-inline bool operator==(const VisibleSelection& a, const VisibleSelection& b)
-{
- if (a.affinity() != b.affinity() || a.isDirectional() != b.isDirectional())
- return false;
-
- if (a.isNone())
- return b.isNone();
-
- return a.start() == b.start() && a.end() == b.end() && a.affinity() == b.affinity()
- && a.isDirectional() == b.isDirectional() && a.base() == b.base() && a.extent() == b.extent();
-}
-
-inline bool operator!=(const VisibleSelection& a, const VisibleSelection& b)
-{
- return !(a == b);
-}
-
} // namespace blink
#ifndef NDEBUG

Powered by Google App Engine
This is Rietveld 408576698