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

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

Issue 2099413002: Don't use consume() in CSSTokenizer when ignoring the return value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 friend class CSSTokenizer; 43 friend class CSSTokenizer;
44 }; 44 };
45 45
46 private: 46 private:
47 CSSTokenizer(CSSTokenizerInputStream&, Scope&); 47 CSSTokenizer(CSSTokenizerInputStream&, Scope&);
48 48
49 CSSParserToken nextToken(); 49 CSSParserToken nextToken();
50 50
51 UChar consume(); 51 UChar consume();
52 void consume(unsigned);
53 void reconsume(UChar); 52 void reconsume(UChar);
54 53
55 CSSParserToken consumeNumericToken(); 54 CSSParserToken consumeNumericToken();
56 CSSParserToken consumeIdentLikeToken(); 55 CSSParserToken consumeIdentLikeToken();
57 CSSParserToken consumeNumber(); 56 CSSParserToken consumeNumber();
58 CSSParserToken consumeStringTokenUntil(UChar); 57 CSSParserToken consumeStringTokenUntil(UChar);
59 CSSParserToken consumeUnicodeRange(); 58 CSSParserToken consumeUnicodeRange();
60 CSSParserToken consumeUrlToken(); 59 CSSParserToken consumeUrlToken();
61 60
62 void consumeBadUrlRemnants(); 61 void consumeBadUrlRemnants();
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 112
114 CSSTokenizerInputStream& m_input; 113 CSSTokenizerInputStream& m_input;
115 Scope& m_scope; 114 Scope& m_scope;
116 }; 115 };
117 116
118 117
119 118
120 } // namespace blink 119 } // namespace blink
121 120
122 #endif // CSSTokenizer_h 121 #endif // CSSTokenizer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698