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

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

Issue 2558053002: Add CSS support for font-variation-settings (Closed)
Patch Set: Remove empty if statement 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 77476654eb6539630a8f07256cb0ae05ba2ed03b..9b5da0e5921a6a873f6e3f70bae37e6e7280ce8a 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
@@ -1283,6 +1283,8 @@ static inline bool isValidCueStyleProperty(CSSPropertyID id) {
case CSSPropertyTextDecorationColor:
case CSSPropertyTextDecorationSkip:
return RuntimeEnabledFeatures::css3TextDecorationsEnabled();
+ case CSSPropertyFontVariationSettings:
+ return RuntimeEnabledFeatures::cssVariableFontsEnabled();
Timothy Loh 2016/12/08 03:36:05 It looks like this (and the text-deco props) shoul
drott 2016/12/09 10:25:50 Makes sense to me, changed, and corrected the inve
default:
break;
}
@@ -1385,6 +1387,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());
Timothy Loh 2016/12/12 02:15:38 This one is correct -- when the flag is off we tre
return true;

Powered by Google App Engine
This is Rietveld 408576698