Bug 1415780 - Drop the comment for nsAnimationManager::DispatchEvents(). r?birtles draft
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Sat, 27 Jan 2018 21:17:26 +0900
changeset 748020 ce27253273f6e9185f8f0e6fbbedf9705f25f334
parent 748019 19e69815abc03543c30e08d57fb9d4d61d1e2f98
child 748021 c2e87e459e0c9ec94709c0959ae893ee6061055f
push id97048
push userhikezoe@mozilla.com
push dateSat, 27 Jan 2018 12:23:10 +0000
reviewersbirtles
bugs1415780, 1180125
milestone60.0a1
Bug 1415780 - Drop the comment for nsAnimationManager::DispatchEvents(). r?birtles The comment is no longer correct since bug 1180125. MozReview-Commit-ID: A4NWgmwAOFt
layout/style/nsAnimationManager.h
--- a/layout/style/nsAnimationManager.h
+++ b/layout/style/nsAnimationManager.h
@@ -343,23 +343,16 @@ public:
    * This function does the same thing as the above UpdateAnimations()
    * but with servo's computed values.
    */
   void UpdateAnimations(
     mozilla::dom::Element* aElement,
     mozilla::CSSPseudoElementType aPseudoType,
     const mozilla::ServoStyleContext* aComputedValues);
 
-  /**
-   * Dispatch any pending events.  We accumulate animationend and
-   * animationiteration events only during refresh driver notifications
-   * (and dispatch them at the end of such notifications), but we
-   * accumulate animationstart events at other points when style
-   * contexts are created.
-   */
   void DispatchEvents()
   {
     RefPtr<nsAnimationManager> kungFuDeathGrip(this);
     mEventDispatcher.DispatchEvents(mPresContext);
   }
 
   // Utility function to walk through |aIter| to find the Keyframe with
   // matching offset and timing function but stopping as soon as the offset