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

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

Issue 1496683002: Avoid rounding down viewport dimensions in Media Queries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix layout test 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.cpp
diff --git a/third_party/WebKit/Source/core/css/MediaValuesDynamic.cpp b/third_party/WebKit/Source/core/css/MediaValuesDynamic.cpp
index a222f9d509ae9013bb620f9fcee9de96a7400856..b445219f191bfcba18ac60861798c411e953793a 100644
--- a/third_party/WebKit/Source/core/css/MediaValuesDynamic.cpp
+++ b/third_party/WebKit/Source/core/css/MediaValuesDynamic.cpp
@@ -62,12 +62,12 @@ bool MediaValuesDynamic::isSafeToSendToAnotherThread() const
return false;
}
-int MediaValuesDynamic::viewportWidth() const
+float MediaValuesDynamic::viewportWidth() const
{
return calculateViewportWidth(m_frame);
}
-int MediaValuesDynamic::viewportHeight() const
+float MediaValuesDynamic::viewportHeight() const
{
return calculateViewportHeight(m_frame);
}

Powered by Google App Engine
This is Rietveld 408576698