Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: third_party/WebKit/Source/core/css/MediaValuesDynamic.cpp

Issue 2652313004: Implement color-gamut media query (Closed)
Patch Set: fix windows build Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/MediaValuesDynamic.h" 5 #include "core/css/MediaValuesDynamic.h"
6 6
7 #include "core/css/CSSHelper.h" 7 #include "core/css/CSSHelper.h"
8 #include "core/css/CSSPrimitiveValue.h" 8 #include "core/css/CSSPrimitiveValue.h"
9 #include "core/css/CSSToLengthConversionData.h" 9 #include "core/css/CSSToLengthConversionData.h"
10 #include "core/css/MediaValuesCached.h" 10 #include "core/css/MediaValuesCached.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 } 129 }
130 130
131 bool MediaValuesDynamic::strictMode() const { 131 bool MediaValuesDynamic::strictMode() const {
132 return calculateStrictMode(m_frame); 132 return calculateStrictMode(m_frame);
133 } 133 }
134 134
135 DisplayShape MediaValuesDynamic::displayShape() const { 135 DisplayShape MediaValuesDynamic::displayShape() const {
136 return calculateDisplayShape(m_frame); 136 return calculateDisplayShape(m_frame);
137 } 137 }
138 138
139 ColorSpaceGamut MediaValuesDynamic::colorGamut() const {
140 return calculateColorGamut(m_frame);
141 }
142
139 Document* MediaValuesDynamic::document() const { 143 Document* MediaValuesDynamic::document() const {
140 return m_frame->document(); 144 return m_frame->document();
141 } 145 }
142 146
143 bool MediaValuesDynamic::hasValues() const { 147 bool MediaValuesDynamic::hasValues() const {
144 return m_frame; 148 return m_frame;
145 } 149 }
146 150
147 DEFINE_TRACE(MediaValuesDynamic) { 151 DEFINE_TRACE(MediaValuesDynamic) {
148 visitor->trace(m_frame); 152 visitor->trace(m_frame);
149 MediaValues::trace(visitor); 153 MediaValues::trace(visitor);
150 } 154 }
151 155
152 void MediaValuesDynamic::overrideViewportDimensions(double width, 156 void MediaValuesDynamic::overrideViewportDimensions(double width,
153 double height) { 157 double height) {
154 m_viewportDimensionsOverridden = true; 158 m_viewportDimensionsOverridden = true;
155 m_viewportWidthOverride = width; 159 m_viewportWidthOverride = width;
156 m_viewportHeightOverride = height; 160 m_viewportHeightOverride = height;
157 } 161 }
158 162
159 } // namespace blink 163 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698