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

Unified Diff: Source/core/css/parser/SizesAttributeParser.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/parser/SizesAttributeParser.cpp
diff --git a/Source/core/css/parser/SizesAttributeParser.cpp b/Source/core/css/parser/SizesAttributeParser.cpp
index 9f6bcaa2c8e29a33188cb8e167b6bbc53d8f5cc5..7136a67a1952a409ddff0a00ecb66be9e6247667 100644
--- a/Source/core/css/parser/SizesAttributeParser.cpp
+++ b/Source/core/css/parser/SizesAttributeParser.cpp
@@ -35,7 +35,7 @@ bool SizesAttributeParser::calculateLengthInPixels(MediaQueryTokenIterator start
return false;
MediaQueryTokenType type = startToken->type();
if (type == DimensionToken) {
- double length;
+ float length;
if (!CSSPrimitiveValue::isLength(startToken->unitType()))
return false;
m_viewportDependant = CSSPrimitiveValue::isViewportPercentageLength(startToken->unitType());

Powered by Google App Engine
This is Rietveld 408576698