diff options
author | Martin Robinson <mrobinson@igalia.com> | 2024-06-19 22:26:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-19 20:26:19 +0000 |
commit | cd2ab36759dc58acdeb2b8321c38b7345b524a63 (patch) | |
tree | 30b940ca93f61d937f719c214d66f22374c90b2f /components/shared/script_layout | |
parent | 9f8118abc7fd9aba49e422cf13b5243e3b582fdc (diff) | |
download | servo-cd2ab36759dc58acdeb2b8321c38b7345b524a63.tar.gz servo-cd2ab36759dc58acdeb2b8321c38b7345b524a63.zip |
Rename `gfx` to `fonts` (#32556)
This crate only takes care of fonts now as graphics related things are
split into other crates. In addition, this exposes data structures at
the top of the crate, hiding the implementation details and making it
simpler to import them.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
Diffstat (limited to 'components/shared/script_layout')
-rw-r--r-- | components/shared/script_layout/Cargo.toml | 4 | ||||
-rw-r--r-- | components/shared/script_layout/lib.rs | 2 | ||||
-rw-r--r-- | components/shared/script_layout/wrapper_traits.rs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/components/shared/script_layout/Cargo.toml b/components/shared/script_layout/Cargo.toml index f4e310510ee..922df1ba324 100644 --- a/components/shared/script_layout/Cargo.toml +++ b/components/shared/script_layout/Cargo.toml @@ -17,8 +17,8 @@ atomic_refcell = { workspace = true } canvas_traits = { workspace = true } crossbeam-channel = { workspace = true } euclid = { workspace = true } -gfx = { path = "../../gfx" } -gfx_traits = { workspace = true } +fonts = { path = "../../fonts" } +fonts_traits = { workspace = true } html5ever = { workspace = true } ipc-channel = { workspace = true } libc = { workspace = true } diff --git a/components/shared/script_layout/lib.rs b/components/shared/script_layout/lib.rs index baf885e3524..bb9099e8b45 100644 --- a/components/shared/script_layout/lib.rs +++ b/components/shared/script_layout/lib.rs @@ -23,7 +23,7 @@ use canvas_traits::canvas::{CanvasId, CanvasMsg}; use crossbeam_channel::Sender; use euclid::default::{Point2D, Rect}; use euclid::Size2D; -use gfx::font_cache_thread::FontCacheThread; +use fonts::FontCacheThread; use ipc_channel::ipc::IpcSender; use libc::c_void; use malloc_size_of_derive::MallocSizeOf; diff --git a/components/shared/script_layout/wrapper_traits.rs b/components/shared/script_layout/wrapper_traits.rs index fe3fc69f47e..5c8da0315b4 100644 --- a/components/shared/script_layout/wrapper_traits.rs +++ b/components/shared/script_layout/wrapper_traits.rs @@ -10,7 +10,7 @@ use std::sync::Arc as StdArc; use atomic_refcell::AtomicRef; use base::id::{BrowsingContextId, PipelineId}; -use gfx_traits::ByteIndex; +use fonts_traits::ByteIndex; use html5ever::{local_name, namespace_url, ns, LocalName, Namespace}; use pixels::{Image, ImageMetadata}; use range::Range; |