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

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

Issue 2673963002: Drop hover:on-demand support & let touch-screens report "none" instead. (Closed)
Patch Set: Fixed a "yikes!" Created 3 years, 9 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: third_party/WebKit/Source/core/css/MediaQueryExp.cpp
diff --git a/third_party/WebKit/Source/core/css/MediaQueryExp.cpp b/third_party/WebKit/Source/core/css/MediaQueryExp.cpp
index ada04787593ec528568be1cd998181f447844d8d..b20be6a9740ffa46dc33394e5c91fc7d885d51e3 100644
--- a/third_party/WebKit/Source/core/css/MediaQueryExp.cpp
+++ b/third_party/WebKit/Source/core/css/MediaQueryExp.cpp
@@ -55,8 +55,7 @@ static inline bool featureWithValidIdent(const String& mediaFeature,
ident == CSSValueFine;
if (mediaFeature == hoverMediaFeature || mediaFeature == anyHoverMediaFeature)
- return ident == CSSValueNone || ident == CSSValueOnDemand ||
- ident == CSSValueHover;
+ return ident == CSSValueNone || ident == CSSValueHover;
if (mediaFeature == scanMediaFeature)
return ident == CSSValueInterlace || ident == CSSValueProgressive;

Powered by Google App Engine
This is Rietveld 408576698