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

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

Issue 14408004: Fix incorrect evaluation of resolution media queries (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 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/MediaQueryEvaluator.cpp ('k') | Source/core/css/MediaQueryMatcher.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaQueryExp.cpp
diff --git a/Source/core/css/MediaQueryExp.cpp b/Source/core/css/MediaQueryExp.cpp
index 711ee9d7a79cb645ed2dc35bbd36da72967f99c6..a07f33a37aa668a8b930b458da84b1cc6a8005f4 100644
--- a/Source/core/css/MediaQueryExp.cpp
+++ b/Source/core/css/MediaQueryExp.cpp
@@ -99,9 +99,9 @@ static inline bool featureWithPositiveNumber(const AtomicString& mediaFeature, c
|| mediaFeature == MediaFeatureNames::transform_3dMediaFeature
|| mediaFeature == MediaFeatureNames::transitionMediaFeature
|| mediaFeature == MediaFeatureNames::animationMediaFeature
- || mediaFeature == MediaFeatureNames::device_pixel_ratioMediaFeature
- || mediaFeature == MediaFeatureNames::max_device_pixel_ratioMediaFeature
- || mediaFeature == MediaFeatureNames::min_device_pixel_ratioMediaFeature;
+ || mediaFeature == MediaFeatureNames::devicePixelRatioMediaFeature
+ || mediaFeature == MediaFeatureNames::maxDevicePixelRatioMediaFeature
+ || mediaFeature == MediaFeatureNames::minDevicePixelRatioMediaFeature;
}
static inline bool featureWithZeroOrOne(const AtomicString& mediaFeature, const CSSParserValue* value)
@@ -143,7 +143,7 @@ static inline bool featureWithoutValue(const AtomicString& mediaFeature)
|| mediaFeature == MediaFeatureNames::animationMediaFeature
|| mediaFeature == MediaFeatureNames::view_modeMediaFeature
|| mediaFeature == MediaFeatureNames::pointerMediaFeature
- || mediaFeature == MediaFeatureNames::device_pixel_ratioMediaFeature
+ || mediaFeature == MediaFeatureNames::devicePixelRatioMediaFeature
|| mediaFeature == MediaFeatureNames::resolutionMediaFeature;
}
« no previous file with comments | « Source/core/css/MediaQueryEvaluator.cpp ('k') | Source/core/css/MediaQueryMatcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698