gecko-dev/dom
Brian Birtles 7a10d13a65 Bug 1541767 - Don't post animation restyles when unbinding an element; r=hiro
Currently we avoid posting animation restyles when unbinding an element by
removing the element from the document before deleting its animation
collections. As a result, when canceled animations go to post a restyle, they
can't find a pres context and give up posting a restyle.

However, this is problematic for two reasons:

* It means we can't remove such canceled animations from the
  PendingAnimationTracker if they are present there (i.e. it regresses the fix
  from bug 1223445).

* It means we can't post cancel events for such animations/transitions since we
  can't lookup the appropriate AnimationEventDispatcher.

In the next patch in this series we will change that order to fix the above
problems but before we do that, we need to introduce another mechanism to make
sure that we don't post restyles when unbinding an element or else we will
regress bug 1396041.

This patch does that by introducing a flag which causes us to not post restyles
when we are doing DOM surgery. For all other cases we actually _do_ need to post
restyles in order to update the style correctly.

Without this patch, layout/style/crashtests/1396041.html would fail after
applying the next patch in this series.

Differential Revision: https://phabricator.services.mozilla.com/D28021

--HG--
extra : moz-landing-system : lando
2019-04-18 06:49:25 +00:00
..
abort Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
animation Bug 1541767 - Don't post animation restyles when unbinding an element; r=hiro 2019-04-18 06:49:25 +00:00
audiochannel Bug 1445923 - Removed references of systemAppUrl along with meaningless code. r=gsvelto 2019-04-09 09:41:19 +00:00
base Bug 1545107 - DocumentStatesChanged should not unconditionally notify if the state hasn't actually changed. r=smaug 2019-04-17 19:25:50 +00:00
battery Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
bindings Bug 1534593 part 3. Initialize JSObject* entries in Record types. r=qdot 2019-04-16 19:18:52 +00:00
broadcastchannel Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
browser-element Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
cache Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
canvas Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
chrome-webidl Bug 1544505 - Add helpful getter methods to JSWindowActorChild, r=mconley,jdai 2019-04-17 18:18:33 +00:00
clients Bug 1536411 - StoragePrincipal - part 0 - WorkerPrivate::StorageAccess, r=Ehsan 2019-04-12 05:31:40 +00:00
commandhandler Bug 1542352 - Restore zero-argument constructor of nsBaseCommandController. r=bz 2019-04-05 12:55:00 +03:00
console Bug 1544322 - Part 3 - Remove the [type] attribute for multiline <script> tags loading files in chrome://mochikit/content/ r=bzbarsky 2019-04-16 03:59:25 +00:00
credentialmanagement Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
crypto Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
encoding Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
events Bug 1544322 - Part 3 - Remove the [type] attribute for multiline <script> tags loading files in chrome://mochikit/content/ r=bzbarsky 2019-04-16 03:59:25 +00:00
fetch Bug 1539003 - update InternalHeaders get/set/append/delete to match the spec; r=hsivonen 2019-04-16 06:34:05 +00:00
file Bug 1544322 - Part 4 - Remove the [type] attribute for multiline <script> tags loading files in /tests/SimpleTest/ r=bzbarsky 2019-04-16 04:01:46 +00:00
filehandle Bug 1535353 - update Core :: DOM: * bugzilla product and component meta data in moz.build files after reorganization in bug 1533440 r=hsinyi 2019-03-17 23:13:22 +00:00
filesystem Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
flex Bug 1544322 - Part 1 - Remove the [type] attribute for one-liner <script> tags loading files in chrome://mochikit/content/ r=bzbarsky 2019-04-15 20:56:58 +00:00
gamepad Bug 1542893 - Remapping gamepads to standard mapping. r=qdot 2019-04-17 17:05:43 +00:00
geolocation Bug 1541017 - Update in-tree bugzilla components for geolocation and dom/commandhandler/. r=mossop 2019-04-02 16:39:03 +00:00
grid Bug 1531982 Part 2: Update test expectations to check that implicit line names from implicit named areas are assigned to lines. r=bradwerth 2019-04-17 17:19:09 +00:00
html Bug 1328138 - Disable the XMLDocument.async API on trunk; r=bzbarsky 2019-04-17 19:46:05 +00:00
imptests Bug 1535353 - update Core :: DOM: * bugzilla product and component meta data in moz.build files after reorganization in bug 1533440 r=hsinyi 2019-03-17 23:13:22 +00:00
indexedDB Bug 1509168 - Use JS_GetObjectAsArrayBufferView() to retrieve ArrayBufferView data r=asuth 2019-04-17 12:59:20 +00:00
interfaces Bug 1542790 - Part 3: Make nsIDOMMozBrowserFrame builtinclass, r=bzbarsky 2019-04-17 00:53:12 +00:00
ipc Bug 1544505 - Add helpful getter methods to JSWindowActorChild, r=mconley,jdai 2019-04-17 18:18:33 +00:00
jsurl Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
locales Bug 1539006: Properly implement Performance Timeline Level 2 w3c spec. r=mstange,baku 2019-04-12 16:29:48 +00:00
localstorage Backout Bug 1540401 - Part 1: Convert MOZ_ASSERT to MOZ_DIAGNOSTIC_ASSERT to verify that bug 1541972 has been fixed; r=asuth 2019-04-16 20:05:49 +02:00
manifest Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
mathml Bug 1540990 - Get rid of unnecessary nsIPresShell.h inclusions r=emilio 2019-04-04 00:19:48 +00:00
media Bug 1544961 - disable tests that cause gtest harness to crash on windows10-aarch64 r=jmaher,gbrown 2019-04-17 23:12:19 +00:00
messagechannel Bug 1544322 - Part 3 - Remove the [type] attribute for multiline <script> tags loading files in chrome://mochikit/content/ r=bzbarsky 2019-04-16 03:59:25 +00:00
midi Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
network Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
notification Bug 1515094 - minimally convert notificationstore to kvstore r=asuth,lina 2019-04-17 17:30:20 +00:00
offline
payments Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
performance Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
permission Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
plugins Bug 1544322 - Part 4 - Remove the [type] attribute for multiline <script> tags loading files in /tests/SimpleTest/ r=bzbarsky 2019-04-16 04:01:46 +00:00
power Bug 1539029 - pt 1 - give RDD its own process selector. r=froydnj 2019-04-09 21:13:16 +00:00
presentation Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
prio Bug 1542146 - Apply the change with the option StatementMacros from clang-format-8 r=andi 2019-04-05 21:42:17 +00:00
promise Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
prototype Bug 1545107 - DocumentStatesChanged should not unconditionally notify if the state hasn't actually changed. r=smaug 2019-04-17 19:25:50 +00:00
push Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
quota Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
reporting Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
res
script Bug 1543751 Part 2 - Include stack in worker error reports, r=bz. 2019-04-15 13:46:05 -10:00
security Bug 1544322 - Part 4 - Remove the [type] attribute for multiline <script> tags loading files in /tests/SimpleTest/ r=bzbarsky 2019-04-16 04:01:46 +00:00
serviceworkers Bug 332175 - Disable the XMLDocument.load() API on trunk; r=bzbarsky 2019-04-17 19:37:10 +00:00
simpledb Bug 1532005 - Implement a new js/public/ArrayBuffer.h header to centralize functionality for creating and interacting with ArrayBuffers. r=sfink 2019-03-04 15:19:16 -08:00
smil Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
storage Bug 1533651 - Don't check result of PSessionStorageObserverChild::SendDeleteMe; r=asuth 2019-03-26 12:51:12 +01:00
svg Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
system Bug 1544322 - Part 3 - Remove the [type] attribute for multiline <script> tags loading files in chrome://mochikit/content/ r=bzbarsky 2019-04-16 03:59:25 +00:00
tests Backed out 2 changesets (bug 1519502, bug 1528268) for Crashtest failures in toolkit/content/tests/chrome/test_popupincontent.xul. CLOSED TREE 2019-04-18 18:26:41 +03:00
u2f Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
url Bug 1544322 - Part 3 - Remove the [type] attribute for multiline <script> tags loading files in chrome://mochikit/content/ r=bzbarsky 2019-04-16 03:59:25 +00:00
vr Bug 1543564 part 2. Get rid of pointless nsPIDOMWindowInner::AsInner methods. r=farre 2019-04-11 14:12:43 +00:00
webauthn Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
webbrowserpersist Bug 1494469 - Removed duplicate IPC::MAX_MESSAGE_SIZE constant r=jld 2019-04-12 13:01:41 +00:00
webgpu Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop 2019-03-28 09:38:14 +00:00
webidl Bug 1328138 - Disable the XMLDocument.async API on trunk; r=bzbarsky 2019-04-17 19:46:05 +00:00
websocket Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
workers Bug 1539328: Introduce new unique id for normal worker actor. r=jdescottes,bhackett 2019-04-18 00:47:24 +00:00
worklet Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
xbl Bug 1544322 - Part 3 - Remove the [type] attribute for multiline <script> tags loading files in chrome://mochikit/content/ r=bzbarsky 2019-04-16 03:59:25 +00:00
xhr Bug 1544322 - Part 4 - Remove the [type] attribute for multiline <script> tags loading files in /tests/SimpleTest/ r=bzbarsky 2019-04-16 04:01:46 +00:00
xml Bug 332175 - Disable the XMLDocument.load() API on trunk; r=bzbarsky 2019-04-17 19:37:10 +00:00
xslt Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky 2019-04-16 03:53:28 +00:00
xul Bug 1544322 - Part 3 - Remove the [type] attribute for multiline <script> tags loading files in chrome://mochikit/content/ r=bzbarsky 2019-04-16 03:59:25 +00:00
jar.mn
moz.build Bug 1520931 - Remove dom/asmjscache (r=ttung) 2019-03-26 16:57:55 -05:00