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

--HG--
extra : rebase_source : 9d16572634a388da25e16096f06087e808ec57ae
This commit is contained in:
Mantaroh Yoshinaga 2016-10-19 15:16:51 +09:00
parent 8cfa990adf
commit 3d795f2c3e
4 changed files with 14 additions and 0 deletions

View File

@ -938,6 +938,8 @@ 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")

View File

@ -979,6 +979,14 @@ NON_IDL_EVENT(MozEdgeUICompleted,
eSimpleGestureEventClass)
// CSS Transition & Animation events:
EVENT(transitionstart,
eTransitionStart,
EventNameType_All,
eTransitionEventClass)
EVENT(transitionrun,
eTransitionRun,
EventNameType_All,
eTransitionEventClass)
EVENT(transitionend,
eTransitionEnd,
EventNameType_All,

View File

@ -132,6 +132,8 @@ interface GlobalEventHandlers {
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.

View File

@ -334,6 +334,8 @@ 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)