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/SizesAttributeParser.h" | 5 #include "core/css/parser/SizesAttributeParser.h" |
6 | 6 |
7 #include "core/MediaTypeNames.h" | 7 #include "core/MediaTypeNames.h" |
8 #include "core/css/MediaQueryEvaluator.h" | 8 #include "core/css/MediaQueryEvaluator.h" |
9 #include "core/css/parser/CSSTokenizer.h" | 9 #include "core/css/parser/CSSTokenizer.h" |
10 #include "core/css/parser/SizesCalcParser.h" | 10 #include "core/css/parser/SizesCalcParser.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 return m_length; | 94 return m_length; |
95 return effectiveSizeDefaultValue(); | 95 return effectiveSizeDefaultValue(); |
96 } | 96 } |
97 | 97 |
98 unsigned SizesAttributeParser::effectiveSizeDefaultValue() | 98 unsigned SizesAttributeParser::effectiveSizeDefaultValue() |
99 { | 99 { |
100 // Returning the equivalent of "100vw" | 100 // Returning the equivalent of "100vw" |
101 return m_mediaValues->viewportWidth(); | 101 return m_mediaValues->viewportWidth(); |
102 } | 102 } |
103 | 103 |
104 } // namespace | 104 } // namespace blink |
OLD | NEW |