Bug 1287983 part 1 - Add transitionstart/transitionrun event handlers. r=masayuki,smaug
authorMantaroh Yoshinaga <mantaroh@gmail.com>
Wed, 19 Oct 2016 15:16:51 +0900
changeset 319515 eb5e66f42433
parent 319514 9839d6c2a187
child 319516 203cc2a68c0c
push id30872
push userphilringnalda@gmail.com
push dateThu, 27 Oct 2016 01:30:58 +0000
treeherdermozilla-central@54f7bdea8976 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmasayuki, smaug
bugs1287983
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 1287983 part 1 - Add transitionstart/transitionrun event handlers. r=masayuki,smaug This transitionstart and transitionrun event is defined in editor's draft of CSS Transition Level 2. https://drafts.csswg.org/css-transitions-2/#transition-events MozReview-Commit-ID: 6c0GqlaOOPZ
dom/base/nsGkAtomList.h
dom/events/EventNameList.h
dom/webidl/EventHandler.webidl
widget/EventMessageList.h
--- a/dom/base/nsGkAtomList.h
+++ b/dom/base/nsGkAtomList.h
@@ -933,16 +933,18 @@ GK_ATOM(ontypechange, "ontypechange")
 GK_ATOM(onterminate, "onterminate")
 GK_ATOM(ontext, "ontext")
 GK_ATOM(ontoggle, "ontoggle")
 GK_ATOM(ontouchstart, "ontouchstart")
 GK_ATOM(ontouchend, "ontouchend")
 GK_ATOM(ontouchmove, "ontouchmove")
 GK_ATOM(ontouchcancel, "ontouchcancel")
 GK_ATOM(ontransitionend, "ontransitionend")
+GK_ATOM(ontransitionrun, "ontransitionrun")
+GK_ATOM(ontransitionstart, "ontransitionstart")
 GK_ATOM(onunderflow, "onunderflow")
 GK_ATOM(onunload, "onunload")
 GK_ATOM(onupdatefound, "onupdatefound")
 GK_ATOM(onupdateready, "onupdateready")
 GK_ATOM(onupgradeneeded, "onupgradeneeded")
 GK_ATOM(onussdreceived, "onussdreceived")
 GK_ATOM(onversionchange, "onversionchange")
 GK_ATOM(onvoicechange, "onvoicechange")
--- a/dom/events/EventNameList.h
+++ b/dom/events/EventNameList.h
@@ -974,16 +974,24 @@ NON_IDL_EVENT(MozEdgeUICanceled,
               EventNameType_None,
               eSimpleGestureEventClass)
 NON_IDL_EVENT(MozEdgeUICompleted,
               eEdgeUICompleted,
               EventNameType_None,
               eSimpleGestureEventClass)
 
 // CSS Transition & Animation events:
+EVENT(transitionstart,
+      eTransitionStart,
+      EventNameType_All,
+      eTransitionEventClass)
+EVENT(transitionrun,
+      eTransitionRun,
+      EventNameType_All,
+      eTransitionEventClass)
 EVENT(transitionend,
       eTransitionEnd,
       EventNameType_All,
       eTransitionEventClass)
 EVENT(animationstart,
       eAnimationStart,
       EventNameType_All,
       eAnimationEventClass)
--- a/dom/webidl/EventHandler.webidl
+++ b/dom/webidl/EventHandler.webidl
@@ -127,16 +127,18 @@ interface GlobalEventHandlers {
            [Pref="pointer-lock-api.prefixed.enabled"]
            attribute EventHandler onmozpointerlockerror;
 
            // CSS-Animation and CSS-Transition handlers.
            attribute EventHandler onanimationend;
            attribute EventHandler onanimationiteration;
            attribute EventHandler onanimationstart;
            attribute EventHandler ontransitionend;
+           attribute EventHandler ontransitionrun;
+           attribute EventHandler ontransitionstart;
 
            // CSS-Animation and CSS-Transition legacy handlers.
            // This handler isn't standard.
            attribute EventHandler onwebkitanimationend;
            attribute EventHandler onwebkitanimationiteration;
            attribute EventHandler onwebkitanimationstart;
            attribute EventHandler onwebkittransitionend;
 };
--- a/widget/EventMessageList.h
+++ b/widget/EventMessageList.h
@@ -329,16 +329,18 @@ NS_EVENT_MESSAGE(eContentCommandLookUpDi
 NS_EVENT_MESSAGE(eContentCommandScroll)
 
 // Event to gesture notification
 NS_EVENT_MESSAGE(eGestureNotify)
 
 NS_EVENT_MESSAGE(eScrolledAreaChanged)
 
 // CSS Transition & Animation events:
+NS_EVENT_MESSAGE(eTransitionStart)
+NS_EVENT_MESSAGE(eTransitionRun)
 NS_EVENT_MESSAGE(eTransitionEnd)
 NS_EVENT_MESSAGE(eAnimationStart)
 NS_EVENT_MESSAGE(eAnimationEnd)
 NS_EVENT_MESSAGE(eAnimationIteration)
 
 // Webkit-prefixed versions of Transition & Animation events, for web compat:
 NS_EVENT_MESSAGE(eWebkitTransitionEnd)
 NS_EVENT_MESSAGE(eWebkitAnimationStart)