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

Unified Diff: third_party/WebKit/Source/core/css/MediaValuesDynamic.h

Issue 1738133002: Add support for media attribute on link (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review nits Created 4 years, 9 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: third_party/WebKit/Source/core/css/MediaValuesDynamic.h
diff --git a/third_party/WebKit/Source/core/css/MediaValuesDynamic.h b/third_party/WebKit/Source/core/css/MediaValuesDynamic.h
index b45df1ee8a8efc5877abfd87d272599743e4d1e2..c6d2d9eedc89e20b4c50d18f7527379e824047a2 100644
--- a/third_party/WebKit/Source/core/css/MediaValuesDynamic.h
+++ b/third_party/WebKit/Source/core/css/MediaValuesDynamic.h
@@ -36,15 +36,20 @@ public:
WebDisplayMode displayMode() const override;
Document* document() const override;
bool hasValues() const override;
+ void overrideViewportDimensions(double width, double height) override;
DECLARE_VIRTUAL_TRACE();
protected:
MediaValuesDynamic(LocalFrame*);
+ MediaValuesDynamic(LocalFrame*, bool overriddenViewportDimensions, double viewportWidth, double viewportHeight);
// This raw ptr is safe, as MediaValues would not outlive MediaQueryEvaluator, and
// MediaQueryEvaluator is reset on |Document::detach|.
RawPtrWillBeMember<LocalFrame> m_frame;
+ bool m_viewportDimensionsOverridden;
+ double m_viewportWidthOverride;
+ double m_viewportHeightOverride;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaValuesCached.cpp ('k') | third_party/WebKit/Source/core/css/MediaValuesDynamic.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698