| 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/MediaValuesCached.h" | 5 #include "core/css/MediaValuesCached.h" |
| 6 | 6 |
| 7 #include "core/css/CSSPrimitiveValue.h" | 7 #include "core/css/CSSPrimitiveValue.h" |
| 8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
| 9 #include "core/frame/LocalFrame.h" | 9 #include "core/frame/LocalFrame.h" |
| 10 #include "core/layout/LayoutObject.h" | 10 #include "core/layout/LayoutObject.h" |
| 11 #include "core/layout/api/LayoutViewItem.h" | 11 #include "core/layout/api/LayoutViewItem.h" |
| 12 #include "platform/graphics/ColorSpace.h" | 12 #include "platform/graphics/ColorSpaceGamut.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 MediaValuesCached::MediaValuesCachedData::MediaValuesCachedData() | 16 MediaValuesCached::MediaValuesCachedData::MediaValuesCachedData() |
| 17 : viewport_width(0), | 17 : viewport_width(0), |
| 18 viewport_height(0), | 18 viewport_height(0), |
| 19 device_width(0), | 19 device_width(0), |
| 20 device_height(0), | 20 device_height(0), |
| 21 device_pixel_ratio(1.0), | 21 device_pixel_ratio(1.0), |
| 22 color_bits_per_component(24), | 22 color_bits_per_component(24), |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 181 |
| 182 DisplayShape MediaValuesCached::GetDisplayShape() const { | 182 DisplayShape MediaValuesCached::GetDisplayShape() const { |
| 183 return data_.display_shape; | 183 return data_.display_shape; |
| 184 } | 184 } |
| 185 | 185 |
| 186 ColorSpaceGamut MediaValuesCached::ColorGamut() const { | 186 ColorSpaceGamut MediaValuesCached::ColorGamut() const { |
| 187 return data_.color_gamut; | 187 return data_.color_gamut; |
| 188 } | 188 } |
| 189 | 189 |
| 190 } // namespace blink | 190 } // namespace blink |
| OLD | NEW |