Index: Source/core/editing/VisibleSelection.h |
diff --git a/Source/core/editing/VisibleSelection.h b/Source/core/editing/VisibleSelection.h |
index 75856ea84e53dc33c3ed5fbc93a903cfc1826c55..f9583eb0217c4e33e4f5af6d57afcad5c9f53ca1 100644 |
--- a/Source/core/editing/VisibleSelection.h |
+++ b/Source/core/editing/VisibleSelection.h |
@@ -183,7 +183,7 @@ private: |
inline bool operator==(const VisibleSelection& a, const VisibleSelection& b) |
{ |
return a.start() == b.start() && a.end() == b.end() && a.affinity() == b.affinity() && a.isBaseFirst() == b.isBaseFirst() |
yosin_UTC9
2015/04/16 04:59:04
if one of selections is null, we don't need to che
yosin_UTC9
2015/04/16 04:59:04
Since we compare base/extent equality, we don't ne
mfomitchev
2015/04/16 18:11:32
Added the None check and removed isBaseFirst() che
|
- && a.isDirectional() == b.isDirectional(); |
+ && a.isDirectional() == b.isDirectional() && a.base() == b.base() && a.extent() == b.extent(); |
} |
inline bool operator!=(const VisibleSelection& a, const VisibleSelection& b) |