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

Unified Diff: Source/core/css/CSSKeyframesRule.h

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 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
Index: Source/core/css/CSSKeyframesRule.h
diff --git a/Source/core/css/CSSKeyframesRule.h b/Source/core/css/CSSKeyframesRule.h
index 93f8466443de5b7131643b427516e30658e0beaf..d1e15d34aa3824142745d154f745bdc8be871823 100644
--- a/Source/core/css/CSSKeyframesRule.h
+++ b/Source/core/css/CSSKeyframesRule.h
@@ -61,6 +61,9 @@ public:
void traceAfterDispatch(Visitor*);
+ void styleChanged() { m_styleChangeCounter++; }
+ unsigned styleChangeCounter() const { return m_styleChangeCounter; }
+
private:
StyleRuleKeyframes();
explicit StyleRuleKeyframes(const StyleRuleKeyframes&);
@@ -68,6 +71,7 @@ private:
WillBeHeapVector<RefPtrWillBeMember<StyleRuleKeyframe> > m_keyframes;
AtomicString m_name;
bool m_isPrefixed;
+ unsigned m_styleChangeCounter;
};
DEFINE_STYLE_RULE_TYPE_CASTS(Keyframes);
@@ -112,6 +116,8 @@ private:
mutable WillBeHeapVector<RefPtrWillBeMember<CSSKeyframeRule> > m_childRuleCSSOMWrappers;
mutable OwnPtrWillBeMember<CSSRuleList> m_ruleListCSSOMWrapper;
bool m_isPrefixed;
+
+ friend class CSSKeyframeRule;
};
DEFINE_CSS_RULE_TYPE_CASTS(CSSKeyframesRule, KEYFRAMES_RULE);

Powered by Google App Engine
This is Rietveld 408576698