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

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

Issue 2099683003: Optimize whitespace skipping in the CSSParser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase. 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void reconsume(UChar); 53 void reconsume(UChar);
54 54
55 CSSParserToken consumeNumericToken(); 55 CSSParserToken consumeNumericToken();
56 CSSParserToken consumeIdentLikeToken(); 56 CSSParserToken consumeIdentLikeToken();
57 CSSParserToken consumeNumber(); 57 CSSParserToken consumeNumber();
58 CSSParserToken consumeStringTokenUntil(UChar); 58 CSSParserToken consumeStringTokenUntil(UChar);
59 CSSParserToken consumeUnicodeRange(); 59 CSSParserToken consumeUnicodeRange();
60 CSSParserToken consumeUrlToken(); 60 CSSParserToken consumeUrlToken();
61 61
62 void consumeBadUrlRemnants(); 62 void consumeBadUrlRemnants();
63 void consumeUntilNonWhitespace();
64 void consumeSingleWhitespaceIfNext(); 63 void consumeSingleWhitespaceIfNext();
65 void consumeUntilCommentEndFound(); 64 void consumeUntilCommentEndFound();
66 65
67 bool consumeIfNext(UChar); 66 bool consumeIfNext(UChar);
68 StringView consumeName(); 67 StringView consumeName();
69 UChar32 consumeEscape(); 68 UChar32 consumeEscape();
70 69
71 bool nextTwoCharsAreValidEscape(); 70 bool nextTwoCharsAreValidEscape();
72 bool nextCharsAreNumber(UChar); 71 bool nextCharsAreNumber(UChar);
73 bool nextCharsAreNumber(); 72 bool nextCharsAreNumber();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 113
115 CSSTokenizerInputStream& m_input; 114 CSSTokenizerInputStream& m_input;
116 Scope& m_scope; 115 Scope& m_scope;
117 }; 116 };
118 117
119 118
120 119
121 } // namespace blink 120 } // namespace blink
122 121
123 #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