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

Unified Diff: Source/core/css/CSSKeyframesRule.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: Rebase + Address comments Created 5 years, 11 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
« no previous file with comments | « Source/core/css/CSSKeyframesRule.h ('k') | Source/core/css/KeyframeStyleRuleCSSStyleDeclaration.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSKeyframesRule.cpp
diff --git a/Source/core/css/CSSKeyframesRule.cpp b/Source/core/css/CSSKeyframesRule.cpp
index a1e8ef314bc26eb8c987bd897c9c8bc86b592c90..61b28ce75e8079dcedba49453149e13ae9b1ffa5 100644
--- a/Source/core/css/CSSKeyframesRule.cpp
+++ b/Source/core/css/CSSKeyframesRule.cpp
@@ -37,6 +37,7 @@ namespace blink {
StyleRuleKeyframes::StyleRuleKeyframes()
: StyleRuleBase(Keyframes)
+ , m_version(0)
{
}
@@ -44,6 +45,7 @@ StyleRuleKeyframes::StyleRuleKeyframes(const StyleRuleKeyframes& o)
: StyleRuleBase(o)
, m_keyframes(o.m_keyframes)
, m_name(o.m_name)
+ , m_version(o.m_version)
, m_isPrefixed(o.m_isPrefixed)
{
}
@@ -62,11 +64,13 @@ void StyleRuleKeyframes::parserAppendKeyframe(PassRefPtrWillBeRawPtr<StyleRuleKe
void StyleRuleKeyframes::wrapperAppendKeyframe(PassRefPtrWillBeRawPtr<StyleRuleKeyframe> keyframe)
{
m_keyframes.append(keyframe);
+ styleChanged();
}
void StyleRuleKeyframes::wrapperRemoveKeyframe(unsigned index)
{
m_keyframes.remove(index);
+ styleChanged();
}
int StyleRuleKeyframes::findKeyframeIndex(const String& key) const
« no previous file with comments | « Source/core/css/CSSKeyframesRule.h ('k') | Source/core/css/KeyframeStyleRuleCSSStyleDeclaration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698