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

Unified Diff: Source/core/css/MediaValuesCached.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/MediaValuesCached.h ('k') | Source/core/css/MediaValuesDynamic.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaValuesCached.cpp
diff --git a/Source/core/css/MediaValuesCached.cpp b/Source/core/css/MediaValuesCached.cpp
index 0e0b65797bbe3259f1a4c41a0413ccff28e71576..ee1437fbeac86ccf566ded251208d84f175c2439 100644
--- a/Source/core/css/MediaValuesCached.cpp
+++ b/Source/core/css/MediaValuesCached.cpp
@@ -61,6 +61,7 @@ MediaValuesCached::MediaValuesCached(LocalFrame* frame)
m_data.defaultFontSize = calculateDefaultFontSize(frame);
m_data.threeDEnabled = calculateThreeDEnabled(frame);
m_data.strictMode = calculateStrictMode(frame);
+ m_data.displayMode = calculateDisplayMode(frame);
const String mediaType = calculateMediaType(frame);
if (!mediaType.isEmpty())
m_data.mediaType = mediaType.isolatedCopy();
@@ -155,11 +156,17 @@ bool MediaValuesCached::strictMode() const
{
return m_data.strictMode;
}
+
const String MediaValuesCached::mediaType() const
{
return m_data.mediaType;
}
+DisplayMode MediaValuesCached::displayMode() const
+{
+ return m_data.displayMode;
+}
+
Document* MediaValuesCached::document() const
{
return 0;
« no previous file with comments | « Source/core/css/MediaValuesCached.h ('k') | Source/core/css/MediaValuesDynamic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698