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

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

Issue 1104103002: Add <meta viewport> support to the preloader (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: moved CachedDocumentParameters constructor to private Created 5 years, 8 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/MediaValues.h
diff --git a/Source/core/css/MediaValues.h b/Source/core/css/MediaValues.h
index 4574ae4ce35861f16d567f74d502cc3e3918e7a0..a660b4cabb6aafa2da61bac534888715e5820bf0 100644
--- a/Source/core/css/MediaValues.h
+++ b/Source/core/css/MediaValues.h
@@ -21,11 +21,6 @@ class LocalFrame;
class CORE_EXPORT MediaValues : public RefCounted<MediaValues> {
public:
- enum MediaValuesMode {
- CachingMode,
- DynamicMode
- };
-
virtual ~MediaValues() { }
static PassRefPtr<MediaValues> createDynamicIfFrameExists(LocalFrame*);
@@ -63,6 +58,8 @@ public:
virtual Document* document() const = 0;
virtual bool hasValues() const = 0;
+ virtual bool isCached() const { return false; }
+
protected:
int calculateViewportWidth(LocalFrame*) const;
int calculateViewportHeight(LocalFrame*) const;
« no previous file with comments | « LayoutTests/fast/dom/HTMLImageElement/image-sizes-meta-viewport.html ('k') | Source/core/css/MediaValuesCached.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698