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

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

Issue 221383003: Fixed MediaQueryTokenizer escape support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Disabled escape tests on old parser Created 6 years, 8 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 | « Source/core/css/MediaQuerySetTest.cpp ('k') | Source/core/css/parser/MediaQueryTokenizer.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 MediaQueryTokenizer_h 5 #ifndef MediaQueryTokenizer_h
6 #define MediaQueryTokenizer_h 6 #define MediaQueryTokenizer_h
7 7
8 #include "core/css/parser/MediaQueryToken.h" 8 #include "core/css/parser/MediaQueryToken.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 22 matching lines...) Expand all
33 MediaQueryToken consumeIdentLikeToken(); 33 MediaQueryToken consumeIdentLikeToken();
34 MediaQueryToken consumeNumber(); 34 MediaQueryToken consumeNumber();
35 35
36 void consumeUntilNonWhitespace(); 36 void consumeUntilNonWhitespace();
37 bool consumeUntilCommentEndFound(); 37 bool consumeUntilCommentEndFound();
38 38
39 bool consumeIfNext(UChar); 39 bool consumeIfNext(UChar);
40 String consumeName(); 40 String consumeName();
41 UChar consumeEscape(); 41 UChar consumeEscape();
42 42
43 bool nextTwoCharsAreValidEscape(); 43 bool nextTwoCharsAreValidEscape(unsigned offset);
44 bool nextCharsAreNumber(); 44 bool nextCharsAreNumber();
45 bool nextCharsAreIdentifier(); 45 bool nextCharsAreIdentifier();
46 46
47 typedef MediaQueryToken (MediaQueryTokenizer::*CodePoint)(UChar); 47 typedef MediaQueryToken (MediaQueryTokenizer::*CodePoint)(UChar);
48 48
49 static const CodePoint codePoints[]; 49 static const CodePoint codePoints[];
50 50
51 MediaQueryToken whiteSpace(UChar); 51 MediaQueryToken whiteSpace(UChar);
52 MediaQueryToken leftParenthesis(UChar); 52 MediaQueryToken leftParenthesis(UChar);
53 MediaQueryToken rightParenthesis(UChar); 53 MediaQueryToken rightParenthesis(UChar);
(...skipping 13 matching lines...) Expand all
67 MediaQueryToken endOfFile(UChar); 67 MediaQueryToken endOfFile(UChar);
68 68
69 MediaQueryInputStream& m_input; 69 MediaQueryInputStream& m_input;
70 }; 70 };
71 71
72 72
73 73
74 } // namespace WebCore 74 } // namespace WebCore
75 75
76 #endif // MediaQueryTokenizer_h 76 #endif // MediaQueryTokenizer_h
OLDNEW
« no previous file with comments | « Source/core/css/MediaQuerySetTest.cpp ('k') | Source/core/css/parser/MediaQueryTokenizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698