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

Side by Side Diff: Source/core/editing/iterators/TextIterator.h

Issue 1213213004: Introduce use counters for shadow DOM handling in plainText() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-07-03T14:40:27 Rebase Created 5 years, 5 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 /* 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
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
OLDNEW
« no previous file with comments | « Source/core/editing/iterators/CharacterIterator.cpp ('k') | Source/core/editing/iterators/TextIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698