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

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

Issue 2279133002: Remove CSSVariables RuntimeEnabledFeatures flag (status=stable) (Closed)
Patch Set: Created 4 years, 4 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/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 b160cb46c5c1eb22c09a7a501c3a0b600073e33f..2357ad74eb163a9073b0a2a55d3c5e32ed02e8c0 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
@@ -1559,12 +1559,10 @@ void StyleResolver::applyMatchedProperties(StyleResolverState& state, const Matc
}
// TODO(leviw): We need the proper bit for tracking whether we need to do this work.
- if (RuntimeEnabledFeatures::cssVariablesEnabled()) {
- applyMatchedProperties<ResolveVariables>(state, matchResult.authorRules(), false, applyInheritedOnly);
- applyMatchedProperties<ResolveVariables>(state, matchResult.authorRules(), true, applyInheritedOnly);
- // TODO(leviw): stop recalculating every time
- CSSVariableResolver::resolveVariableDefinitions(state.style()->variables());
- }
+ applyMatchedProperties<ResolveVariables>(state, matchResult.authorRules(), false, applyInheritedOnly);
+ applyMatchedProperties<ResolveVariables>(state, matchResult.authorRules(), true, applyInheritedOnly);
+ // TODO(leviw): stop recalculating every time
+ CSSVariableResolver::resolveVariableDefinitions(state.style()->variables());
if (RuntimeEnabledFeatures::cssApplyAtRulesEnabled()) {
if (cacheCustomPropertiesForApplyAtRules(state, matchResult.authorRules())) {

Powered by Google App Engine
This is Rietveld 408576698