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

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

Issue 853483003: Add support for 'display-mode' MQ defined in Manifest spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 11 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 | Annotate | Revision Log
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 "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"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 bool MediaValuesDynamic::threeDEnabled() const 120 bool MediaValuesDynamic::threeDEnabled() const
121 { 121 {
122 return calculateThreeDEnabled(m_frame); 122 return calculateThreeDEnabled(m_frame);
123 } 123 }
124 124
125 const String MediaValuesDynamic::mediaType() const 125 const String MediaValuesDynamic::mediaType() const
126 { 126 {
127 return calculateMediaType(m_frame); 127 return calculateMediaType(m_frame);
128 } 128 }
129 129
130 DisplayMode MediaValuesDynamic::displayMode() const
131 {
132 return calculateDisplayMode(m_frame);
133 }
134
130 bool MediaValuesDynamic::strictMode() const 135 bool MediaValuesDynamic::strictMode() const
131 { 136 {
132 return calculateStrictMode(m_frame); 137 return calculateStrictMode(m_frame);
133 } 138 }
134 139
135 Document* MediaValuesDynamic::document() const 140 Document* MediaValuesDynamic::document() const
136 { 141 {
137 return m_frame->document(); 142 return m_frame->document();
138 } 143 }
139 144
140 bool MediaValuesDynamic::hasValues() const 145 bool MediaValuesDynamic::hasValues() const
141 { 146 {
142 return m_frame; 147 return m_frame;
143 } 148 }
144 149
145 } // namespace 150 } // namespace
OLDNEW
« no previous file with comments | « Source/core/css/MediaValuesDynamic.h ('k') | Source/core/css/parser/SizesAttributeParserTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698