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

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 + 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/CSSKeyframeRule.cpp ('k') | Source/core/css/CSSKeyframesRule.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSKeyframesRule.h
diff --git a/Source/core/css/CSSKeyframesRule.h b/Source/core/css/CSSKeyframesRule.h
index 93f8466443de5b7131643b427516e30658e0beaf..db190e7a29556c5170a296c491e45a7a88fc668d 100644
--- a/Source/core/css/CSSKeyframesRule.h
+++ b/Source/core/css/CSSKeyframesRule.h
@@ -61,13 +61,17 @@ public:
void traceAfterDispatch(Visitor*);
+ void styleChanged() { m_version++; }
+ unsigned version() const { return m_version; }
+
private:
StyleRuleKeyframes();
explicit StyleRuleKeyframes(const StyleRuleKeyframes&);
WillBeHeapVector<RefPtrWillBeMember<StyleRuleKeyframe> > m_keyframes;
AtomicString m_name;
- bool m_isPrefixed;
+ unsigned m_version : 31;
+ unsigned m_isPrefixed : 1;
};
DEFINE_STYLE_RULE_TYPE_CASTS(Keyframes);
@@ -101,6 +105,8 @@ public:
bool isVendorPrefixed() const { return m_isPrefixed; }
void setVendorPrefixed(bool isPrefixed) { m_isPrefixed = isPrefixed; }
+ void styleChanged() { m_keyframesRule->styleChanged(); }
+
virtual void trace(Visitor*) override;
private:
« no previous file with comments | « Source/core/css/CSSKeyframeRule.cpp ('k') | Source/core/css/CSSKeyframesRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698