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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp

Issue 2558053002: Add CSS support for font-variation-settings (Closed)
Patch Set: DCHECK corrected, newline removed. Created 4 years 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/resolver/StyleResolver.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
index 02a6b5c162d645d4f09f4d83a8b4c8a562dd6d14..e045165b3ce70e15e8e6fd43a937d21806fcf758 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
@@ -1284,7 +1284,11 @@ static inline bool isValidCueStyleProperty(CSSPropertyID id) {
case CSSPropertyTextDecorationStyle:
case CSSPropertyTextDecorationColor:
case CSSPropertyTextDecorationSkip:
- return RuntimeEnabledFeatures::css3TextDecorationsEnabled();
+ DCHECK(RuntimeEnabledFeatures::css3TextDecorationsEnabled());
+ return true;
+ case CSSPropertyFontVariationSettings:
+ DCHECK(RuntimeEnabledFeatures::cssVariableFontsEnabled());
+ return true;
default:
break;
}
@@ -1387,6 +1391,9 @@ static inline bool isValidFirstLetterStyleProperty(CSSPropertyID id) {
case CSSPropertyWebkitMarginTopCollapse:
case CSSPropertyWordSpacing:
return true;
+ case CSSPropertyFontVariationSettings:
+ DCHECK(RuntimeEnabledFeatures::cssVariableFontsEnabled());
+ return true;
case CSSPropertyTextDecoration:
DCHECK(!RuntimeEnabledFeatures::css3TextDecorationsEnabled());
return true;

Powered by Google App Engine
This is Rietveld 408576698