gecko-dev/dom
Hiroyuki Ikezoe 74b350fbd2 Bug 1421476 - Wait for the next frame after waitForWheelEvent(). r=birtles
sendWheelAndPaintNoFlush which calls in waitForWheelEvent()  waits for
MozAfterPaint and calls a given callback function when the MozAfterPaint is
received.  The MozAfterPaint is processed after we did a paint process.
However, observeStyling counts the number of requestAnimationFrame callbacks
and yet there will be no opportunity to process restyles between the
MozAfterPaint callback and the next call to requestAnimationFrame.  As a result,
if we are expecting restyles to happen on every frame, our count will be off by
one.  To avoid this, we wait until the next requestAnimationFrame callback
before calling observeStyling.

Note that we *could* try to adjust observeStyling to automatically do this for
us but sometimes we want observeStyling to observe restyles in the *current*
frame.  Since there's no obvious way to detect what we are trying to do it's
easier to just let each test decide from which point it wants to count restyles.


MozReview-Commit-ID: 1B8EZNozjFj

--HG--
extra : rebase_source : 748f874dbb42e06b72b12582762626a31d1e8d75
2017-11-29 13:05:21 +09:00
..
abort Bug 1415682 - Abort API exposed to System, r=qdot 2017-11-10 19:37:13 +01:00
animation Bug 1421476 - Wait for the next frame after waitForWheelEvent(). r=birtles 2017-11-29 13:05:21 +09:00
asmjscache Bug 1331209 - Part 4: Prevent the state machine from continuing if QM is shutting down or the actor has been destroyed; r=asuth 2017-11-04 23:13:51 +01:00
audiochannel Bug 1419597 - Part 18: Remove IsInnerWindow and IsOuterWindow methods, r=smaug 2017-11-23 13:12:13 -05:00
base Merge inbound to mozilla-central a=merge r=merge 2017-11-28 11:50:57 +02:00
battery
bindings Bug 1290948 - Part 2: webidl for RTCRtpTransceiver and supporting interfaces r+jib, r+ehsan r=ehsan+251051,jib 2017-08-23 15:47:54 -05:00
broadcastchannel Bug 1419597 - Part 18: Remove IsInnerWindow and IsOuterWindow methods, r=smaug 2017-11-23 13:12:13 -05:00
browser-element Bug 1406253 - Part 3: use currentRequstFinalURI in context menu and add a test case. r=dao 2017-11-14 19:19:27 +08:00
cache Bug 1418048 - Add a callback-based Send API to async returning IPDL methods, r=billm 2017-11-20 17:55:32 -05:00
canvas Bug 1420223 - createImageBitmap must work with nsIAsyncInputStream - part 3 - ImageBitmap must use imgITools::decodeImageAsync, r=aosmond 2017-11-27 17:05:57 +01:00
clients Bug 1419536 P4 Allow ClientSource objects to be frozen while in bfcache. r=baku 2017-11-21 15:13:05 -05:00
commandhandler
console Bug 1419597 - Part 18: Remove IsInnerWindow and IsOuterWindow methods, r=smaug 2017-11-23 13:12:13 -05:00
credentialmanagement Bug 1415675 - Web Authentication - Support AbortSignal types r=jcj,smaug 2017-11-17 09:44:50 +01:00
crypto Bug 1405290 - Improve logging of workers when shutting down - part 3 - WorkerHolder with names, r=asuth 2017-11-15 07:58:38 +01:00
encoding
events Merge inbound to mozilla-central a=merge r=merge 2017-11-28 11:50:57 +02:00
fetch Bug 1419382 - Moving ownership of nsIInputStream when using netUtil functions - part 3 - NS_NewInputStreamPump, r=smaug 2017-11-22 11:18:57 +01:00
file Bug 1420223 - createImageBitmap must work with nsIAsyncInputStream - part 1 - tests, r=aosmond 2017-11-27 17:05:56 +01:00
filehandle
filesystem
gamepad Bug 1419597 - Part 18: Remove IsInnerWindow and IsOuterWindow methods, r=smaug 2017-11-23 13:12:13 -05:00
geolocation Bug 1414974 - Part 2: Switch many consumers to nsGlobalWindow{Inner,Outer}, r=smaug 2017-11-09 10:44:47 -05:00
grid
html Backed out 3 changesets (bug 1415478) for frequently asserting in own test test_autoplay_policy.html at MediaDecoderStateMachine.cpp:989. r=backout 2017-11-27 19:57:34 +02:00
imptests
indexedDB Bug 1394671 - Disable test browser_perwindow_privateBrowsing.js on linux/debug for frequent intermittent leaks; r=me,test-only 2017-11-16 09:11:13 -07:00
interfaces Bug 1419597 - Part 17: Avoid implementing *OpenerForInitialContentBrowser on the inner, r=smaug 2017-11-23 13:12:11 -05:00
ipc Merge mozilla-central to mozilla-autoland. r=merge a=merge on a CLOSED TREE 2017-11-28 00:09:08 +02:00
jsurl Bug 1419382 - Moving ownership of nsIInputStream when using netUtil functions - part 1 - NS_NewInputStreamChannelInternal, r=smaug 2017-11-22 11:18:18 +01:00
locales Bug 691151. Remove Event.getPreventDefault. r=smaug 2017-11-15 12:23:58 -05:00
manifest Bug 1414340 part 1 - Remove non-standard array/generator comprehensions from browser code. r=mossop 2017-11-10 11:52:22 +01:00
mathml Bug 1415352: Part 1a - Pass subject principal through to ParseAttribute. r=bz 2017-11-01 20:35:52 -07:00
media Bug 1259293 - Remove -wd4312 which was needed with VS2015 - r=jwwang 2017-11-29 12:18:09 +11:00
messagechannel Bug 1419597 - Part 18: Remove IsInnerWindow and IsOuterWindow methods, r=smaug 2017-11-23 13:12:13 -05:00
network Bug 1419597 - Part 18: Remove IsInnerWindow and IsOuterWindow methods, r=smaug 2017-11-23 13:12:13 -05:00
notification Bug 1405290 - Improve logging of workers when shutting down - part 3 - WorkerHolder with names, r=asuth 2017-11-15 07:58:38 +01:00
offline
payments
performance Bug 1419597 - Part 18: Remove IsInnerWindow and IsOuterWindow methods, r=smaug 2017-11-23 13:12:13 -05:00
permission
plugins Bug 1420922: Remove orphaned TARGET_SANDBOX_EXPORTS defines. r=dmajor 2017-11-27 16:07:15 +00:00
power Bug 1369194 - Remove MozWakeLock. r=baku 2017-11-20 17:14:41 -08:00
presentation Bug 1414974 - Part 3: Move Get{Inner,Outer}WindowWithId onto the specific subclasses, r=smaug 2017-11-09 10:44:47 -05:00
promise Bug 1414974 - Part 2: Switch many consumers to nsGlobalWindow{Inner,Outer}, r=smaug 2017-11-09 10:44:47 -05:00
push
quota
res
script Bug 1417895 part 2 - Use a ValidJSVersion enum instead of JSVersion in script loader. r=bz 2017-11-18 23:16:09 +01:00
secureelement
security Bug 1190623 - Add a pref to consider object sub requests as active. r=tanvi, r=ckerschb 2017-11-11 01:15:06 +00:00
smil Bug 1415352: Part 2 - Exempt inline CSS from extension principals from CSP. r=bz 2017-11-05 12:19:34 -08:00
storage Bug 1419597 - Part 12: Move storage pref enabled check into a static method on dom::Storage, r=asuth 2017-11-23 13:12:03 -05:00
svg Bug 1415352: Part 1b - Store the subject principal when parsing style attributes. r=bz 2017-11-02 13:36:14 -07:00
system Bug 1416174 - part 4 - OSFileConstants should use UniquePtr instead of nsAutoPtr, r=smaug 2017-11-10 19:37:13 +01:00
tests Bug 1290948 - Part 9: Add RTCRtpTransceiver to test_interfaces.js r+smaug r=smaug 2017-11-14 17:29:54 -06:00
time
u2f Bug 1412408 - Fix content process leak of U2FTransactionChild instances r=jcj 2017-11-02 12:18:19 +01:00
url
vr Bug 1419597 - Part 18: Remove IsInnerWindow and IsOuterWindow methods, r=smaug 2017-11-23 13:12:13 -05:00
webauthn Bug 1419685 - [u2f-hid-rs] Implement per-device threads on Windows, remove KeyHandleMatcher r=jcj 2017-11-22 10:13:49 +01:00
webbrowserpersist Bug 1415677 part 6. Remove nsIDOMHTMLCollection. r=qdot 2017-11-13 10:41:33 -05:00
webidl Bug 1290948 - Part 2: webidl for RTCRtpTransceiver and supporting interfaces r+jib, r+ehsan r=ehsan+251051,jib 2017-08-23 15:47:54 -05:00
websocket Bug 1419597 - Part 18: Remove IsInnerWindow and IsOuterWindow methods, r=smaug 2017-11-23 13:12:13 -05:00
workers Bug 1419166 - Use nsIPrincipal to decide if a SharedWorker should be shared, r=bkelly 2017-11-27 17:07:39 +01:00
worklet Bug 1419382 - Moving ownership of nsIInputStream when using netUtil functions - part 3 - NS_NewInputStreamPump, r=smaug 2017-11-22 11:18:57 +01:00
xbl Merge inbound to mozilla-central a=merge r=merge 2017-11-28 11:50:57 +02:00
xhr Bug 1419597 - Part 18: Remove IsInnerWindow and IsOuterWindow methods, r=smaug 2017-11-23 13:12:13 -05:00
xml Bug 1415541 - No need to destroy frames if Destroy was called on the shell. r=bz 2017-11-16 18:58:29 +01:00
xslt Bug 949990 - XPath: "Assertion failure: isNode() || isIterator() || isSnapshot()", throw NOT_SUPPORTED_ERR if an invalid value is passed in. r=bz. 2017-11-07 14:17:38 +01:00
xul Bug 1419597 - Part 17: Avoid implementing *OpenerForInitialContentBrowser on the inner, r=smaug 2017-11-23 13:12:11 -05:00
jar.mn
moz.build Bug 1374574 - Remove the FlyWeb service and DOM interfaces. r=bz,djvj 2017-11-22 15:00:10 +01:00