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

Unified Diff: Source/core/css/MediaValuesCached.cpp

Issue 644813005: Floating point MQs should not match. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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: Source/core/css/MediaValuesCached.cpp
diff --git a/Source/core/css/MediaValuesCached.cpp b/Source/core/css/MediaValuesCached.cpp
index 8f0816a52bf22e4d83a0d64e88a6324a5d014f78..0cf7d56eaa3f3f7833af9526060c3b6cb2572630 100644
--- a/Source/core/css/MediaValuesCached.cpp
+++ b/Source/core/css/MediaValuesCached.cpp
@@ -81,7 +81,7 @@ bool MediaValuesCached::computeLength(double value, CSSPrimitiveValue::UnitType
return MediaValues::computeLength(value, type, m_data.defaultFontSize, m_data.viewportWidth, m_data.viewportHeight, result);
}
-bool MediaValuesCached::computeLength(double value, CSSPrimitiveValue::UnitType type, double& result) const
+bool MediaValuesCached::computeLength(double value, CSSPrimitiveValue::UnitType type, float& result) const
{
return MediaValues::computeLength(value, type, m_data.defaultFontSize, m_data.viewportWidth, m_data.viewportHeight, result);
}

Powered by Google App Engine
This is Rietveld 408576698