| 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/config.h" | |
| 6 #include "sky/engine/core/css/parser/MediaQueryToken.h" | 5 #include "sky/engine/core/css/parser/MediaQueryToken.h" |
| 7 | 6 |
| 8 #include <limits.h> | 7 #include <limits.h> |
| 9 #include "sky/engine/wtf/HashMap.h" | 8 #include "sky/engine/wtf/HashMap.h" |
| 10 #include "sky/engine/wtf/text/StringHash.h" | 9 #include "sky/engine/wtf/text/StringHash.h" |
| 11 | 10 |
| 12 namespace blink { | 11 namespace blink { |
| 13 | 12 |
| 14 | 13 |
| 15 MediaQueryToken::MediaQueryToken(MediaQueryTokenType type, BlockType blockType) | 14 MediaQueryToken::MediaQueryToken(MediaQueryTokenType type, BlockType blockType) |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 return m_numericValueType; | 119 return m_numericValueType; |
| 121 } | 120 } |
| 122 | 121 |
| 123 double MediaQueryToken::numericValue() const | 122 double MediaQueryToken::numericValue() const |
| 124 { | 123 { |
| 125 ASSERT(m_type == NumberToken || m_type == PercentageToken || m_type == Dimen
sionToken); | 124 ASSERT(m_type == NumberToken || m_type == PercentageToken || m_type == Dimen
sionToken); |
| 126 return m_numericValue; | 125 return m_numericValue; |
| 127 } | 126 } |
| 128 | 127 |
| 129 } // namespace blink | 128 } // namespace blink |
| OLD | NEW |