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" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 Document* MediaValuesCached::document() const | 154 Document* MediaValuesCached::document() const |
155 { | 155 { |
156 return nullptr; | 156 return nullptr; |
157 } | 157 } |
158 | 158 |
159 bool MediaValuesCached::hasValues() const | 159 bool MediaValuesCached::hasValues() const |
160 { | 160 { |
161 return true; | 161 return true; |
162 } | 162 } |
163 | 163 |
164 void MediaValuesCached::setViewportWidth(double width) | 164 void MediaValuesCached::overrideViewportDimensions(double width, double height) |
165 { | 165 { |
166 m_data.viewportWidth = width; | 166 m_data.viewportWidth = width; |
167 } | |
168 | |
169 void MediaValuesCached::setViewportHeight(double height) | |
170 { | |
171 m_data.viewportHeight = height; | 167 m_data.viewportHeight = height; |
172 } | 168 } |
173 | 169 |
174 } // namespace blink | 170 } // namespace blink |
OLD | NEW |