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

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

Issue 649493003: CSS Tokenizer: Consume a single whitespace after escapes if present (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@getfraction
Patch Set: update tests Created 6 years, 2 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 | 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/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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/parser/CSSTokenizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698