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

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

Issue 2397033002: Reflow comments in //third_party/WebKit/Source/core/editing/iterators (Closed)
Patch Set: Created 4 years, 2 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 } 74 }
75 75
76 void appendTextTo(ForwardsTextBuffer* output, 76 void appendTextTo(ForwardsTextBuffer* output,
77 unsigned position, 77 unsigned position,
78 unsigned lengthToAppend) const; 78 unsigned lengthToAppend) const;
79 79
80 private: 80 private:
81 int m_textLength; 81 int m_textLength;
82 String m_text; 82 String m_text;
83 83
84 // Used for whitespace characters that aren't in the DOM, so we can point at t hem. 84 // Used for whitespace characters that aren't in the DOM, so we can point at
85 // them.
85 // If non-zero, overrides m_text. 86 // If non-zero, overrides m_text.
86 UChar m_singleCharacterBuffer; 87 UChar m_singleCharacterBuffer;
87 88
88 // The current text and its position, in the form to be returned from the iter ator. 89 // The current text and its position, in the form to be returned from the
90 // iterator.
89 Member<Node> m_positionNode; 91 Member<Node> m_positionNode;
90 mutable Member<Node> m_positionOffsetBaseNode; 92 mutable Member<Node> m_positionOffsetBaseNode;
91 mutable int m_positionStartOffset; 93 mutable int m_positionStartOffset;
92 mutable int m_positionEndOffset; 94 mutable int m_positionEndOffset;
93 95
94 // Used when deciding whether to emit a "positioning" (e.g. newline) before an y other content 96 // Used when deciding whether to emit a "positioning" (e.g. newline) before
97 // any other content
95 bool m_hasEmitted; 98 bool m_hasEmitted;
96 UChar m_lastCharacter; 99 UChar m_lastCharacter;
97 bool m_emitsOriginalText; 100 bool m_emitsOriginalText;
98 }; 101 };
99 102
100 } // namespace blink 103 } // namespace blink
101 104
102 #endif // TextIteratorTextState_h 105 #endif // TextIteratorTextState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698