OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. |
3 * Copyright (C) 2005 Alexey Proskuryakov. | 3 * Copyright (C) 2005 Alexey Proskuryakov. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 14 matching lines...) Expand all Loading... |
25 */ | 25 */ |
26 | 26 |
27 #include "config.h" | 27 #include "config.h" |
28 #include "core/editing/PlainTextRange.h" | 28 #include "core/editing/PlainTextRange.h" |
29 | 29 |
30 #include "core/dom/ContainerNode.h" | 30 #include "core/dom/ContainerNode.h" |
31 #include "core/dom/Document.h" | 31 #include "core/dom/Document.h" |
32 #include "core/dom/Range.h" | 32 #include "core/dom/Range.h" |
33 #include "core/editing/EphemeralRange.h" | 33 #include "core/editing/EphemeralRange.h" |
34 #include "core/editing/VisiblePosition.h" | 34 #include "core/editing/VisiblePosition.h" |
| 35 #include "core/editing/VisibleUnits.h" |
35 #include "core/editing/iterators/TextIterator.h" | 36 #include "core/editing/iterators/TextIterator.h" |
36 | 37 |
37 namespace blink { | 38 namespace blink { |
38 | 39 |
39 PlainTextRange::PlainTextRange() | 40 PlainTextRange::PlainTextRange() |
40 : m_start(kNotFound) | 41 : m_start(kNotFound) |
41 , m_end(kNotFound) | 42 , m_end(kNotFound) |
42 { | 43 { |
43 } | 44 } |
44 | 45 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 | 181 |
181 return PlainTextRange(start, end); | 182 return PlainTextRange(start, end); |
182 } | 183 } |
183 | 184 |
184 PlainTextRange PlainTextRange::create(const ContainerNode& scope, const Range& r
ange) | 185 PlainTextRange PlainTextRange::create(const ContainerNode& scope, const Range& r
ange) |
185 { | 186 { |
186 return create(scope, EphemeralRange(&range)); | 187 return create(scope, EphemeralRange(&range)); |
187 } | 188 } |
188 | 189 |
189 } | 190 } |
OLD | NEW |