mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
net: Don't load the placeholder image for background images, only for
image fragments. This also changes the way the placeholder is handled in the image cache task to decode it up front instead of each time an image fails to load, both because it was more convenient to implement that way and because it saves CPU cycles to do so. This matches the behavior of Gecko and WebKit. It improves the look of our cached copy of Wikipedia.
This commit is contained in:
parent
e52197d126
commit
7e7675c1dc
11 changed files with 135 additions and 38 deletions
|
@ -799,7 +799,7 @@ impl ScriptTask {
|
|||
}
|
||||
|
||||
fn handle_msg_from_image_cache(&self, msg: ImageCacheResult) {
|
||||
msg.responder.unwrap().respond(msg.image);
|
||||
msg.responder.unwrap().respond(msg.image_response);
|
||||
}
|
||||
|
||||
fn handle_webdriver_msg(&self, pipeline_id: PipelineId, msg: WebDriverScriptCommand) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue