зеркало из https://github.com/mozilla/gecko-dev.git
Bug 911987 part 1 - Add onanimation** and ontransitionend event handlers. r=masayuki,smaug
This event handler is defined CSS-Animation and CSS-Transition. https://drafts.csswg.org/css-animations-1/#event-animationevent https://github.com/w3c/csswg-drafts/pull/344 MozReview-Commit-ID: ARgsibd7wST --HG-- extra : rebase_source : 7b4f366a8661508185d60ead9ce68fb234959577
This commit is contained in:
Родитель
50a4467ec3
Коммит
bd81fb18be
|
@ -74,7 +74,7 @@
|
|||
#define TOUCH_EVENT MESSAGE_TO_EVENT
|
||||
#define DOCUMENT_ONLY_EVENT MESSAGE_TO_EVENT
|
||||
#define NON_IDL_EVENT MESSAGE_TO_EVENT
|
||||
#endif
|
||||
#endif /* MESSAGE_TO_EVENT */
|
||||
|
||||
#ifdef DEFINED_FORWARDED_EVENT
|
||||
#error "Don't define DEFINED_FORWARDED_EVENT"
|
||||
|
@ -956,22 +956,22 @@ NON_IDL_EVENT(MozEdgeUICompleted,
|
|||
eSimpleGestureEventClass)
|
||||
|
||||
// CSS Transition & Animation events:
|
||||
NON_IDL_EVENT(transitionend,
|
||||
eTransitionEnd,
|
||||
EventNameType_None,
|
||||
eTransitionEventClass)
|
||||
NON_IDL_EVENT(animationstart,
|
||||
eAnimationStart,
|
||||
EventNameType_None,
|
||||
eAnimationEventClass)
|
||||
NON_IDL_EVENT(animationend,
|
||||
eAnimationEnd,
|
||||
EventNameType_None,
|
||||
eAnimationEventClass)
|
||||
NON_IDL_EVENT(animationiteration,
|
||||
eAnimationIteration,
|
||||
EventNameType_None,
|
||||
eAnimationEventClass)
|
||||
EVENT(transitionend,
|
||||
eTransitionEnd,
|
||||
EventNameType_All,
|
||||
eTransitionEventClass)
|
||||
EVENT(animationstart,
|
||||
eAnimationStart,
|
||||
EventNameType_All,
|
||||
eAnimationEventClass)
|
||||
EVENT(animationend,
|
||||
eAnimationEnd,
|
||||
EventNameType_All,
|
||||
eAnimationEventClass)
|
||||
EVENT(animationiteration,
|
||||
eAnimationIteration,
|
||||
EventNameType_All,
|
||||
eAnimationEventClass)
|
||||
|
||||
// Webkit-prefixed versions of Transition & Animation events, for web compat:
|
||||
NON_IDL_EVENT(webkitTransitionEnd,
|
||||
|
|
|
@ -125,6 +125,12 @@ interface GlobalEventHandlers {
|
|||
attribute EventHandler onmozpointerlockchange;
|
||||
[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;
|
||||
};
|
||||
|
||||
[NoInterfaceObject]
|
||||
|
|
Загрузка…
Ссылка в новой задаче