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

Unified Diff: Source/core/css/parser/MediaQueryToken.h

Issue 252743004: A thread safe CSS calc parser for sizes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Revert last patch, will include it in a separate commit Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/css/parser/MediaQueryToken.h
diff --git a/Source/core/css/parser/MediaQueryToken.h b/Source/core/css/parser/MediaQueryToken.h
index f70615e780f82f1c67d553f26449c8c8489dcc25..c67bcdc9726a2003ab370fc436cf57784c74e800 100644
--- a/Source/core/css/parser/MediaQueryToken.h
+++ b/Source/core/css/parser/MediaQueryToken.h
@@ -12,25 +12,25 @@ namespace WebCore {
enum MediaQueryTokenType {
IdentToken = 0,
- FunctionToken = 1,
- DelimiterToken = 2,
- NumberToken = 3,
- PercentageToken = 4,
- DimensionToken = 5,
- WhitespaceToken = 6,
- ColonToken = 7,
- SemicolonToken = 8,
- CommaToken = 9,
- LeftParenthesisToken = 10,
- RightParenthesisToken = 11,
- LeftBracketToken = 12,
- RightBracketToken = 13,
- LeftBraceToken = 14,
- RightBraceToken = 15,
- StringToken = 15,
- BadStringToken = 16,
- EOFToken = 17,
- CommentToken = 18,
+ FunctionToken, // 1
eseidel 2014/04/29 17:30:37 I would just remove these comments. They're going
+ DelimiterToken, // 2
+ NumberToken, // 3
+ PercentageToken, // 4
+ DimensionToken, // 5
+ WhitespaceToken, // 6
+ ColonToken, // 7
+ SemicolonToken, // 8
+ CommaToken, // 9
+ LeftParenthesisToken, // 10
+ RightParenthesisToken, // 11
+ LeftBracketToken, // 12
+ RightBracketToken, // 13
+ LeftBraceToken, // 14
+ RightBraceToken, // 15
+ StringToken, // 16
+ BadStringToken, // 17
+ EOFToken, // 18
+ CommentToken, // 19
};
enum NumericValueType {
@@ -81,6 +81,8 @@ private:
BlockType m_blockType;
};
+typedef Vector<MediaQueryToken>::iterator MediaQueryTokenIterator;
+
} // namespace
#endif // MediaQueryToken_h

Powered by Google App Engine
This is Rietveld 408576698