| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |