servo/components/script/dom/bindings
Josh Matthews c890c9143c Make script thread initiate requests for images needed by layout.
In support of this goal, the layout thread collects information about
CSS images that are missing image data and hands it off to the script
thread after layout completes. The script thread stores a list of
nodes that will need to be reflowed after the associated network
request is complete. The script thread ensures that the nodes are
not GCed while a request is ongoing, which the layout thread is
incapable of guaranteeing.

The image cache's API has also been redesigned in support of this
work. No network requests are made by the new image cache, since it
does not possess the document-specific information necessary to
initiate them. Instead, there is now a single, synchronous
query operation that optionally reserves a slot when a cache
entry for a URL cannot be found. This reserved slot is then
the responsibility of the queryer to populate with the contents
of the network response for the URL once it is complete. Any
subsequent queries for the same URL will be informed that the
response is pending until that occurs.

The changes to layout also remove the synchronous image loading
code path, which means that reftests now test the same code
that non-test binaries execute. The decision to take a screenshot
now considers whether there are any outstanding image
requests for layout in order to avoid intermittent failures in
reftests that use CSS images.
2017-02-22 14:19:35 -05:00
..
codegen Auto merge of #15659 - gregkatz:eliminate_transmute_find_enum, r=Ms2ger 2017-02-21 04:28:32 -08:00
callback.rs Don't try to get the global of an object while it's being destroyed. 2017-01-19 10:08:48 +01:00
cell.rs Introduce PendingScript 2017-01-11 17:37:19 +01:00
constant.rs Remove and allow some dead code. 2016-12-22 16:06:22 +01:00
conversions.rs The ArrayBufferViewContents trait was removed 2017-02-19 21:01:56 +03:00
error.rs Don't return early from report_pending_exception() if the value is an unexpected object. 2016-11-27 10:27:11 +01:00
guard.rs Removed util. 2016-12-14 18:04:37 -06:00
inheritance.rs Rename Reflectable to DomObject. 2016-12-08 08:50:35 -10:00
interface.rs Update js, AGAIN 2016-11-27 12:19:19 +01:00
iterable.rs Use Heap for dictionary and union members. 2017-02-16 11:03:21 +01:00
js.rs Implement JSTraceable for more types. 2017-02-16 11:03:22 +01:00
mod.rs Implement the entry global. 2017-01-06 12:56:35 +01:00
mozmap.rs Implement JSTraceable for more types. 2017-02-16 11:03:22 +01:00
namespace.rs Implement WebIDL namespaces 2016-09-08 11:01:34 +02:00
num.rs Use heapsize_derive instead of heapsize_plugin 2016-11-03 01:10:32 +01:00
proxyhandler.rs Make {get,ensure}_expando_object unsafe. 2017-02-07 11:44:38 +01:00
refcounted.rs Rename Reflectable to DomObject. 2016-12-08 08:50:35 -10:00
reflector.rs Replace inheritance_integrity by trait shenanigans 2017-02-15 22:11:20 +01:00
settings_stack.rs Perform a microtask checkpoint after executing classic scripts and callbacks. 2017-02-01 12:54:33 -05:00
str.rs Implement document.open and document.close (fixes #14591) 2017-02-03 16:50:12 +01:00
structuredclone.rs Make StructuredCloneData::read take a &GlobalScope 2016-10-06 21:35:40 +02:00
trace.rs Make script thread initiate requests for images needed by layout. 2017-02-22 14:19:35 -05:00
utils.rs Eliminate a mem::transmute in CodeGen 2017-02-20 12:24:45 -05:00
weakref.rs squash: convert less interesting debug! logs to traces 2017-01-18 22:21:41 -07:00
xmlname.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00