Chromium Code Reviews| 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()) |