mirror of
https://github.com/servo/servo.git
synced 2025-08-29 09:08:20 +01:00
Rename script_layout_interface
to layout_api
(#37591)
Now that we are standardizing on the `_traits` crates becoming `_api` and exposing the API of the crate that they get their name from [^1], `script_layout_interface` becomes `layout_api` as it exposes the API for `layout` that is used by `script` This brings the crate in line with the naming of the other ones in `shared`. [^1]: https://servo.zulipchat.com/#narrow/channel/263398-general/topic/Organizing.20*_traits.20crates/with/396893711 Testing: This should not change any behavior and thus is covered by existing tests. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
85c849d843
commit
69ff4afa58
41 changed files with 102 additions and 113 deletions
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "script_layout_interface"
|
||||
name = "layout_api"
|
||||
version.workspace = true
|
||||
authors.workspace = true
|
||||
license.workspace = true
|
||||
|
@ -8,7 +8,7 @@ publish.workspace = true
|
|||
rust-version.workspace = true
|
||||
|
||||
[lib]
|
||||
name = "script_layout_interface"
|
||||
name = "layout_api"
|
||||
path = "lib.rs"
|
||||
|
||||
[dependencies]
|
|
@ -284,7 +284,7 @@ pub trait Layout {
|
|||
fn query_text_indext(&self, node: OpaqueNode, point: Point2D<f32>) -> Option<usize>;
|
||||
}
|
||||
|
||||
/// This trait is part of `script_layout_interface` because it depends on both `script_traits`
|
||||
/// This trait is part of `layout_api` because it depends on both `script_traits`
|
||||
/// and also `LayoutFactory` from this crate. If it was in `script_traits` there would be a
|
||||
/// circular dependency.
|
||||
pub trait ScriptThreadFactory {
|
Loading…
Add table
Add a link
Reference in a new issue