aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_plugins
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite the ban-type lint in PythonJefry Lagrange2017-02-252-55/+0
| | | | | | Delete old rust ban lint and move tests to python tidy Fix ban lint regex and fix test
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-242-34/+1
|
* Make script thread initiate requests for images needed by layout.Josh Matthews2017-02-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Move script lints to script_pluginsAnthony Ramine2017-02-166-0/+439
The plugins crate now just allows to hook into clippy from a single crate.