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

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: Move change counters to CSSAnimations 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
« Source/core/css/CSSKeyframeRule.h ('K') | « Source/core/css/CSSKeyframesRule.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8adb35585c74f7414d6988012e2e73e93d6f54b7 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 == *it->value))
dstockwell 2014/12/29 23:16:33 It shouldn't matter to set styleChanged even when
shend 2014/12/30 00:03:40 Done.
+ rule->styleChanged();
+
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/css/CSSKeyframeRule.h ('K') | « Source/core/css/CSSKeyframesRule.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698