Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(699)

Side by Side Diff: third_party/WebKit/Source/core/editing/PositionWithAffinity.cpp

Issue 1756763002: 2016-03-02T18:53:01 LayoutPosition Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-04-25T19:02:18 Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include <ostream> // NOLINT
8
7 namespace blink { 9 namespace blink {
8 10
9 template <typename Strategy> 11 template <typename Strategy>
10 PositionWithAffinityTemplate<Strategy>::PositionWithAffinityTemplate(const Posit ionTemplate<Strategy>& position, TextAffinity affinity) 12 PositionWithAffinityTemplate<Strategy>::PositionWithAffinityTemplate(const Posit ionTemplate<Strategy>& position, TextAffinity affinity)
11 : m_position(position) 13 : m_position(position)
12 , m_affinity(affinity) 14 , m_affinity(affinity)
13 { 15 {
14 } 16 }
15 17
16 template <typename Strategy> 18 template <typename Strategy>
(...skipping 22 matching lines...) Expand all
39 { 41 {
40 return ostream << positionWithAffinity.position() << '/' << positionWithAffi nity.affinity(); 42 return ostream << positionWithAffinity.position() << '/' << positionWithAffi nity.affinity();
41 } 43 }
42 44
43 std::ostream& operator<<(std::ostream& ostream, const PositionInFlatTreeWithAffi nity& positionWithAffinity) 45 std::ostream& operator<<(std::ostream& ostream, const PositionInFlatTreeWithAffi nity& positionWithAffinity)
44 { 46 {
45 return ostream << positionWithAffinity.position() << '/' << positionWithAffi nity.affinity(); 47 return ostream << positionWithAffinity.position() << '/' << positionWithAffi nity.affinity();
46 } 48 }
47 49
48 } // namespace blink 50 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/PositionTest.cpp ('k') | third_party/WebKit/Source/core/editing/VisiblePosition.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698