| 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 "core/css/parser/CSSParserToken.h" | 5 #include "core/css/parser/CSSParserToken.h" |
| 6 | 6 |
| 7 #include <limits.h> |
| 7 #include "core/css/CSSMarkup.h" | 8 #include "core/css/CSSMarkup.h" |
| 8 #include "core/css/CSSPrimitiveValue.h" | 9 #include "core/css/CSSPrimitiveValue.h" |
| 9 #include "core/css/parser/CSSPropertyParser.h" | 10 #include "core/css/parser/CSSPropertyParser.h" |
| 10 #include "wtf/HashMap.h" | 11 #include "wtf/HashMap.h" |
| 11 #include "wtf/text/StringBuilder.h" | 12 #include "wtf/text/StringBuilder.h" |
| 12 #include <limits.h> | |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 CSSParserToken::CSSParserToken(CSSParserTokenType type, BlockType blockType) | 16 CSSParserToken::CSSParserToken(CSSParserTokenType type, BlockType blockType) |
| 17 : m_type(type), m_blockType(blockType) {} | 17 : m_type(type), m_blockType(blockType) {} |
| 18 | 18 |
| 19 // Just a helper used for Delimiter tokens. | 19 // Just a helper used for Delimiter tokens. |
| 20 CSSParserToken::CSSParserToken(CSSParserTokenType type, UChar c) | 20 CSSParserToken::CSSParserToken(CSSParserTokenType type, UChar c) |
| 21 : m_type(type), m_blockType(NotBlock), m_delimiter(c) { | 21 : m_type(type), m_blockType(NotBlock), m_delimiter(c) { |
| 22 ASSERT(m_type == DelimiterToken); | 22 ASSERT(m_type == DelimiterToken); |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 return builder.append('}'); | 277 return builder.append('}'); |
| 278 | 278 |
| 279 case EOFToken: | 279 case EOFToken: |
| 280 case CommentToken: | 280 case CommentToken: |
| 281 ASSERT_NOT_REACHED(); | 281 ASSERT_NOT_REACHED(); |
| 282 return; | 282 return; |
| 283 } | 283 } |
| 284 } | 284 } |
| 285 | 285 |
| 286 } // namespace blink | 286 } // namespace blink |
| OLD | NEW |