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 4ad4ef1d1cae45de5215e1e44ec7de5619c00202..b848b0bb8947e3f095e1340eae002d5abf230d2d 100644 |
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp |
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp |
@@ -1172,7 +1172,7 @@ bool StyleResolver::ApplyAnimatedStandardProperties( |
} |
const ActiveInterpolationsMap& active_interpolations_map_for_animations = |
suzyh_UTC10 (ex-contributor)
2017/05/26 01:56:00
Add "standard" to variable name to match the trans
alancutter (OOO until 2018)
2017/05/26 03:09:15
Good call, done.
|
- state.AnimationUpdate().ActiveInterpolationsForAnimations(); |
+ state.AnimationUpdate().ActiveInterpolationsForStandardAnimations(); |
const ActiveInterpolationsMap& |
active_interpolations_map_for_standard_transitions = |
state.AnimationUpdate().ActiveInterpolationsForStandardTransitions(); |
@@ -1230,6 +1230,7 @@ void StyleResolver::ApplyAnimatedProperties( |
CSSPropertyID property = entry.key.IsCSSProperty() |
? entry.key.CssProperty() |
: entry.key.PresentationAttribute(); |
+ DCHECK_EQ(entry.key.IsCSSCustomProperty(), priority == kResolveVariables); |
if (!CSSPropertyPriorityData<priority>::PropertyHasPriority(property)) |
continue; |
const Interpolation& interpolation = *entry.value.front(); |
@@ -1752,7 +1753,8 @@ void StyleResolver::ApplyCustomProperties(StyleResolverState& state, |
needs_apply_pass); |
if (apply_animations == kIncludeAnimations) { |
ApplyAnimatedProperties<kResolveVariables>( |
- state, state.AnimationUpdate().ActiveInterpolationsForAnimations()); |
+ state, |
+ state.AnimationUpdate().ActiveInterpolationsForCustomAnimations()); |
ApplyAnimatedProperties<kResolveVariables>( |
state, |
state.AnimationUpdate().ActiveInterpolationsForCustomTransitions()); |
@@ -1771,7 +1773,8 @@ void StyleResolver::ApplyCustomProperties(StyleResolverState& state, |
needs_apply_pass); |
if (apply_animations == kIncludeAnimations) { |
ApplyAnimatedProperties<kResolveVariables>( |
- state, state.AnimationUpdate().ActiveInterpolationsForAnimations()); |
+ state, |
+ state.AnimationUpdate().ActiveInterpolationsForCustomAnimations()); |
ApplyAnimatedProperties<kResolveVariables>( |
state, |
state.AnimationUpdate().ActiveInterpolationsForCustomTransitions()); |
@@ -1816,17 +1819,12 @@ void StyleResolver::CalculateAnimationUpdate(StyleResolverState& state, |
return; |
} |
if (!state.AnimationUpdate() |
+ .ActiveInterpolationsForCustomAnimations() |
+ .IsEmpty() || |
+ !state.AnimationUpdate() |
.ActiveInterpolationsForCustomTransitions() |
.IsEmpty()) { |
state.SetIsAnimatingCustomProperties(true); |
- return; |
- } |
- for (const auto& property_handle : |
- state.AnimationUpdate().ActiveInterpolationsForAnimations().Keys()) { |
- if (CSSAnimations::IsCustomPropertyHandle(property_handle)) { |
- state.SetIsAnimatingCustomProperties(true); |
- return; |
- } |
} |
} |