aboutsummaryrefslogtreecommitdiffstats
path: root/components/shared/net/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* fonts: Store web fonts in the per-Layout `FontContext` (#32303)Martin Robinson2024-05-201-1/+1
| | | | | | | | | This moves mangement of web fonts to the per-Layout `FontContext`, preventing web fonts from being available in different Documents. Fixes #12920. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
* compositor: Move WebRender-ish messages and types to `webrender_traits` (#32315)Mukilan Thiyagarajan2024-05-201-43/+0
| | | | | | | | | | | | | | | | | | | | * Move WebRender related types to `webrender_traits` This refactor moves several WebRender related types from `compositing_traits`, `script_traits` and `net_traits` crates to the `webrender_traits` crate. This change also moves the `Image` type and associated function out of `net_traits` and into the `pixels` crate. Co-authored-by: Martin Robinson <mrobinson@igalia.com> Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * Move `script_traits::WebrenderIpcSender` to `webrender_traits::WebRenderScriptApi` --------- Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Move non-gfx things out of `gfx_traits` and create a `base` crate (#32296)Martin Robinson2024-05-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | For a long time, `gfx_traits` has held a lot of things unrelated to graphics and also unrelated to the `gfx` crate (which is mostly about fonts). This is a cleanup which does a few things: 1. Move non `gfx` crate things out of `gfx_traits`. This is important in order to prevent dependency cycles with a different integration between layout, script, and fonts. 2. Rename the `msg` crate to `base`. It didn't really contain anything to do with messages and instead mostly holds ids, which are used across many different crates in Servo. This new crate will hold the *rare* data types that are widely used. Details: - All BackgroundHangMonitor-related things from base to a new `background_hang_monitor_api` crate. - Moved `TraversalDirection` to `script_traits` - Moved `Epoch`-related things from `gfx_traits` to `base`. - Moved `PrintTree` to base. This should be widely useful in Servo. - Moved `WebrenderApi` from `base` to `webrender_traits` and renamed it to `WebRenderFontApi`.
* clippy: fix warnings in components/shared (#31565)eri2024-03-081-10/+10
| | | | | | | * clippy: fix some warnings in components/shared * fix: unit tests * fix: review comments
* Fix clippy warnings in `components/rand` (#31549)sandeep2024-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | * resolved clippy warnings in components/rand Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local> * replaced new() with default() Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local> * replaced ServoRng::new() with ServoRng::default() Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local> * moved the contents of the new() method into the default() method Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local> --------- Signed-off-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local> Co-authored-by: Sandeep Pillai <sandeeppillai@Sandeeps-MacBook-Air.local>
* Replace time with std::time in components/metrics & components/shared (#31020)Taym Haddadi2024-01-101-12/+19
|
* Move `*_traits` and other shared types to `shared`Martin Robinson2023-11-031-0/+859
This is the start of the organization of types that are in their own crates in order to break dependency cycles between other crates. The idea here is that putting these packages into their own directory is the first step toward cleaning them up. They have grown organically and it is difficult to explain to new folks where to put new shared types. Many of these crates contain more than traits or don't contain traits at all. Notably, `script_traits` isn't touched because it is vendored from Gecko. Eventually this will move to `third_party`.