gecko-dev/dom
Brian Birtles f4bdb4f46c Bug 1171817 part 5 - Add a sequence number member to Animations; r=dbaron
Web Animations defines Animations as having a globally unique sequence number
for the purpose of prioritization:

  http://w3c.github.io/web-animations/#animation-sequence-number

As of the writing of this patch, the spec says the sequence number is updated
when the Animation is created. This is problematic and I have proposed that
actually this should be updated from each transition from idle:

  https://lists.w3.org/Archives/Public/public-fx/2015AprJun/0054.html

This doesn't seem to have met any opposition so I will update the spec to
reflect this soon.

This patch implements the behavior of updating the sequence number on each
transition from idle.

To make sure we perform this on each change to timing this patch removes
a couple of instances of early returns to ensure that UpdateTiming is called.

The current maximum sequence number is simply a class static and we make no
attempt to deal with wraparound. This is because we only update this number when
an animation transitions from idle which only happens when an animation is
created or script calls cancel() followed by play() on the animation. Supposing
that across all content this happenned an unlikely 1 billion times a second we
still wouldn't exhaust the range of the unsigned 64-bit int for about 585 years.

We'd like to make kUnsequenced be zero and make the static represent the
current maximum. This would probably be easier to understand and recognize in
a debugger. However, later in this patch series we will make CSS animations and
CSS transitions override this sequencing behavior. If we define kUnsequenced
to be zero and they accidentally assign zero as an actual sequence number then
they'll run into trouble. To avoid that we set kUnsequenced to UINT64_MAX.

--HG--
extra : commitid : DMw8uKjg4Hz
extra : rebase_source : 9e98b3346f0297efce3ecfa0b2dd8a9c13075dca
2015-06-09 11:13:53 +09:00
..
activities Backed out 2 changesets (bug 1176712) for gip f5 permafail CLOSED TREE a=bustage 2015-07-02 09:21:23 -07:00
alarm
animation Bug 1171817 part 5 - Add a sequence number member to Animations; r=dbaron 2015-06-09 11:13:53 +09:00
apps Backed out 2 changesets (bug 1176712) for gip f5 permafail CLOSED TREE a=bustage 2015-07-02 09:21:23 -07:00
archivereader Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
asmjscache Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
audiochannel Bug 1180347 - Split media.useAudioChannelService to support turning the service on without turning the Firefox OS specific APIs on; r=baku 2015-07-06 09:05:00 -04:00
base Bug 1181413 - Use enum to distinguish fullscreen request for Fullscreen Mode and Fullscreen API. r=smaug 2015-07-09 08:00:33 +10:00
battery
bindings Bug 1180525. Run callbacks whose window is no longer current as long as its document is the active document in the browsing context. r=bholley 2015-07-07 17:38:07 -04:00
bluetooth Bug 1170071 - Part 4: Add Gatt server interfaces for Bluetooth daemon. r=shuang 2015-07-08 04:34:00 -04:00
broadcastchannel Bug 1178261 - make BroadcastChannel CC skippable, r=smaug 2015-06-29 17:42:41 +01:00
browser-element Bug 1170644 - Fix forced reflow in BrowserElementChildPreload. r=bz 2015-07-08 15:38:43 +01:00
cache Bug 1180765 - Bump the caches.sqlite version numbers because of the field that was added in bug 1169044; r=jdm 2015-07-08 19:35:29 -04:00
camera Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
canvas Back out 694521589eb0 (bug 1177271) for leaking 2015-07-07 21:08:19 -07:00
cellbroadcast Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
contacts Bug 1174954 part 1. Stop throwing DOMErrors from JS-implemented webidl, since we can now throw content-side Errors instead. r=bholley 2015-06-16 16:44:10 -04:00
crypto Bug 1169890 - Check return values for CryptoBuffer.Assign() calls r=rbarnes 2015-05-30 08:28:45 +02:00
datastore Bug 1181329 - Make DataStore available to privileged homescreen app, r=fabrice 2015-07-07 23:19:14 +01:00
devicestorage Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
downloads
encoding
engineeringmode
events Bug 599328 - Clicking a label shouldn't draw a focus ring if clicking the control wouldn't have. r=enndeakin 2015-07-08 00:46:48 -04:00
fetch Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
filehandle Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
filesystem Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
fmradio Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
gamepad Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
geolocation Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
html Bug 1180563 - Add pref to delay play of <video>s until they're visible. r=kinetik 2015-07-09 11:10:16 +12:00
icc Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
identity
imptests Bug 1173288 - Update testharness code in imptests; rs=jgraham 2015-06-20 09:16:51 +02:00
indexedDB Bug 1168606 - Part 1: Extract Cursor response data population into shared function. r=bent 2015-07-07 11:27:04 -07:00
inputmethod Bug 1175399 - Move readonly detection into isFocusableElement. r=janjongboom 2015-07-03 01:42:00 +02:00
inputport
interfaces Bug 1177563 - Test that we share agent rule processors across different documents. r=dbaron 2015-07-08 15:57:31 +10:00
ipc Bug 1171200 - Add means of checking if a document links to a manifest. r=billm. 2015-07-08 13:26:32 +10:00
json Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
jsurl Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
locales Bug 1103106 - Change will-change to be first-come, first-served. r=roc 2015-07-06 16:32:53 -04:00
manifest Bug 1171200 - Add means of checking if a document links to a manifest. r=billm. 2015-07-08 13:26:32 +10:00
mathml
media Bug 1181262 - Disabling more code under --disable-webrtc, r=dholbert,bwc 2015-07-08 12:27:45 -07:00
messagechannel Bug 1178261 - make BroadcastChannel CC skippable, r=smaug 2015-06-29 17:42:41 +01:00
messages
mobileconnection Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
mobileid
mobilemessage Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
network Bug 1176542 - Trace the window object in the TCPSocket child proxy. r=mccr8 2015-07-08 16:06:33 -04:00
nfc Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
notification Bug 916893 - Patch 3 - Walk up worker chain to find correct window for WorkerNotificationObserver. r=khuey 2015-06-25 18:53:02 -07:00
offline Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
payment
permission
phonenumberutils Bug 1179379 - PhonenumberJS: Update Metadata. r=bent 2015-07-06 10:12:37 -07:00
plugins Bug 1158561 followup: Add 'override' annotations to overriding methods added in this bug: Callback(), SitesWithData(), RecvReturnClearSiteData(), & RecvReturnSitesWithData(). rs=ehsan 2015-07-07 21:10:32 -07:00
power
presentation Bug 1171827 - Temporarily disale mDNS device provider. r=schien 2015-06-15 03:53:00 -04:00
promise Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
push Bug 1166350 - Patch 2 - Fix tests. a=bustage 2015-06-24 14:27:49 -07:00
quota Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
requestsync Bug 1165787 - Use origin in RequestSyncService.jsm. r=ehsan 2015-05-29 19:35:10 +08:00
res
resourcestats
secureelement Bug 1174683 - [Secure Element] Fix TypeError in UiccConnector.unregisterListener. r=allstars.chh 2015-06-15 03:58:00 -04:00
security Bug 1171200 - Add means of checking if a document links to a manifest. r=billm. 2015-07-08 13:26:32 +10:00
settings Bug 1012403 - Reenable SettingsService chrome tests, on B2G only; a=TEST-ONLY 2015-06-16 14:14:07 -07:00
simplepush Bug 1174422 - Add system principal for UDPSocket init r=kitcambridge 2015-06-13 10:30:25 -07:00
smil Bug 765078: Give SMIL time events a longer grace period to fire, in test_smilTimeEvents.xhtml. (test-only) 2015-06-03 10:44:33 -07:00
speakermanager Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
storage Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
svg Bug 1179282 - Use nsTArray::Assign instead of the assignment operator in dom/svg/. r=dholbert 2015-07-07 11:27:03 -07:00
system Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
telephony Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
tests Bug 1170369 - Enable tests of Fullscreen API and PointerLock API on Windows XP and OS X 10.6+. r=RyanVM 2015-07-09 08:00:33 +10:00
tethering
time
tv Bug 987498 - Part 3 - Implement DOMHwMediaStream. r=roc 2015-06-18 00:21:00 +02:00
voicemail Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
vr
wappush
webidl Bug 1181262 - Disabling more code under --disable-webrtc, r=dholbert,bwc 2015-07-08 12:27:45 -07:00
wifi Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
workers Bug 1181318 - Eliminate duplicate mRefCnt members in nsRunnable subclasses. r=ehsan 2015-07-07 14:03:00 +02:00
xbl Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
xml Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
xslt Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
xul Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
jar.mn
moz.build Bug 911972 - MessagePort and MessageChannel in workers, r=smaug, r=bent 2015-06-17 11:44:27 +01:00