| 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 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef TextIteratorTextState_h | 26 #ifndef TextIteratorTextState_h |
| 27 #define TextIteratorTextState_h | 27 #define TextIteratorTextState_h |
| 28 | 28 |
| 29 #include "core/CoreExport.h" | 29 #include "core/CoreExport.h" |
| 30 #include "core/dom/Range.h" | 30 #include "core/dom/Range.h" |
| 31 #include "core/editing/iterators/ForwardsTextBuffer.h" | 31 #include "core/editing/iterators/ForwardsTextBuffer.h" |
| 32 #include "core/layout/LayoutText.h" | |
| 33 #include "wtf/text/WTFString.h" | 32 #include "wtf/text/WTFString.h" |
| 34 | 33 |
| 35 namespace blink { | 34 namespace blink { |
| 36 | 35 |
| 36 class LayoutText; |
| 37 |
| 37 class CORE_EXPORT TextIteratorTextState { | 38 class CORE_EXPORT TextIteratorTextState { |
| 38 STACK_ALLOCATED(); | 39 STACK_ALLOCATED(); |
| 39 public: | 40 public: |
| 40 explicit TextIteratorTextState(bool emitsOriginalText); | 41 explicit TextIteratorTextState(bool emitsOriginalText); |
| 41 ~TextIteratorTextState() { } | 42 ~TextIteratorTextState() { } |
| 42 | 43 |
| 43 const String& string() const { return m_text; } | 44 const String& string() const { return m_text; } |
| 44 | 45 |
| 45 int length() const { return m_textLength; } | 46 int length() const { return m_textLength; } |
| 46 UChar characterAt(unsigned index) const; | 47 UChar characterAt(unsigned index) const; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 82 |
| 82 // Used when deciding whether to emit a "positioning" (e.g. newline) before
any other content | 83 // Used when deciding whether to emit a "positioning" (e.g. newline) before
any other content |
| 83 bool m_hasEmitted; | 84 bool m_hasEmitted; |
| 84 UChar m_lastCharacter; | 85 UChar m_lastCharacter; |
| 85 bool m_emitsOriginalText; | 86 bool m_emitsOriginalText; |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 } // namespace blink | 89 } // namespace blink |
| 89 | 90 |
| 90 #endif // TextIteratorTextState_h | 91 #endif // TextIteratorTextState_h |
| OLD | NEW |