Bug 1304922 - Part 4: Add EffectSet::Count(). r?birtles draft
authorHiroyuki Ikezoe <hiikezoe@mozilla-japan.org>
Wed, 05 Oct 2016 14:26:32 +0900
changeset 421029 2e7e1905f9e53cf4857ef9943329c80f5fadfc2c
parent 421028 1d4356d095d21dd4b4a3339e24650c46f09edb70
child 421030 3a7d12b45c993016789221812c16ba34ea07252b
push id31361
push userbmo:hiikezoe@mozilla-japan.org
push dateWed, 05 Oct 2016 06:56:42 +0000
reviewersbirtles
bugs1304922
milestone52.0a1
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