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

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

Issue 2922553002: Move TextIteratorTextState's member initiailization to class declaration (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.h
diff --git a/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.h b/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.h
index f9f52dd05e3e96627dbc3fca5f372af50cb8356c..ca51c5bfcea31493fefa3910ade232b3b26512f1 100644
--- a/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.h
+++ b/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.h
@@ -82,31 +82,31 @@ class CORE_EXPORT TextIteratorTextState {
unsigned length_to_append) const;
private:
- int text_length_;
+ int text_length_ = 0;
String text_;
// Used for whitespace characters that aren't in the DOM, so we can point at
// them.
// If non-zero, overrides m_text.
- UChar single_character_buffer_;
+ UChar single_character_buffer_ = 0;
// The current text and its position, in the form to be returned from the
// iterator.
Member<Node> position_node_;
mutable Member<Node> position_offset_base_node_;
- mutable int position_start_offset_;
- mutable int position_end_offset_;
+ mutable int position_start_offset_ = 0;
+ mutable int position_end_offset_ = 0;
// Used when deciding whether to emit a "positioning" (e.g. newline) before
// any other content
- bool has_emitted_;
- UChar last_character_;
+ bool has_emitted_ = false;
+ UChar last_character_ = 0;
const TextIteratorBehavior behavior_;
// Stores the length of :first-letter when we are at the remaining text.
// Equals to 0 in all other cases.
- int text_start_offset_;
+ int text_start_offset_ = 0;
DISALLOW_COPY_AND_ASSIGN(TextIteratorTextState);
};
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698