| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 // Used when text boxes are out of order (Hebrew/Arabic w/ embeded LTR text) | 171 // Used when text boxes are out of order (Hebrew/Arabic w/ embeded LTR text) |
| 172 Vector<InlineTextBox*> m_sortedTextBoxes; | 172 Vector<InlineTextBox*> m_sortedTextBoxes; |
| 173 size_t m_sortedTextBoxesPosition; | 173 size_t m_sortedTextBoxesPosition; |
| 174 | 174 |
| 175 const TextIteratorBehaviorFlags m_behavior; | 175 const TextIteratorBehaviorFlags m_behavior; |
| 176 | 176 |
| 177 // Used when deciding text fragment created by :first-letter should be looke
d into. | 177 // Used when deciding text fragment created by :first-letter should be looke
d into. |
| 178 bool m_handledFirstLetter; | 178 bool m_handledFirstLetter; |
| 179 // Used when stopsOnFormControls() is true to determine if the iterator shou
ld keep advancing. | 179 // Used when stopsOnFormControls() is true to determine if the iterator shou
ld keep advancing. |
| 180 bool m_shouldStop; | 180 bool m_shouldStop; |
| 181 // Used for use counter |InnerTextWithShadowTree| and |
| 182 // |SelectionToStringWithShadowTree|, we should not use other purpose. |
| 183 bool m_handleShadowRoot; |
| 181 | 184 |
| 182 // Contains state of emitted text. | 185 // Contains state of emitted text. |
| 183 TextIteratorTextState m_textState; | 186 TextIteratorTextState m_textState; |
| 184 }; | 187 }; |
| 185 | 188 |
| 186 extern template class CORE_EXTERN_TEMPLATE_EXPORT TextIteratorAlgorithm<EditingS
trategy>; | 189 extern template class CORE_EXTERN_TEMPLATE_EXPORT TextIteratorAlgorithm<EditingS
trategy>; |
| 187 extern template class CORE_EXTERN_TEMPLATE_EXPORT TextIteratorAlgorithm<EditingI
nComposedTreeStrategy>; | 190 extern template class CORE_EXTERN_TEMPLATE_EXPORT TextIteratorAlgorithm<EditingI
nComposedTreeStrategy>; |
| 188 | 191 |
| 189 using TextIterator = TextIteratorAlgorithm<EditingStrategy>; | 192 using TextIterator = TextIteratorAlgorithm<EditingStrategy>; |
| 190 using TextIteratorInComposedTree = TextIteratorAlgorithm<EditingInComposedTreeSt
rategy>; | 193 using TextIteratorInComposedTree = TextIteratorAlgorithm<EditingInComposedTreeSt
rategy>; |
| 191 | 194 |
| 192 } // namespace blink | 195 } // namespace blink |
| 193 | 196 |
| 194 #endif // TextIterator_h | 197 #endif // TextIterator_h |
| OLD | NEW |