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

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

Issue 2945173003: Inline CSSParserToken::CSSParserToken (Closed)
Patch Set: fix compile error Created 3 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSParserToken.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "platform/wtf/Allocator.h" 10 #include "platform/wtf/Allocator.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 class CORE_EXPORT CSSParserToken { 67 class CORE_EXPORT CSSParserToken {
68 USING_FAST_MALLOC(CSSParserToken); 68 USING_FAST_MALLOC(CSSParserToken);
69 69
70 public: 70 public:
71 enum BlockType { 71 enum BlockType {
72 kNotBlock, 72 kNotBlock,
73 kBlockStart, 73 kBlockStart,
74 kBlockEnd, 74 kBlockEnd,
75 }; 75 };
76 76
77 CSSParserToken(CSSParserTokenType, BlockType = kNotBlock); 77 CSSParserToken(CSSParserTokenType type, BlockType block_type = kNotBlock)
78 CSSParserToken(CSSParserTokenType, StringView, BlockType = kNotBlock); 78 : type_(type), block_type_(block_type) {}
79 CSSParserToken(CSSParserTokenType type,
80 StringView value,
81 BlockType block_type = kNotBlock)
82 : type_(type), block_type_(block_type) {
83 InitValueFromStringView(value);
84 id_ = -1;
85 }
79 86
80 CSSParserToken(CSSParserTokenType, UChar); // for DelimiterToken 87 CSSParserToken(CSSParserTokenType, UChar); // for DelimiterToken
81 CSSParserToken(CSSParserTokenType, 88 CSSParserToken(CSSParserTokenType,
82 double, 89 double,
83 NumericValueType, 90 NumericValueType,
84 NumericSign); // for NumberToken 91 NumericSign); // for NumberToken
85 CSSParserToken(CSSParserTokenType, 92 CSSParserToken(CSSParserTokenType,
86 UChar32, 93 UChar32,
87 UChar32); // for UnicodeRangeToken 94 UChar32); // for UnicodeRangeToken
88 95
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 struct { 177 struct {
171 UChar32 start; 178 UChar32 start;
172 UChar32 end; 179 UChar32 end;
173 } unicode_range_; 180 } unicode_range_;
174 }; 181 };
175 }; 182 };
176 183
177 } // namespace blink 184 } // namespace blink
178 185
179 #endif // CSSSParserToken_h 186 #endif // CSSSParserToken_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSParserToken.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698