servo/components/script/dom
bors-servo bc44ae679f Auto merge of #9401 - glennw:raf-timing, r=jdm
Fixes additional calls to rAF.

Often, a rAF callback will request another rAF from the callback itself.

Previously, the constellation would quickly receive two messages saying
that there were no animations, and then there are animations again in the
situation above. This would make the compositor tick the new animation straight
away, causing strange fluctuations and timings in rAF callbacks.

Instead, only send the NoAnimationCallbacks message if the animation
callback queue is still empty after invoking the callbacks.

This fixes rAF timing, which now runs at the correct (vsync) framerate.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9401)
<!-- Reviewable:end -->
2016-01-28 11:18:24 +05:30
..
bindings Auto merge of #9419 - psdh:includeTypedef, r=nox 2016-01-26 22:10:57 +05:30
webidls Update HTMLFormElement.length to be of type unsigned long 2016-01-22 12:09:12 -05:00
activation.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
attr.rs Fix a bunch of clippy lints 2016-01-02 23:27:15 +01:00
blob.rs Add global default method for Reflectable trait 2016-01-11 20:23:47 -05:00
browsingcontext.rs Rename the browsercontext module. 2015-12-11 15:27:27 -05:00
canvasgradient.rs Parse currentColor as Canvas2D color 2015-11-21 11:59:19 -08:00
canvaspattern.rs Add origin-clean flag tracking for canvas 2015-12-17 11:40:38 -08:00
canvasrenderingcontext2d.rs Remove unused imports in script 2016-01-17 12:41:28 +05:30
characterdata.rs Properly propagate changes when range or trees are mutated 2015-12-25 23:35:57 +01:00
closeevent.rs task -> thread 2016-01-10 17:58:13 +09:00
comment.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
console.rs Add global default method for Reflectable trait 2016-01-11 20:23:47 -05:00
create.rs Implement HTMLDetailsElement. Fixes #9216 2016-01-20 16:15:37 +01:00
crypto.rs conversions: Add a checked version to array_buffer_view_data 2016-01-04 15:29:24 +01:00
css.rs Replaced DOMString constructor by conversion functions. 2015-11-12 17:52:59 -06:00
cssstyledeclaration.rs Invalidate node style after style property removed 2016-01-27 07:43:23 +01:00
customevent.rs Remove an unused argument to CustomEvent::init_custom_event. 2016-01-07 14:51:18 +01:00
dedicatedworkerglobalscope.rs task -> thread 2016-01-10 17:58:13 +09:00
document.rs Add comment to explain callback ordering 2016-01-27 09:25:20 +10:00
documentfragment.rs Update string_cache to 0.2. 2015-11-25 10:13:21 -06:00
documenttype.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
domexception.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
domimplementation.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
domparser.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
dompoint.rs Add DOMQuad element 2015-12-18 17:37:10 +01:00
dompointreadonly.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
domquad.rs Add global default method for Reflectable trait 2016-01-11 20:23:47 -05:00
domrect.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
domrectlist.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
domrectreadonly.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
domstringmap.rs Reduce 'match' body, remove unnecessary clone 2016-01-05 16:55:37 -08:00
domtokenlist.rs Fix a bunch of clippy lints 2016-01-02 23:27:15 +01:00
element.rs Hoist ParseErrorReporter into style and remove the dependency on msg. 2016-01-11 18:01:48 -08:00
errorevent.rs Make Event's isTrusted attribute unforgeable 2015-12-13 12:27:05 -05:00
event.rs Pass around event types as Atoms instead of Strings 2015-12-10 23:47:25 -05:00
eventdispatcher.rs Add global default method for Reflectable trait 2016-01-11 20:23:47 -05:00
eventsource.rs Silence a warning in EventSourceReadyState. 2016-01-07 09:45:12 +01:00
eventtarget.rs Add global default method for Reflectable trait 2016-01-11 20:23:47 -05:00
file.rs Remove global field from Blob 2016-01-10 21:20:31 -05:00
filelist.rs merge from master 2015-11-03 19:01:23 +09:00
filereader.rs Add global default method for Reflectable trait 2016-01-11 20:23:47 -05:00
formdata.rs Add global default method for Reflectable trait 2016-01-11 20:23:47 -05:00
htmlanchorelement.rs Use Url.join instead of UrlParser.base_url(...).parse (#9002) 2015-12-18 17:02:41 +01:00
htmlappletelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlareaelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlaudioelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlbaseelement.rs Auto merge of #8506 - nox:finish-ranges, r=dzbarsky 2015-12-26 04:08:15 +05:30
htmlbodyelement.rs Remove parsed attribute 'background' field on HTMLBodyElement 2016-01-02 16:54:38 -08:00
htmlbrelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlbuttonelement.rs Implement support for modifying the type attribute of button elements. Fixes #9091. 2015-12-30 16:04:05 -05:00
htmlcanvaselement.rs task -> thread 2016-01-10 17:58:13 +09:00
htmlcollection.rs Implement HTMLFormElement::Elements 2016-01-10 12:08:24 -05:00
htmldataelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmldatalistelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmldetailselement.rs Implement HTMLDetailsElement. Fixes #9216 2016-01-20 16:15:37 +01:00
htmldialogelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmldirectoryelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmldivelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmldlistelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlelement.rs Refactor 'listed element' logic for HTMLFieldSetElement::Elements 2016-01-09 13:22:15 -05:00
htmlembedelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlfieldsetelement.rs Refactor 'listed element' logic for HTMLFieldSetElement::Elements 2016-01-09 13:22:15 -05:00
htmlfontelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlformcontrolscollection.rs Link to tracking issue for redundant codegen getter 2016-01-11 21:42:54 -05:00
htmlformelement.rs Update HTMLFormElement.length to be of type unsigned long 2016-01-22 12:09:12 -05:00
htmlframeelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlframesetelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlheadelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlheadingelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlhrelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlhtmlelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmliframeelement.rs Make iframe's load event trigger a reflow of the enclosing window. Add a catch-all reflow for all same-origin pages sharing an event loop.a 2016-01-26 16:37:23 -05:00
htmlimageelement.rs task -> thread 2016-01-10 17:58:13 +09:00
htmlinputelement.rs Auto merge of #8983 - Manishearth:cursors, r=jdm 2016-01-11 23:21:03 +05:30
htmllabelelement.rs Fix a bunch of clippy lints 2016-01-02 23:27:15 +01:00
htmllegendelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmllielement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmllinkelement.rs move MozBrowserEvent to script_traits (+ documentation) 2016-01-13 17:48:50 +01:00
htmlmapelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlmediaelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlmetaelement.rs Fix a bunch of clippy lints 2016-01-02 23:27:15 +01:00
htmlmeterelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlmodelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlobjectelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlolistelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmloptgroupelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmloptionelement.rs Ask for reset when option is removed. 2015-12-27 21:47:13 -10:00
htmloutputelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlparagraphelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlparamelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlpreelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlprogresselement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlquoteelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlscriptelement.rs Update HTMLScriptElement::prepare to match the changed specification. 2016-01-21 11:54:41 +01:00
htmlselectelement.rs form submission for <textarea> and <select> 2015-12-30 00:27:35 -05:00
htmlsourceelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlspanelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlstyleelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmltablecaptionelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmltablecellelement.rs Fix a bunch of clippy lints 2016-01-02 23:27:15 +01:00
htmltablecolelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmltabledatacellelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmltableelement.rs Remove parsed attribute 'bgcolor' field HTMLTableElement 2015-12-31 14:15:54 -08:00
htmltableheadercellelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmltablerowelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmltablesectionelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmltemplateelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmltextareaelement.rs Relayout text input elements on blur 2016-01-03 13:18:24 +05:30
htmltimeelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmltitleelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmltrackelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlulistelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlunknownelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
htmlvideoelement.rs Remove unnecessary conversion to/from DOMString for localName. 2015-12-02 13:42:45 -08:00
imagedata.rs Remove #[allow(raw_pointer_derive)] attributes 2015-11-27 14:32:57 -05:00
keyboardevent.rs Remove unused imports in script 2016-01-17 12:41:28 +05:30
location.rs add origin to location and url api 2016-01-21 11:06:41 -08:00
macros.rs Implement HTMLDetailsElement. Fixes #9216 2016-01-20 16:15:37 +01:00
messageevent.rs Make Event's isTrusted attribute unforgeable 2015-12-13 12:27:05 -05:00
mod.rs Implement HTMLDetailsElement. Fixes #9216 2016-01-20 16:15:37 +01:00
mouseevent.rs Make Event's isTrusted attribute unforgeable 2015-12-13 12:27:05 -05:00
namednodemap.rs Update string_cache to 0.2. 2015-11-25 10:13:21 -06:00
navigator.rs more refactoring 2015-10-30 20:26:29 +09:00
navigatorinfo.rs Replaced DOMString constructor by conversion functions. 2015-11-12 17:52:59 -06:00
node.rs task -> thread 2016-01-10 17:58:13 +09:00
nodeiterator.rs Get rid of a bunch of explicit derefs 2015-11-03 19:51:46 -08:00
nodelist.rs merge from master 2015-11-03 19:01:23 +09:00
performance.rs merge from master 2015-11-03 19:01:23 +09:00
performancetiming.rs Add DOM-related performance timing properties 2015-11-13 17:51:34 -05:00
processinginstruction.rs Explicitly customise flags of new nodes where needed 2015-10-15 17:30:41 +02:00
progressevent.rs Make Event's isTrusted attribute unforgeable 2015-12-13 12:27:05 -05:00
range.rs Properly propagate changes when range or trees are mutated 2015-12-25 23:35:57 +01:00
screen.rs more refactoring 2015-10-30 20:26:29 +09:00
servohtmlparser.rs task -> thread 2016-01-10 17:58:13 +09:00
servoxmlparser.rs task -> thread 2016-01-10 17:58:13 +09:00
storage.rs Remove unused imports in script 2016-01-17 12:41:28 +05:30
storageevent.rs Make Event's isTrusted attribute unforgeable 2015-12-13 12:27:05 -05:00
testbinding.rs webidl: Add test for interface and sequence in the same union 2016-01-15 14:20:23 +01:00
testbindingproxy.rs Use DOMString::new() somewhat consistently. 2015-11-04 12:09:10 +01:00
text.rs Properly propagate changes when range or trees are mutated 2015-12-25 23:35:57 +01:00
textdecoder.rs conversion: Extrapolate array_buffer_view_data 2016-01-04 15:19:29 +01:00
textencoder.rs Replaced DOMString constructor by conversion functions. 2015-11-12 17:52:59 -06:00
touch.rs more refactoring 2015-10-30 20:26:29 +09:00
touchevent.rs Make Event's isTrusted attribute unforgeable 2015-12-13 12:27:05 -05:00
touchlist.rs merge from master 2015-11-03 19:01:23 +09:00
treewalker.rs Get rid of a bunch of explicit derefs 2015-11-03 19:51:46 -08:00
uievent.rs Make Event's isTrusted attribute unforgeable 2015-12-13 12:27:05 -05:00
url.rs add origin to location and url api 2016-01-21 11:06:41 -08:00
urlhelper.rs add origin to location and url api 2016-01-21 11:06:41 -08:00
urlsearchparams.rs Implement URLSearchParams::getAll 2016-01-15 22:40:55 +00:00
userscripts.rs Fix a bunch of clippy lints 2016-01-02 23:27:15 +01:00
validitystate.rs more refactoring 2015-10-30 20:26:29 +09:00
values.rs Consolidate magic number representing max unsigned long 2015-10-10 13:46:11 -04:00
virtualmethods.rs Implement HTMLDetailsElement. Fixes #9216 2016-01-20 16:15:37 +01:00
webglactiveinfo.rs Make DOMString a newtype around String, rather than a typedef. 2015-11-04 12:09:11 +01:00
webglbuffer.rs Issue #8738: bufferSubData and texImage2D argument sanity checks. 2015-12-26 18:56:48 +01:00
webglcontextevent.rs Make Event's isTrusted attribute unforgeable 2015-12-13 12:27:05 -05:00
webglframebuffer.rs merge from master 2015-11-03 19:01:23 +09:00
webglobject.rs more refactoring 2015-10-30 20:26:29 +09:00
webglprogram.rs webgl: Check shader compilation status on use_program. 2016-01-13 15:28:36 +01:00
webglrenderbuffer.rs merge from master 2015-11-03 19:01:23 +09:00
webglrenderingcontext.rs Remove unused imports in script 2016-01-17 12:41:28 +05:30
webglshader.rs webgl: Check shader compilation status on use_program. 2016-01-13 15:28:36 +01:00
webglshaderprecisionformat.rs more refactoring 2015-10-30 20:26:29 +09:00
webgltexture.rs webgl: Fix texturing 2015-12-03 02:53:37 +01:00
webgluniformlocation.rs webgl: Track uniformlocation's program 2016-01-13 13:41:30 +01:00
websocket.rs Auto merge of #9400 - jmr0:websocket, r=nox 2016-01-25 17:01:39 +05:30
window.rs Make iframe's load event trigger a reflow of the enclosing window. Add a catch-all reflow for all same-origin pages sharing an event loop.a 2016-01-26 16:37:23 -05:00
worker.rs Add global default method for Reflectable trait 2016-01-11 20:23:47 -05:00
workerglobalscope.rs task -> thread 2016-01-10 17:58:13 +09:00
workerlocation.rs Replaced DOMString constructor by conversion functions. 2015-11-12 17:52:59 -06:00
workernavigator.rs more refactoring 2015-10-30 20:26:29 +09:00
xmldocument.rs Implement [Unforgeable] 2015-12-02 22:15:11 +01:00
xmlhttprequest.rs Update XHR BodyInit, update extract method impl 2016-01-18 02:26:13 +05:30
xmlhttprequesteventtarget.rs Introduce trait Castable 2015-10-21 11:37:16 +02:00
xmlhttprequestupload.rs more refactoring 2015-10-30 20:26:29 +09:00