| Index: Source/core/editing/PositionWithAffinity.h
|
| diff --git a/Source/core/editing/PositionWithAffinity.h b/Source/core/editing/PositionWithAffinity.h
|
| index 38fb1f641e77ca045b928c7e8bcf77057af2dbc2..97e5de4d9705e16c18cd33134d64a0b022ee26cf 100644
|
| --- a/Source/core/editing/PositionWithAffinity.h
|
| +++ b/Source/core/editing/PositionWithAffinity.h
|
| @@ -24,6 +24,14 @@ public:
|
| EAffinity affinity() const { return m_affinity; }
|
| const PositionType& position() const { return m_position; }
|
|
|
| + // Returns true if both |this| and |other| is null or both |m_position|
|
| + // and |m_affinity| equal.
|
| + bool operator==(const PositionWithAffinityTemplate& other) const;
|
| + bool operator!=(const PositionWithAffinityTemplate& other) const { return !operator==(other); }
|
| +
|
| + bool isNotNull() const { return m_position.isNotNull(); }
|
| + bool isNull() const { return m_position.isNull(); }
|
| +
|
| DEFINE_INLINE_TRACE()
|
| {
|
| visitor->trace(m_position);
|
|
|