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

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

Issue 1496683002: Avoid rounding down viewport dimensions in Media Queries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved to double Created 5 years 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 6a1731c9d2f8adf1ca02ad3ebd637ad193d236bc..e6698d27269a47a5a8fd38a8635755fd084c7b21 100644
--- a/third_party/WebKit/Source/core/css/MediaValuesDynamic.h
+++ b/third_party/WebKit/Source/core/css/MediaValuesDynamic.h
@@ -20,8 +20,8 @@ public:
bool computeLength(double value, CSSPrimitiveValue::UnitType, int& result) const override;
bool computeLength(double value, CSSPrimitiveValue::UnitType, double& result) const override;
- int viewportWidth() const override;
- int viewportHeight() const override;
+ double viewportWidth() const override;
+ double viewportHeight() const override;
int deviceWidth() const override;
int deviceHeight() const override;
float devicePixelRatio() const override;
« 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