| 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/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/css/parser/CSSParserToken.h" | 9 #include "core/css/parser/CSSParserToken.h" |
| 10 #include "core/css/parser/CSSTokenizerInputStream.h" | 10 #include "core/css/parser/CSSTokenizerInputStream.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 CSSParserToken leftBrace(UChar); | 75 CSSParserToken leftBrace(UChar); |
| 76 CSSParserToken rightBrace(UChar); | 76 CSSParserToken rightBrace(UChar); |
| 77 CSSParserToken plusOrFullStop(UChar); | 77 CSSParserToken plusOrFullStop(UChar); |
| 78 CSSParserToken comma(UChar); | 78 CSSParserToken comma(UChar); |
| 79 CSSParserToken hyphenMinus(UChar); | 79 CSSParserToken hyphenMinus(UChar); |
| 80 CSSParserToken asterisk(UChar); | 80 CSSParserToken asterisk(UChar); |
| 81 CSSParserToken lessThan(UChar); | 81 CSSParserToken lessThan(UChar); |
| 82 CSSParserToken solidus(UChar); | 82 CSSParserToken solidus(UChar); |
| 83 CSSParserToken colon(UChar); | 83 CSSParserToken colon(UChar); |
| 84 CSSParserToken semiColon(UChar); | 84 CSSParserToken semiColon(UChar); |
| 85 CSSParserToken hash(UChar); | 85 /* DO NOT SUBMIT - Merge conflict resolution marker. |
| 86 * Please spell |Hash| below (not |GetHash|). */ |
| 87 CSSParserToken Hash(UChar); |
| 86 CSSParserToken circumflexAccent(UChar); | 88 CSSParserToken circumflexAccent(UChar); |
| 87 CSSParserToken dollarSign(UChar); | 89 CSSParserToken dollarSign(UChar); |
| 88 CSSParserToken verticalLine(UChar); | 90 CSSParserToken verticalLine(UChar); |
| 89 CSSParserToken tilde(UChar); | 91 CSSParserToken tilde(UChar); |
| 90 CSSParserToken commercialAt(UChar); | 92 CSSParserToken commercialAt(UChar); |
| 91 CSSParserToken reverseSolidus(UChar); | 93 CSSParserToken reverseSolidus(UChar); |
| 92 CSSParserToken asciiDigit(UChar); | 94 CSSParserToken asciiDigit(UChar); |
| 93 CSSParserToken letterU(UChar); | 95 CSSParserToken letterU(UChar); |
| 94 CSSParserToken nameStart(UChar); | 96 CSSParserToken nameStart(UChar); |
| 95 CSSParserToken stringStart(UChar); | 97 CSSParserToken stringStart(UChar); |
| 96 CSSParserToken endOfFile(UChar); | 98 CSSParserToken endOfFile(UChar); |
| 97 | 99 |
| 98 StringView registerString(const String&); | 100 StringView registerString(const String&); |
| 99 | 101 |
| 100 using CodePoint = CSSParserToken (CSSTokenizer::*)(UChar); | 102 using CodePoint = CSSParserToken (CSSTokenizer::*)(UChar); |
| 101 static const CodePoint codePoints[]; | 103 static const CodePoint codePoints[]; |
| 102 | 104 |
| 103 CSSTokenizerInputStream m_input; | 105 CSSTokenizerInputStream m_input; |
| 104 Vector<CSSParserTokenType, 8> m_blockStack; | 106 Vector<CSSParserTokenType, 8> m_blockStack; |
| 105 | 107 |
| 106 Vector<CSSParserToken, 32> m_tokens; | 108 Vector<CSSParserToken, 32> m_tokens; |
| 107 // We only allocate strings when escapes are used. | 109 // We only allocate strings when escapes are used. |
| 108 Vector<String> m_stringPool; | 110 Vector<String> m_stringPool; |
| 109 }; | 111 }; |
| 110 | 112 |
| 111 } // namespace blink | 113 } // namespace blink |
| 112 | 114 |
| 113 #endif // CSSTokenizer_h | 115 #endif // CSSTokenizer_h |
| OLD | NEW |