Chromium Code Reviews| Index: Source/core/editing/PositionWithAffinity.cpp |
| diff --git a/Source/core/editing/PositionWithAffinity.cpp b/Source/core/editing/PositionWithAffinity.cpp |
| index fff00e05be23125f5d6518f5a56f0b0edbd40c68..50de54114602b0be1388aa140b685adae0b23ee1 100644 |
| --- a/Source/core/editing/PositionWithAffinity.cpp |
| +++ b/Source/core/editing/PositionWithAffinity.cpp |
| @@ -25,6 +25,14 @@ PositionWithAffinityTemplate<PositionType>::~PositionWithAffinityTemplate() |
| { |
| } |
| +template <typename PositionType> |
| +bool PositionWithAffinityTemplate<PositionType>::operator==(const PositionWithAffinityTemplate& other) const |
| +{ |
| + if (isNull()) |
|
tkent
2015/06/22 07:04:59
Please document this in PositionWithAffinity.h.
yosin_UTC9
2015/06/22 07:25:35
Done.
|
| + return other.isNull(); |
| + return m_affinity == other.m_affinity && m_position == other.m_position; |
| +} |
| + |
| template class CORE_EXTERN_TEMPLATE_EXPORT PositionWithAffinityTemplate<Position>; |
| } // namespace blink |