servo/components/layout
bors-servo 854d720b21 Auto merge of #14962 - jdm:image_script_load, r=Ms2ger,glennw,emilio
Remove network requests from image cache thread

The design of initiating network requests from the image cache thread was simple, but it makes it difficult to implement image loading that conforms to the HTML specification. These changes make the implementation of HTMLImageElement responsible for network requests for `<img>` elements, and CSS-based images (background-image, bullets, etc.) are requested by the script thread to ensure that the layout thread does not attempt to retain unsafe pointers to DOM nodes during asynchronous operations.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #7708
- [X] There are tests for these changes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14962)
<!-- Reviewable:end -->
2017-02-22 17:50:48 -08:00
..
animation.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
block.rs Update serde to 0.9 (fixes #15325) 2017-02-18 21:09:46 +01:00
Cargo.toml Kill the plugins crate and its clippy support 2017-02-21 11:50:36 +01:00
construct.rs Make script thread initiate requests for images needed by layout. 2017-02-22 14:19:35 -05:00
context.rs Avoid dropping image requests on the ground from non-script-initiated reflow. 2017-02-22 14:19:35 -05:00
data.rs Bug 1325734 - Remove Servo Layout's dependency on the initial-ness of the style. r=emilio 2017-01-09 11:51:36 -08:00
display_list_builder.rs Make script thread initiate requests for images needed by layout. 2017-02-22 14:19:35 -05:00
flex.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
floats.rs Migrated -Z trace-layout to serde_json 2016-11-07 15:54:07 +08:00
flow.rs Update serde to 0.9 (fixes #15325) 2017-02-18 21:09:46 +01:00
flow_list.rs Update serde to 0.9 (fixes #15325) 2017-02-18 21:09:46 +01:00
flow_ref.rs Migrated -Z trace-layout to serde_json 2016-11-07 15:54:07 +08:00
fragment.rs Make script thread initiate requests for images needed by layout. 2017-02-22 14:19:35 -05:00
generated_content.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
incremental.rs Make Restyle tracking more granular. 2016-12-09 14:46:40 -10:00
inline.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
layout_debug.rs Update serde to 0.9 (fixes #15325) 2017-02-18 21:09:46 +01:00
lib.rs Kill the plugins crate and its clippy support 2017-02-21 11:50:36 +01:00
linked_list.rs Move util::linked_list to layout 2016-06-29 17:23:04 +02:00
list_item.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
model.rs Activate flexbox layout tracing 2016-12-28 15:31:45 +08:00
multicol.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
opaque_node.rs Introduce LayoutJS<Node>::opaque() to replace OpaqueNodeMethods::from_jsmanaged(). 2016-06-20 19:08:02 +02:00
parallel.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
persistent_list.rs Move util::persistent_list to layout 2016-02-20 19:20:38 +01:00
query.rs Make script thread initiate requests for images needed by layout. 2017-02-22 14:19:35 -05:00
sequential.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
table.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
table_caption.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
table_cell.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
table_colgroup.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
table_row.rs Update serde to 0.9 (fixes #15325) 2017-02-18 21:09:46 +01:00
table_rowgroup.rs Update serde to 0.9 (fixes #15325) 2017-02-18 21:09:46 +01:00
table_wrapper.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
text.rs Convert text-orientation to a Gecko-only property 2017-01-27 21:12:38 -08:00
traversal.rs Remove cached thread local context from LayoutContext 2017-02-08 08:47:54 +08:00
webrender_helpers.rs Update WR (inset box shadow fix, border-image support). 2017-02-22 16:12:21 +10:00
wrapper.rs Bug 1325734 - Simplify ElementData and eliminate the concept of consuming styles. r=emilio 2017-01-09 11:51:37 -08:00