mirror of
https://github.com/servo/servo.git
synced 2025-10-08 20:49:24 +01:00
This removes nsStyleImageRequest by moving the load state to LoadData instead (where other lazy state like the resolved URL and load id lives). That way we can use cbindgen for more stuff (there's no blocker for using it for all images now), and we can undo the image tracking shenanigans that I had to do in bug 1605803 in nsImageFrame. This removes the mDocGroup member because well, there's no real upside of that now that quantum DOM is not a thing. It also removes the static clones of the image requests, and the need for each computed value instance to have its own request. These were needed because we needed the image loader for the particular document to observe the image changes. But we were also tracking the request -> loader for other purposes. Instead, Now all the images get loaded with GlobalImageObserver as a listener, which looks in the image map and forwards the notification to all the interested loaders instead dynamically. The style value is only responsible to load the image, and no longer tracks / locks it. Instead, the loader does so, via the image tracker. Differential Revision: https://phabricator.services.mozilla.com/D58519 |
||
---|---|---|
.. | ||
arc_types.rs | ||
boxed_types.rs | ||
conversions.rs | ||
data.rs | ||
media_features.rs | ||
media_queries.rs | ||
mod.rs | ||
non_ts_pseudo_class_list.rs | ||
profiler.rs | ||
pseudo_element.rs | ||
pseudo_element_definition.mako.rs | ||
regen_atoms.py | ||
restyle_damage.rs | ||
selector_parser.rs | ||
snapshot.rs | ||
snapshot_helpers.rs | ||
traversal.rs | ||
url.rs | ||
values.rs | ||
wrapper.rs |