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

Unified Diff: third_party/WebKit/Source/core/css/MediaValuesCached.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/MediaValuesCached.cpp
diff --git a/third_party/WebKit/Source/core/css/MediaValuesCached.cpp b/third_party/WebKit/Source/core/css/MediaValuesCached.cpp
index 3dedbd11e152c4ccac1ab5112bc34900eebc0253..9b3394b7dafdb69434d7f1ec433c36b07a5d9f65 100644
--- a/third_party/WebKit/Source/core/css/MediaValuesCached.cpp
+++ b/third_party/WebKit/Source/core/css/MediaValuesCached.cpp
@@ -100,12 +100,12 @@ bool MediaValuesCached::isSafeToSendToAnotherThread() const
#endif
}
-int MediaValuesCached::viewportWidth() const
+float MediaValuesCached::viewportWidth() const
{
return m_data.viewportWidth;
}
-int MediaValuesCached::viewportHeight() const
+float MediaValuesCached::viewportHeight() const
{
return m_data.viewportHeight;
}
@@ -185,12 +185,12 @@ bool MediaValuesCached::hasValues() const
return true;
}
-void MediaValuesCached::setViewportWidth(int width)
+void MediaValuesCached::setViewportWidth(float width)
{
m_data.viewportWidth = width;
}
-void MediaValuesCached::setViewportHeight(int height)
+void MediaValuesCached::setViewportHeight(float height)
{
m_data.viewportHeight = height;
}

Powered by Google App Engine
This is Rietveld 408576698