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

Side by Side Diff: sky/engine/core/css/parser/MediaQueryTokenizer.cpp

Issue 1215103007: Remove remaining HTML elements (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 #include "sky/engine/core/css/parser/MediaQueryTokenizer.h" 5 #include "sky/engine/core/css/parser/MediaQueryTokenizer.h"
6 6
7 namespace blink { 7 namespace blink {
8 #include "core/MediaQueryTokenizerCodepoints.cpp" 8 #include "core/MediaQueryTokenizerCodepoints.cpp"
9 } 9 }
10 10
11 #include "sky/engine/core/css/parser/MediaQueryInputStream.h" 11 #include "sky/engine/core/css/parser/MediaQueryInputStream.h"
12 #include "sky/engine/core/html/parser/HTMLParserIdioms.h" 12 #include "sky/engine/core/html/parser/HTMLParserIdioms.h"
13 #include "sky/engine/wtf/text/StringBuilder.h"
13 #include "sky/engine/wtf/unicode/CharacterNames.h" 14 #include "sky/engine/wtf/unicode/CharacterNames.h"
14 15
15 namespace blink { 16 namespace blink {
16 17
17 // http://dev.w3.org/csswg/css-syntax/#name-start-code-point 18 // http://dev.w3.org/csswg/css-syntax/#name-start-code-point
18 static bool isNameStart(UChar c) 19 static bool isNameStart(UChar c)
19 { 20 {
20 if (isASCIIAlpha(c)) 21 if (isASCIIAlpha(c))
21 return true; 22 return true;
22 if (c == '_') 23 if (c == '_')
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 518
518 bool MediaQueryTokenizer::nextCharsAreIdentifier() 519 bool MediaQueryTokenizer::nextCharsAreIdentifier()
519 { 520 {
520 UChar first = consume(); 521 UChar first = consume();
521 bool areIdentifier = nextCharsAreIdentifier(first); 522 bool areIdentifier = nextCharsAreIdentifier(first);
522 reconsume(first); 523 reconsume(first);
523 return areIdentifier; 524 return areIdentifier;
524 } 525 }
525 526
526 } // namespace blink 527 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/css/parser/MediaQueryTokenizer.h ('k') | sky/engine/core/css/resolver/ScopedStyleResolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698