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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp

Issue 2443693003: Add parsing support for display: contents, and minimum behavior similar to display: none (Closed)
Patch Set: Add parsing support for display: contents, and minimum behavior similar to display: none Created 4 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: third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp b/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
index 14cf549cc35238a426ea8ba1c69de353152492a5..ff06e316143a5d655d6e1cff09e992858bb9bddd 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
@@ -546,7 +546,9 @@ bool CSSParserFastPaths::isValidKeywordPropertyAndValue(
valueID == CSSValueWebkitFlex ||
valueID == CSSValueWebkitInlineFlex || valueID == CSSValueNone ||
(RuntimeEnabledFeatures::cssGridLayoutEnabled() &&
- (valueID == CSSValueGrid || valueID == CSSValueInlineGrid));
+ (valueID == CSSValueGrid || valueID == CSSValueInlineGrid)) ||
+ (RuntimeEnabledFeatures::cssDisplayContentsEnabled() &&
+ valueID == CSSValueContents);
case CSSPropertyDominantBaseline:
return valueID == CSSValueAuto || valueID == CSSValueAlphabetic ||
valueID == CSSValueMiddle ||
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSValueKeywords.in ('k') | third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698