| 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 "config.h" | 5 #include "config.h" |
| 6 #include "core/css/MediaValuesDynamic.h" | 6 #include "core/css/MediaValuesDynamic.h" |
| 7 | 7 |
| 8 #include "core/css/CSSHelper.h" | 8 #include "core/css/CSSHelper.h" |
| 9 #include "core/css/CSSPrimitiveValue.h" | 9 #include "core/css/CSSPrimitiveValue.h" |
| 10 #include "core/css/CSSToLengthConversionData.h" | 10 #include "core/css/CSSToLengthConversionData.h" |
| 11 #include "core/dom/Document.h" | |
| 12 #include "core/frame/LocalFrame.h" | 11 #include "core/frame/LocalFrame.h" |
| 13 | 12 |
| 14 namespace WebCore { | 13 namespace WebCore { |
| 15 | 14 |
| 16 PassRefPtr<MediaValues> MediaValuesDynamic::create(LocalFrame* frame) | 15 PassRefPtr<MediaValues> MediaValuesDynamic::create(LocalFrame* frame) |
| 17 { | 16 { |
| 18 return adoptRef(new MediaValuesDynamic(frame)); | 17 return adoptRef(new MediaValuesDynamic(frame)); |
| 19 } | 18 } |
| 20 | 19 |
| 21 MediaValuesDynamic::MediaValuesDynamic(LocalFrame* frame) | 20 MediaValuesDynamic::MediaValuesDynamic(LocalFrame* frame) |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 { | 122 { |
| 124 return m_frame->document(); | 123 return m_frame->document(); |
| 125 } | 124 } |
| 126 | 125 |
| 127 bool MediaValuesDynamic::hasValues() const | 126 bool MediaValuesDynamic::hasValues() const |
| 128 { | 127 { |
| 129 return m_frame; | 128 return m_frame; |
| 130 } | 129 } |
| 131 | 130 |
| 132 } // namespace | 131 } // namespace |
| OLD | NEW |