OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/EphemeralRange.h" | 5 #include "core/editing/EphemeralRange.h" |
6 | 6 |
7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
8 #include "core/dom/Element.h" | 8 #include "core/dom/Element.h" |
9 #include "core/dom/Range.h" | 9 #include "core/dom/Range.h" |
10 #include "core/dom/Text.h" | 10 #include "core/dom/Text.h" |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 #endif | 138 #endif |
139 | 139 |
140 PassRefPtrWillBeRawPtr<Range> createRange(const EphemeralRange& range) | 140 PassRefPtrWillBeRawPtr<Range> createRange(const EphemeralRange& range) |
141 { | 141 { |
142 if (range.isNull()) | 142 if (range.isNull()) |
143 return nullptr; | 143 return nullptr; |
144 return Range::create(range.document(), range.startPosition(), range.endPosit
ion()); | 144 return Range::create(range.document(), range.startPosition(), range.endPosit
ion()); |
145 } | 145 } |
146 | 146 |
147 template class CORE_TEMPLATE_EXPORT EphemeralRangeTemplate<EditingStrategy>; | 147 template class CORE_TEMPLATE_EXPORT EphemeralRangeTemplate<EditingStrategy>; |
148 template class CORE_TEMPLATE_EXPORT EphemeralRangeTemplate<EditingInComposedTree
Strategy>; | 148 template class CORE_TEMPLATE_EXPORT EphemeralRangeTemplate<EditingInFlatTreeStra
tegy>; |
149 | 149 |
150 } // namespace blink | 150 } // namespace blink |
OLD | NEW |