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

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: 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
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaValuesDynamic.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..eaf80b50f685e12283b2b86d28e510c7e8813ff0 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
+double MediaValuesDynamic::viewportWidth() const
{
return calculateViewportWidth(m_frame);
}
-int MediaValuesDynamic::viewportHeight() const
+double MediaValuesDynamic::viewportHeight() const
{
return calculateViewportHeight(m_frame);
}
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaValuesDynamic.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698