| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 bool stopsOnFormControls() const { return m_behavior & TextIteratorStopsOnFo
rmControls; } | 142 bool stopsOnFormControls() const { return m_behavior & TextIteratorStopsOnFo
rmControls; } |
| 143 | 143 |
| 144 bool emitsImageAltText() const { return m_behavior & TextIteratorEmitsImageA
ltText; } | 144 bool emitsImageAltText() const { return m_behavior & TextIteratorEmitsImageA
ltText; } |
| 145 | 145 |
| 146 bool entersOpenShadowRoots() const { return m_behavior & TextIteratorEntersO
penShadowRoots; } | 146 bool entersOpenShadowRoots() const { return m_behavior & TextIteratorEntersO
penShadowRoots; } |
| 147 | 147 |
| 148 bool emitsObjectReplacementCharacter() const { return m_behavior & TextItera
torEmitsObjectReplacementCharacter; } | 148 bool emitsObjectReplacementCharacter() const { return m_behavior & TextItera
torEmitsObjectReplacementCharacter; } |
| 149 | 149 |
| 150 bool excludesAutofilledValue() const { return m_behavior & TextIteratorExclu
deAutofilledValue; } | 150 bool excludesAutofilledValue() const { return m_behavior & TextIteratorExclu
deAutofilledValue; } |
| 151 | 151 |
| 152 bool doesNotBreakAtReplacedElement() const { return m_behavior & TextIterato
rDoesNotBreakAtReplacedElement; } |
| 153 |
| 154 bool forInnerText() const { return m_behavior & TextIteratorForInnerText; } |
| 155 |
| 152 bool isBetweenSurrogatePair(int position) const; | 156 bool isBetweenSurrogatePair(int position) const; |
| 153 | 157 |
| 154 // Append code units with offset range [position, position + copyLength) | 158 // Append code units with offset range [position, position + copyLength) |
| 155 // to the output buffer. | 159 // to the output buffer. |
| 156 void copyCodeUnitsTo(ForwardsTextBuffer* output, int position, int copyLengt
h) const; | 160 void copyCodeUnitsTo(ForwardsTextBuffer* output, int position, int copyLengt
h) const; |
| 157 | 161 |
| 158 // Current position, not necessarily of the text being returned, but positio
n | 162 // Current position, not necessarily of the text being returned, but positio
n |
| 159 // as we walk through the DOM tree. | 163 // as we walk through the DOM tree. |
| 160 Member<Node> m_node; | 164 Member<Node> m_node; |
| 161 int m_offset; | 165 int m_offset; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 | 211 |
| 208 extern template class CORE_EXTERN_TEMPLATE_EXPORT TextIteratorAlgorithm<EditingS
trategy>; | 212 extern template class CORE_EXTERN_TEMPLATE_EXPORT TextIteratorAlgorithm<EditingS
trategy>; |
| 209 extern template class CORE_EXTERN_TEMPLATE_EXPORT TextIteratorAlgorithm<EditingI
nFlatTreeStrategy>; | 213 extern template class CORE_EXTERN_TEMPLATE_EXPORT TextIteratorAlgorithm<EditingI
nFlatTreeStrategy>; |
| 210 | 214 |
| 211 using TextIterator = TextIteratorAlgorithm<EditingStrategy>; | 215 using TextIterator = TextIteratorAlgorithm<EditingStrategy>; |
| 212 using TextIteratorInFlatTree = TextIteratorAlgorithm<EditingInFlatTreeStrategy>; | 216 using TextIteratorInFlatTree = TextIteratorAlgorithm<EditingInFlatTreeStrategy>; |
| 213 | 217 |
| 214 } // namespace blink | 218 } // namespace blink |
| 215 | 219 |
| 216 #endif // TextIterator_h | 220 #endif // TextIterator_h |
| OLD | NEW |