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

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

Issue 1675163002: Rename ComposedTree to FlatTree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip Created 4 years, 10 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698