mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
* Simpler image cache API for clients to use. * Significantly fewer threads. * One thread for image cache task (multiplexes commands, decoder threads and async resource requests). * 4 threads for decoder worker tasks. * Removed ReflowEvent hacks in script and layout tasks. * Image elements pass a Trusted<T> to image cache, which is used to dirty nodes via script task. Previous use of Untrusted addresses was unsafe. * Image requests such as background-image on layout / paint threads trigger repaint only rather than full reflow. * Add reflow batching for when multiple images load quickly. * Reduces the number of paints loading wikipedia from ~95 to ~35. * Reasonably simple to add proper prefetch support in a follow up PR. * Async loaded images always construct Image fragments now, instead of generic. * Image fragments support the image not being present. * Simpler implementation of synchronous image loading for reftests. * Removed image holder. * image.onload support. * image NaturalWidth and NaturalHeight support. * Updated WPT expectations.
16 lines
481 B
Rust
16 lines
481 B
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#![cfg_attr(test, feature(net, alloc, path, io))]
|
|
|
|
extern crate net;
|
|
extern crate net_traits;
|
|
extern crate profile;
|
|
extern crate url;
|
|
extern crate util;
|
|
|
|
#[cfg(test)] mod cookie;
|
|
#[cfg(test)] mod data_loader;
|
|
#[cfg(test)] mod mime_classifier;
|
|
#[cfg(test)] mod resource_task;
|