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

Unified Diff: Source/core/css/resolver/ScopedStyleResolver.cpp

Issue 814083003: Update animation when changes in animation keyframes are detected. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address comments Created 6 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: Source/core/css/resolver/ScopedStyleResolver.cpp
diff --git a/Source/core/css/resolver/ScopedStyleResolver.cpp b/Source/core/css/resolver/ScopedStyleResolver.cpp
index e3ccf263ce89cf6f8297b15c27800358541f6a8d..3eef899ba034ae03a6246a99498df434bf3bfcc7 100644
--- a/Source/core/css/resolver/ScopedStyleResolver.cpp
+++ b/Source/core/css/resolver/ScopedStyleResolver.cpp
@@ -105,8 +105,12 @@ const StyleRuleKeyframes* ScopedStyleResolver::keyframeStylesForAnimation(const
void ScopedStyleResolver::addKeyframeStyle(PassRefPtrWillBeRawPtr<StyleRuleKeyframes> rule)
{
AtomicString s(rule->name());
+
+ KeyframesRuleMap::iterator it = m_keyframesRuleMap.find(s.impl());
+ if (it == m_keyframesRuleMap.end())
+ rule->styleChanged();
dstockwell 2014/12/30 00:59:12 I don't quite understand how this works, why are w
shend 2015/01/02 01:58:29 My bad, it should just invalidate every time this
+
if (rule->isVendorPrefixed()) {
- KeyframesRuleMap::iterator it = m_keyframesRuleMap.find(rule->name().impl());
if (it == m_keyframesRuleMap.end())
m_keyframesRuleMap.set(s.impl(), rule);
else if (it->value->isVendorPrefixed())
« Source/core/animation/css/CSSAnimations.cpp ('K') | « Source/core/css/CSSKeyframesRule.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698