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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/parser/CSSParserToken.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserToken.h b/third_party/WebKit/Source/core/css/parser/CSSParserToken.h
index 7b5483dcb0b2650e959982332c5839540f0d1669..059d8d13857acd82da9f8b79ca8b07e84f71e363 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserToken.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserToken.h
@@ -74,8 +74,15 @@ class CORE_EXPORT CSSParserToken {
kBlockEnd,
};
- CSSParserToken(CSSParserTokenType, BlockType = kNotBlock);
- CSSParserToken(CSSParserTokenType, StringView, BlockType = kNotBlock);
+ CSSParserToken(CSSParserTokenType type, BlockType block_type = kNotBlock)
+ : type_(type), block_type_(block_type) {}
+ CSSParserToken(CSSParserTokenType type,
+ StringView value,
+ BlockType block_type = kNotBlock)
+ : type_(type), block_type_(block_type) {
+ InitValueFromStringView(value);
+ id_ = -1;
+ }
CSSParserToken(CSSParserTokenType, UChar); // for DelimiterToken
CSSParserToken(CSSParserTokenType,
« 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