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