OLD | NEW |
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 CSSTokenizer_h | 5 #ifndef CSSTokenizer_h |
6 #define CSSTokenizer_h | 6 #define CSSTokenizer_h |
7 | 7 |
8 #include "core/css/parser/CSSParserToken.h" | 8 #include "core/css/parser/CSSParserToken.h" |
9 #include "core/html/parser/InputStreamPreprocessor.h" | 9 #include "core/html/parser/InputStreamPreprocessor.h" |
10 #include "wtf/text/WTFString.h" | 10 #include "wtf/text/WTFString.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 UChar consume(); | 28 UChar consume(); |
29 void consume(unsigned); | 29 void consume(unsigned); |
30 void reconsume(UChar); | 30 void reconsume(UChar); |
31 | 31 |
32 CSSParserToken consumeNumericToken(); | 32 CSSParserToken consumeNumericToken(); |
33 CSSParserToken consumeIdentLikeToken(); | 33 CSSParserToken consumeIdentLikeToken(); |
34 CSSParserToken consumeNumber(); | 34 CSSParserToken consumeNumber(); |
35 CSSParserToken consumeStringTokenUntil(UChar); | 35 CSSParserToken consumeStringTokenUntil(UChar); |
36 | 36 |
37 void consumeUntilNonWhitespace(); | 37 void consumeUntilNonWhitespace(); |
| 38 void consumeSingleWhitespaceIfNext(); |
38 bool consumeUntilCommentEndFound(); | 39 bool consumeUntilCommentEndFound(); |
39 | 40 |
40 bool consumeIfNext(UChar); | 41 bool consumeIfNext(UChar); |
41 String consumeName(); | 42 String consumeName(); |
42 UChar consumeEscape(); | 43 UChar consumeEscape(); |
43 | 44 |
44 bool nextTwoCharsAreValidEscape(); | 45 bool nextTwoCharsAreValidEscape(); |
45 bool nextCharsAreNumber(UChar); | 46 bool nextCharsAreNumber(UChar); |
46 bool nextCharsAreNumber(); | 47 bool nextCharsAreNumber(); |
47 bool nextCharsAreIdentifier(UChar); | 48 bool nextCharsAreIdentifier(UChar); |
(...skipping 28 matching lines...) Expand all Loading... |
76 CSSParserToken endOfFile(UChar); | 77 CSSParserToken endOfFile(UChar); |
77 | 78 |
78 CSSTokenizerInputStream& m_input; | 79 CSSTokenizerInputStream& m_input; |
79 }; | 80 }; |
80 | 81 |
81 | 82 |
82 | 83 |
83 } // namespace blink | 84 } // namespace blink |
84 | 85 |
85 #endif // CSSTokenizer_h | 86 #endif // CSSTokenizer_h |
OLD | NEW |