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

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

Issue 2105463003: Add inline capacity to CSSTokenizer::m_blockStack. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo. Created 4 years, 5 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/CSSTokenizer.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 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/html/parser/InputStreamPreprocessor.h" 10 #include "core/html/parser/InputStreamPreprocessor.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 bool consumeIfNext(UChar); 66 bool consumeIfNext(UChar);
67 StringView consumeName(); 67 StringView consumeName();
68 UChar32 consumeEscape(); 68 UChar32 consumeEscape();
69 69
70 bool nextTwoCharsAreValidEscape(); 70 bool nextTwoCharsAreValidEscape();
71 bool nextCharsAreNumber(UChar); 71 bool nextCharsAreNumber(UChar);
72 bool nextCharsAreNumber(); 72 bool nextCharsAreNumber();
73 bool nextCharsAreIdentifier(UChar); 73 bool nextCharsAreIdentifier(UChar);
74 bool nextCharsAreIdentifier(); 74 bool nextCharsAreIdentifier();
75
75 CSSParserToken blockStart(CSSParserTokenType); 76 CSSParserToken blockStart(CSSParserTokenType);
76 CSSParserToken blockStart(CSSParserTokenType blockType, CSSParserTokenType, StringView); 77 CSSParserToken blockStart(CSSParserTokenType blockType, CSSParserTokenType, StringView);
77 CSSParserToken blockEnd(CSSParserTokenType, CSSParserTokenType startType); 78 CSSParserToken blockEnd(CSSParserTokenType, CSSParserTokenType startType);
78 79
79 using CodePoint = CSSParserToken (CSSTokenizer::*)(UChar);
80
81 static const CodePoint codePoints[];
82 Vector<CSSParserTokenType> m_blockStack;
83
84 CSSParserToken whiteSpace(UChar); 80 CSSParserToken whiteSpace(UChar);
85 CSSParserToken leftParenthesis(UChar); 81 CSSParserToken leftParenthesis(UChar);
86 CSSParserToken rightParenthesis(UChar); 82 CSSParserToken rightParenthesis(UChar);
87 CSSParserToken leftBracket(UChar); 83 CSSParserToken leftBracket(UChar);
88 CSSParserToken rightBracket(UChar); 84 CSSParserToken rightBracket(UChar);
89 CSSParserToken leftBrace(UChar); 85 CSSParserToken leftBrace(UChar);
90 CSSParserToken rightBrace(UChar); 86 CSSParserToken rightBrace(UChar);
91 CSSParserToken plusOrFullStop(UChar); 87 CSSParserToken plusOrFullStop(UChar);
92 CSSParserToken comma(UChar); 88 CSSParserToken comma(UChar);
93 CSSParserToken hyphenMinus(UChar); 89 CSSParserToken hyphenMinus(UChar);
(...skipping 10 matching lines...) Expand all
104 CSSParserToken commercialAt(UChar); 100 CSSParserToken commercialAt(UChar);
105 CSSParserToken reverseSolidus(UChar); 101 CSSParserToken reverseSolidus(UChar);
106 CSSParserToken asciiDigit(UChar); 102 CSSParserToken asciiDigit(UChar);
107 CSSParserToken letterU(UChar); 103 CSSParserToken letterU(UChar);
108 CSSParserToken nameStart(UChar); 104 CSSParserToken nameStart(UChar);
109 CSSParserToken stringStart(UChar); 105 CSSParserToken stringStart(UChar);
110 CSSParserToken endOfFile(UChar); 106 CSSParserToken endOfFile(UChar);
111 107
112 StringView registerString(const String&); 108 StringView registerString(const String&);
113 109
110 using CodePoint = CSSParserToken (CSSTokenizer::*)(UChar);
111 static const CodePoint codePoints[];
112
113 Vector<CSSParserTokenType, 8> m_blockStack;
114 CSSTokenizerInputStream& m_input; 114 CSSTokenizerInputStream& m_input;
115 Scope& m_scope; 115 Scope& m_scope;
116 }; 116 };
117 117
118 118
119 119
120 } // namespace blink 120 } // namespace blink
121 121
122 #endif // CSSTokenizer_h 122 #endif // CSSTokenizer_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSTokenizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698