OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file./* | 3 // found in the LICENSE file./* |
4 | 4 |
5 #include "core/editing/PositionWithAffinity.h" | 5 #include "core/editing/PositionWithAffinity.h" |
6 | 6 |
7 namespace blink { | 7 namespace blink { |
8 | 8 |
9 template <typename Strategy> | 9 template <typename Strategy> |
10 PositionWithAffinityTemplate<Strategy>::PositionWithAffinityTemplate(const Posit
ionTemplate<Strategy>& position, TextAffinity affinity) | 10 PositionWithAffinityTemplate<Strategy>::PositionWithAffinityTemplate(const Posit
ionTemplate<Strategy>& position, TextAffinity affinity) |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 template <typename Strategy> | 27 template <typename Strategy> |
28 bool PositionWithAffinityTemplate<Strategy>::operator==(const PositionWithAffini
tyTemplate& other) const | 28 bool PositionWithAffinityTemplate<Strategy>::operator==(const PositionWithAffini
tyTemplate& other) const |
29 { | 29 { |
30 if (isNull()) | 30 if (isNull()) |
31 return other.isNull(); | 31 return other.isNull(); |
32 return m_affinity == other.m_affinity && m_position == other.m_position; | 32 return m_affinity == other.m_affinity && m_position == other.m_position; |
33 } | 33 } |
34 | 34 |
35 template class CORE_TEMPLATE_EXPORT PositionWithAffinityTemplate<EditingStrategy
>; | 35 template class CORE_TEMPLATE_EXPORT PositionWithAffinityTemplate<EditingStrategy
>; |
36 template class CORE_TEMPLATE_EXPORT PositionWithAffinityTemplate<EditingInCompos
edTreeStrategy>; | 36 template class CORE_TEMPLATE_EXPORT PositionWithAffinityTemplate<EditingInFlatTr
eeStrategy>; |
37 | 37 |
38 } // namespace blink | 38 } // namespace blink |
OLD | NEW |