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

Unified Diff: sky/engine/core/css/MediaQueryEvaluator.cpp

Issue 689853003: Remove CSS Grid Layout and grid media queries. (Closed) Base URL: git@github.com:domokit/mojo.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
« no previous file with comments | « sky/engine/core/css/MediaFeatureNames.in ('k') | sky/engine/core/css/MediaQueryEvaluatorTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/MediaQueryEvaluator.cpp
diff --git a/sky/engine/core/css/MediaQueryEvaluator.cpp b/sky/engine/core/css/MediaQueryEvaluator.cpp
index 99622cab5f3735b7dcb783cb5942b0c9a0fbc290..bd9b5b1b2bd590dc76c602e7b50b142bdc334307 100644
--- a/sky/engine/core/css/MediaQueryEvaluator.cpp
+++ b/sky/engine/core/css/MediaQueryEvaluator.cpp
@@ -315,16 +315,6 @@ static bool resolutionMediaFeatureEval(const MediaQueryExpValue& value, MediaFea
return (!value.isValid() || CSSPrimitiveValue::isResolution(value.unit)) && evalResolution(value, op, MediaValues);
}
-static bool gridMediaFeatureEval(const MediaQueryExpValue& value, MediaFeaturePrefix op, const MediaValues&)
-{
- // if output device is bitmap, grid: 0 == true
- // assume we have bitmap device
- float number;
- if (value.isValid() && numberValue(value, number))
- return compareValue(static_cast<int>(number), 0, op);
- return false;
-}
-
static bool computeLength(const MediaQueryExpValue& value, const MediaValues& mediaValues, int& result)
{
if (!value.isValue)
« no previous file with comments | « sky/engine/core/css/MediaFeatureNames.in ('k') | sky/engine/core/css/MediaQueryEvaluatorTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698