Bug 1236979 part 1: Add event names & enums for webkit-prefixed transition & animation events. r=smaug
authorDaniel Holbert <dholbert@cs.stanford.edu>
Sun, 31 Jan 2016 00:01:17 -0800
changeset 282611 2f4de652525eb0c376a348eef29ee811677f856a
parent 282610 e02003de4927b0339f7aa07318cc9ceb7777b607
child 282612 d7136545a16e9e418ba2cb212438be96746fd210
push id71249
push userdholbert@mozilla.com
push dateTue, 02 Feb 2016 03:05:38 +0000
treeherdermozilla-inbound@f8b1e085b161 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1236979
milestone47.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 1236979 part 1: Add event names & enums for webkit-prefixed transition & animation events. r=smaug
dom/base/nsGkAtomList.h
dom/events/EventNameList.h
widget/EventMessageList.h
--- a/dom/base/nsGkAtomList.h
+++ b/dom/base/nsGkAtomList.h
@@ -926,16 +926,20 @@ GK_ATOM(ontransitionend, "ontransitionen
 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")
+GK_ATOM(onwebkitAnimationEnd, "onwebkitAnimationEnd")
+GK_ATOM(onwebkitAnimationIteration, "onwebkitAnimationIteration")
+GK_ATOM(onwebkitAnimationStart, "onwebkitAnimationStart")
+GK_ATOM(onwebkitTransitionEnd, "onwebkitTransitionEnd")
 GK_ATOM(onwheel, "onwheel")
 GK_ATOM(open, "open")
 GK_ATOM(optgroup, "optgroup")
 GK_ATOM(optimum, "optimum")
 GK_ATOM(option, "option")
 GK_ATOM(_or, "or")
 GK_ATOM(order, "order")
 GK_ATOM(ordinal, "ordinal")
--- a/dom/events/EventNameList.h
+++ b/dom/events/EventNameList.h
@@ -919,16 +919,17 @@ NON_IDL_EVENT(MozEdgeUICanceled,
               eEdgeUICanceled,
               EventNameType_None,
               eSimpleGestureEventClass)
 NON_IDL_EVENT(MozEdgeUICompleted,
               eEdgeUICompleted,
               EventNameType_None,
               eSimpleGestureEventClass)
 
+// CSS Transition & Animation events:
 NON_IDL_EVENT(transitionend,
               eTransitionEnd,
               EventNameType_None,
               eTransitionEventClass)
 NON_IDL_EVENT(animationstart,
               eAnimationStart,
               EventNameType_None,
               eAnimationEventClass)
@@ -936,16 +937,34 @@ NON_IDL_EVENT(animationend,
               eAnimationEnd,
               EventNameType_None,
               eAnimationEventClass)
 NON_IDL_EVENT(animationiteration,
               eAnimationIteration,
               EventNameType_None,
               eAnimationEventClass)
 
+// Webkit-prefixed versions of Transition & Animation events, for web compat:
+NON_IDL_EVENT(webkitTransitionEnd,
+              eWebkitTransitionEnd,
+              EventNameType_None,
+              eTransitionEventClass)
+NON_IDL_EVENT(webkitAnimationEnd,
+              eWebkitAnimationEnd,
+              EventNameType_None,
+              eAnimationEventClass)
+NON_IDL_EVENT(webkitAnimationIteration,
+              eWebkitAnimationIteration,
+              EventNameType_None,
+              eAnimationEventClass)
+NON_IDL_EVENT(webkitAnimationStart,
+              eWebkitAnimationStart,
+              EventNameType_None,
+              eAnimationEventClass)
+
 NON_IDL_EVENT(audioprocess,
               eAudioProcess,
               EventNameType_None,
               eBasicEventClass)
 
 NON_IDL_EVENT(complete,
               eAudioComplete,
               EventNameType_None,
--- a/widget/EventMessageList.h
+++ b/widget/EventMessageList.h
@@ -307,22 +307,28 @@ NS_EVENT_MESSAGE(eContentCommandPasteTra
 // scrolling is requested using this event, no scrolling will occur.
 NS_EVENT_MESSAGE(eContentCommandScroll)
 
 // Event to gesture notification
 NS_EVENT_MESSAGE(eGestureNotify)
 
 NS_EVENT_MESSAGE(eScrolledAreaChanged)
 
+// CSS Transition & Animation events:
 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)
+NS_EVENT_MESSAGE(eWebkitAnimationEnd)
+NS_EVENT_MESSAGE(eWebkitAnimationIteration)
+
 NS_EVENT_MESSAGE(eSMILBeginEvent)
 NS_EVENT_MESSAGE(eSMILEndEvent)
 NS_EVENT_MESSAGE(eSMILRepeatEvent)
 
 NS_EVENT_MESSAGE(eAudioProcess)
 NS_EVENT_MESSAGE(eAudioComplete)
 
 // script notification events