Bug 1303233 - Part 1: Add a const version of EffectSet::AnimationRule(). r?birtles draft
authorHiroyuki Ikezoe <hiikezoe@mozilla-japan.org>
Fri, 16 Sep 2016 11:23:09 +0900
changeset 414311 ec173a87b9c7d0e6ce55521bab4484a81cd2d624
parent 413960 29af101880db7ce7f5f87f58e1ff20988c1c5fc3
child 414312 037663a3d3d95c33b38d822a8ba7f695edf91f05
push id29637
push userbmo:hiikezoe@mozilla-japan.org
push dateFri, 16 Sep 2016 02:30:17 +0000
reviewersbirtles
bugs1303233
milestone51.0a1
Bug 1303233 - Part 1: Add a const version of EffectSet::AnimationRule(). r?birtles This will be used for checking animation style for a property has been already composed in a given cascade level. MozReview-Commit-ID: DNrUBnrmEl3
dom/animation/EffectSet.h
--- a/dom/animation/EffectSet.h
+++ b/dom/animation/EffectSet.h
@@ -162,16 +162,22 @@ public:
   bool IsEmpty() const { return mEffects.IsEmpty(); }
 
   RefPtr<AnimValuesStyleRule>& AnimationRule(EffectCompositor::CascadeLevel
                                              aCascadeLevel)
   {
     return mAnimationRule[aCascadeLevel];
   }
 
+  const AnimValuesStyleRule* AnimationRule(EffectCompositor::CascadeLevel
+                                           aCascadeLevel) const
+  {
+    return mAnimationRule[aCascadeLevel];
+  }
+
   const TimeStamp& AnimationRuleRefreshTime(EffectCompositor::CascadeLevel
                                               aCascadeLevel) const
   {
     return mAnimationRuleRefreshTime[aCascadeLevel];
   }
   void UpdateAnimationRuleRefreshTime(EffectCompositor::CascadeLevel
                                         aCascadeLevel,
                                       const TimeStamp& aRefreshTime)