| 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 "config.h" | 5 #include "config.h" |
| 6 #include "core/editing/PositionWithAffinity.h" | 6 #include "core/editing/PositionWithAffinity.h" |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 | 9 |
| 10 PositionWithAffinity::PositionWithAffinity(const Position& position, EAffinity a
ffinity) | 10 PositionWithAffinity::PositionWithAffinity(const Position& position, EAffinity a
ffinity) |
| 11 : m_position(position) | 11 : m_position(position) |
| 12 , m_affinity(affinity) | 12 , m_affinity(affinity) |
| 13 { | 13 { |
| 14 } | 14 } |
| 15 | 15 |
| 16 PositionWithAffinity::PositionWithAffinity() | 16 PositionWithAffinity::PositionWithAffinity() |
| 17 : m_affinity(DOWNSTREAM) | 17 : m_affinity(DOWNSTREAM) |
| 18 { | 18 { |
| 19 } | 19 } |
| 20 | 20 |
| 21 PositionWithAffinity::~PositionWithAffinity() | 21 PositionWithAffinity::~PositionWithAffinity() |
| 22 { | 22 { |
| 23 } | 23 } |
| 24 | 24 |
| 25 void PositionWithAffinity::trace(Visitor* visitor) | |
| 26 { | |
| 27 visitor->trace(m_position); | |
| 28 } | |
| 29 | |
| 30 } // namespace blink | 25 } // namespace blink |
| OLD | NEW |