Chromium Code Reviews| 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; } |
|
esprehn
2015/01/21 03:00:47
This doesn't seem like the right way to solve this
|
| + |
| 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; |
|
esprehn
2015/01/29 04:23:19
: 31;
unsigned m_isPrefixed : 1;
shend
2015/01/30 00:03:10
Done.
|
| }; |
| 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); |