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

Unified Diff: Source/core/css/MediaValuesCached.h

Issue 335313003: MediaQueryEvaluator getting mediaType from MediaValues (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 6 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
Index: Source/core/css/MediaValuesCached.h
diff --git a/Source/core/css/MediaValuesCached.h b/Source/core/css/MediaValuesCached.h
index c3ff031c884202c6f6cbae543834d0c61f06b2b8..f0accf3946b331aaee1b658f131a1987b99216ba 100644
--- a/Source/core/css/MediaValuesCached.h
+++ b/Source/core/css/MediaValuesCached.h
@@ -23,10 +23,8 @@ public:
PointerDeviceType pointer;
int defaultFontSize;
bool threeDEnabled;
- bool scanMediaType;
- bool screenMediaType;
- bool printMediaType;
bool strictMode;
+ String mediaType;
MediaValuesCachedData()
: viewportWidth(0)
@@ -39,9 +37,6 @@ public:
, pointer(UnknownPointer)
, defaultFontSize(16)
, threeDEnabled(false)
- , scanMediaType(false)
- , screenMediaType(true)
- , printMediaType(false)
, strictMode(true)
{
}
@@ -65,12 +60,10 @@ public:
virtual int monochromeBitsPerComponent() const OVERRIDE;
virtual PointerDeviceType pointer() const OVERRIDE;
virtual bool threeDEnabled() const OVERRIDE;
- virtual bool scanMediaType() const OVERRIDE;
- virtual bool screenMediaType() const OVERRIDE;
- virtual bool printMediaType() const OVERRIDE;
virtual bool strictMode() const OVERRIDE;
virtual Document* document() const OVERRIDE;
virtual bool hasValues() const OVERRIDE;
+ virtual const String mediaType() const OVERRIDE;
protected:
MediaValuesCached();

Powered by Google App Engine
This is Rietveld 408576698