| 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 "config.h" | 5 #include "config.h" |
| 6 #include "core/css/parser/MediaQueryTokenizer.h" | 6 #include "core/css/parser/MediaQueryTokenizer.h" |
| 7 | 7 |
| 8 namespace WebCore { | 8 namespace WebCore { |
| 9 #include "MediaQueryTokenizerCodepoints.cpp" | 9 #include "MediaQueryTokenizerCodepoints.cpp" |
| 10 } | 10 } |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 127 |
| 128 MediaQueryToken MediaQueryTokenizer::plusOrFullStop(UChar cc) | 128 MediaQueryToken MediaQueryTokenizer::plusOrFullStop(UChar cc) |
| 129 { | 129 { |
| 130 if (nextCharsAreNumber()) { | 130 if (nextCharsAreNumber()) { |
| 131 reconsume(cc); | 131 reconsume(cc); |
| 132 return consumeNumericToken(); | 132 return consumeNumericToken(); |
| 133 } | 133 } |
| 134 return MediaQueryToken(DelimiterToken, cc); | 134 return MediaQueryToken(DelimiterToken, cc); |
| 135 } | 135 } |
| 136 | 136 |
| 137 MediaQueryToken MediaQueryTokenizer::asterisk(UChar cc) |
| 138 { |
| 139 return MediaQueryToken(DelimiterToken, cc); |
| 140 } |
| 141 |
| 137 MediaQueryToken MediaQueryTokenizer::comma(UChar cc) | 142 MediaQueryToken MediaQueryTokenizer::comma(UChar cc) |
| 138 { | 143 { |
| 139 return MediaQueryToken(CommaToken); | 144 return MediaQueryToken(CommaToken); |
| 140 } | 145 } |
| 141 | 146 |
| 142 MediaQueryToken MediaQueryTokenizer::hyphenMinus(UChar cc) | 147 MediaQueryToken MediaQueryTokenizer::hyphenMinus(UChar cc) |
| 143 { | 148 { |
| 144 if (nextCharsAreNumber()) { | 149 if (nextCharsAreNumber()) { |
| 145 reconsume(cc); | 150 reconsume(cc); |
| 146 return consumeNumericToken(); | 151 return consumeNumericToken(); |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 if (firstChar == '-') { | 503 if (firstChar == '-') { |
| 499 if (isNameStart(m_input.peek(1))) | 504 if (isNameStart(m_input.peek(1))) |
| 500 return true; | 505 return true; |
| 501 return nextTwoCharsAreValidEscape(1); | 506 return nextTwoCharsAreValidEscape(1); |
| 502 } | 507 } |
| 503 | 508 |
| 504 return false; | 509 return false; |
| 505 } | 510 } |
| 506 | 511 |
| 507 } // namespace WebCore | 512 } // namespace WebCore |
| OLD | NEW |