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

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

Issue 2340893003: Support interpolation of animatable shorthand properties containing var() (Closed)
Patch Set: Update DCHECK Created 4 years, 3 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/StyleBuilderCustom.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
index f7dad119e1c2ff37ae61a23783aa2afd0e4bc014..a9faee2eeb16c8d9afe3a28c8dd038dd3ce8ab86 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
@@ -112,9 +112,7 @@ void StyleBuilder::applyProperty(CSSPropertyID id, StyleResolverState& state, co
if (id != CSSPropertyVariable
&& (value.isVariableReferenceValue() || value.isPendingSubstitutionValue())) {
- const CSSValue* resolvedValue = value.isVariableReferenceValue() ?
- CSSVariableResolver::resolveVariableReferences(state, id, toCSSVariableReferenceValue(value)) :
- CSSVariableResolver::resolvePendingSubstitutions(state, id, toCSSPendingSubstitutionValue(value));
+ const CSSValue* resolvedValue = CSSVariableResolver::resolveVariableReferences(state, id, value);
applyProperty(id, state, *resolvedValue);
if (!state.style()->hasVariableReferenceFromNonInheritedProperty() && !CSSPropertyMetadata::isInheritedProperty(id))

Powered by Google App Engine
This is Rietveld 408576698