servo/components/style/gecko
Emilio Cobos Álvarez 97382a2c41
style: Remove nsStyleImageRequest.
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
2020-02-12 02:43:20 +01:00
..
arc_types.rs style: Use ArcSlice for quotes. 2019-05-29 16:14:10 +02:00
boxed_types.rs Implement Animation.commitStyles. 2019-05-29 16:14:16 +02:00
conversions.rs style: Remove nsStyleImageRequest. 2020-02-12 02:43:20 +01:00
data.rs style: Remove support for XBL resources. 2019-05-07 12:55:29 +02:00
media_features.rs style: Hide -moz-touch-enabled media query in Nightly and Early Beta. 2019-11-04 13:36:32 +01:00
media_queries.rs style: Do not ignore color: transparent in high contrast mode. 2020-02-12 02:43:11 +01:00
mod.rs style: Remove nsCSSValue bindings. 2019-05-29 16:14:14 +02:00
non_ts_pseudo_class_list.rs style: Remove full-screen-api.unprefix.enabled. 2019-12-16 14:23:56 +01:00
profiler.rs Stylo: replace uses of mem::uninitialized with MaybeUninit 2019-07-16 08:03:54 +02:00
pseudo_element.rs style: Fix cascade order of shadow parts. 2019-11-30 20:44:58 +01:00
pseudo_element_definition.mako.rs Cherry-pick some parts of the cssparser update. 2019-12-16 14:23:56 +01:00
regen_atoms.py style: Make Rust static atoms able to be used in const contexts. 2019-11-30 20:45:06 +01:00
restyle_damage.rs style: Simplify a bit our generated bindings by getting rid of FooBorrowed and FooBorrowedMut. 2019-03-27 14:29:19 +01:00
selector_parser.rs Cherry-pick some parts of the cssparser update. 2019-12-16 14:23:56 +01:00
snapshot.rs style: Refactor InvalidationMap flags to use bitflags. 2019-12-15 21:03:38 +01:00
snapshot_helpers.rs style: Rustfmt recent changes. 2019-11-30 20:45:07 +01:00
traversal.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
url.rs style: Remove nsStyleImageRequest. 2020-02-12 02:43:20 +01:00
values.rs style: Use cbindgen for content property. 2020-02-12 02:43:08 +01:00
wrapper.rs style: Remove font-size calc() hack to propagate keyword information. 2020-02-12 02:43:14 +01:00