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

Unified Diff: Source/core/css/parser/SizesCalcParser.cpp

Issue 644813005: Floating point MQs should not match. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added max/min tests 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
« no previous file with comments | « Source/core/css/parser/SizesAttributeParser.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/SizesCalcParser.cpp
diff --git a/Source/core/css/parser/SizesCalcParser.cpp b/Source/core/css/parser/SizesCalcParser.cpp
index 7265554e0d10d5e55c05a9b51f9c6930bcb01b82..3c65f92dd81ded1e20c5481516c015dc6262a560 100644
--- a/Source/core/css/parser/SizesCalcParser.cpp
+++ b/Source/core/css/parser/SizesCalcParser.cpp
@@ -70,7 +70,7 @@ void SizesCalcParser::appendNumber(const MediaQueryToken& token)
bool SizesCalcParser::appendLength(const MediaQueryToken& token)
{
SizesCalcValue value;
- double result = 0;
+ float result = 0;
if (!m_mediaValues->computeLength(token.numericValue(), token.unitType(), result))
return false;
value.value = result;
rune 2014/10/10 12:46:04 Now you're taking a double (numericValue()), conve
« no previous file with comments | « Source/core/css/parser/SizesAttributeParser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698