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

Side by Side Diff: third_party/WebKit/Source/core/css/parser/CSSParserToken.h

Issue 2812743003: Rename cleanup in comments in css/ directory. (Closed)
Patch Set: Created 3 years, 8 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CSSParserToken_h 5 #ifndef CSSParserToken_h
6 #define CSSParserToken_h 6 #define CSSParserToken_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/css/CSSPrimitiveValue.h" 9 #include "core/css/CSSPrimitiveValue.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 value_data_char_raw_ = string.Bytes(); 148 value_data_char_raw_ = string.Bytes();
149 } 149 }
150 unsigned type_ : 6; // CSSParserTokenType 150 unsigned type_ : 6; // CSSParserTokenType
151 unsigned block_type_ : 2; // BlockType 151 unsigned block_type_ : 2; // BlockType
152 unsigned numeric_value_type_ : 1; // NumericValueType 152 unsigned numeric_value_type_ : 1; // NumericValueType
153 unsigned numeric_sign_ : 2; // NumericSign 153 unsigned numeric_sign_ : 2; // NumericSign
154 unsigned unit_ : 7; // CSSPrimitiveValue::UnitType 154 unsigned unit_ : 7; // CSSPrimitiveValue::UnitType
155 155
156 bool ValueDataCharRawEqual(const CSSParserToken& other) const; 156 bool ValueDataCharRawEqual(const CSSParserToken& other) const;
157 157
158 // m_value... is an unpacked StringView so that we can pack it 158 // value_... is an unpacked StringView so that we can pack it
159 // tightly with the rest of this object for a smaller object size. 159 // tightly with the rest of this object for a smaller object size.
160 bool value_is8_bit_ : 1; 160 bool value_is8_bit_ : 1;
161 unsigned value_length_; 161 unsigned value_length_;
162 const void* value_data_char_raw_; // Either LChar* or UChar*. 162 const void* value_data_char_raw_; // Either LChar* or UChar*.
163 163
164 union { 164 union {
165 UChar delimiter_; 165 UChar delimiter_;
166 HashTokenType hash_token_type_; 166 HashTokenType hash_token_type_;
167 double numeric_value_; 167 double numeric_value_;
168 mutable int id_; 168 mutable int id_;
169 169
170 struct { 170 struct {
171 UChar32 start; 171 UChar32 start;
172 UChar32 end; 172 UChar32 end;
173 } unicode_range_; 173 } unicode_range_;
174 }; 174 };
175 }; 175 };
176 176
177 } // namespace blink 177 } // namespace blink
178 178
179 #endif // CSSSParserToken_h 179 #endif // CSSSParserToken_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698