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

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

Issue 1412423004: Web Animations: Move property handle filtering into AnimationStack building (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_svgAdditiveApplication
Patch Set: Rebased Created 5 years, 2 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 d9ea1458f96b5909dbbb8a7c0d8d9414eb1ada8b..28e9fd43fb7fb9fc6f01c2ce56d491e0010c22b0 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
@@ -960,16 +960,14 @@ StyleRuleKeyframes* StyleResolver::findKeyframesRule(const Element* element, con
template <CSSPropertyPriority priority>
void StyleResolver::applyAnimatedProperties(StyleResolverState& state, const ActiveInterpolationsMap& activeInterpolationsMap)
{
- for (const auto& interpolationsVectorEntry : activeInterpolationsMap) {
- if (!interpolationsVectorEntry.key.isCSSProperty())
- continue;
- CSSPropertyID property = interpolationsVectorEntry.key.cssProperty();
+ for (const auto& entry : activeInterpolationsMap) {
+ CSSPropertyID property = entry.key.cssProperty();
if (!CSSPropertyPriorityData<priority>::propertyHasPriority(property))
continue;
- const Interpolation& interpolation = *interpolationsVectorEntry.value.first();
+ const Interpolation& interpolation = *entry.value.first();
if (interpolation.isInvalidatableInterpolation()) {
InterpolationEnvironment environment(state);
- InvalidatableInterpolation::applyStack(interpolationsVectorEntry.value, environment);
+ InvalidatableInterpolation::applyStack(entry.value, environment);
} else {
// TODO(alancutter): Remove this old code path once animations have completely migrated to InterpolationTypes.
toStyleInterpolation(interpolation).apply(state);

Powered by Google App Engine
This is Rietveld 408576698