Bug 1304922 - Part 4: Add EffectSet::Count(). r=birtles
authorHiroyuki Ikezoe <hiikezoe@mozilla-japan.org>
Wed, 05 Oct 2016 14:26:32 +0900
changeset 361681 37ffd2ddd1ec9be1a5d4a51e8681ee8932684550
parent 361680 0c0cf80887d35b5b551084ed05e17420ef2741ee
child 361682 04b7daffe4383dfa772201b4d2e0281409ea6e16
push id1369
push userjlorenzo@mozilla.com
push dateMon, 27 Feb 2017 14:59:41 +0000
treeherdermozilla-release@d75a1dba431f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbirtles
bugs1304922
milestone52.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1304922 - Part 4: Add EffectSet::Count(). r=birtles MozReview-Commit-ID: HqXNf4938Rb
dom/animation/EffectSet.h
--- a/dom/animation/EffectSet.h
+++ b/dom/animation/EffectSet.h
@@ -156,16 +156,18 @@ public:
   Iterator begin() { return Iterator(*this); }
   Iterator end() { return Iterator::EndIterator(*this); }
 #ifdef DEBUG
   bool IsBeingEnumerated() const { return mActiveIterators != 0; }
 #endif
 
   bool IsEmpty() const { return mEffects.IsEmpty(); }
 
+  size_t Count() const { return mEffects.Count(); }
+
   RefPtr<AnimValuesStyleRule>& AnimationRule(EffectCompositor::CascadeLevel
                                              aCascadeLevel)
   {
     return mAnimationRule[aCascadeLevel];
   }
 
   const TimeStamp& AnimationRuleRefreshTime(EffectCompositor::CascadeLevel
                                               aCascadeLevel) const