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

Side by Side Diff: third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.h

Issue 2009013002: Remove unnecessary inclusions of LayoutObject-derived headers in core/editing/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 11 matching lines...) Expand all
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698