Bug 1953984 - Rename servo_atoms crate to stylo_atoms (r=emilio)

This crate only exist downstream but is referenced in upstream code.

Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D241547
This commit is contained in:
Nico Burns
2025-03-15 10:50:37 +00:00
parent 3731f31428
commit 9c99aa9be3
12 changed files with 16 additions and 16 deletions

View File

@@ -38,7 +38,7 @@ servo = [
"markup5ever", "markup5ever",
"serde", "serde",
"servo_arc/servo", "servo_arc/servo",
"servo_atoms", "stylo_atoms",
"servo_config", "servo_config",
"string_cache", "string_cache",
"style_traits/servo", "style_traits/servo",
@@ -84,7 +84,7 @@ rayon-core = "1"
selectors = { path = "../selectors" } selectors = { path = "../selectors" }
serde = {version = "1.0", optional = true, features = ["derive"]} serde = {version = "1.0", optional = true, features = ["derive"]}
servo_arc = { path = "../servo_arc" } servo_arc = { path = "../servo_arc" }
servo_atoms = {path = "../atoms", optional = true} stylo_atoms = {path = "../atoms", optional = true}
servo_config = {path = "../config", optional = true} servo_config = {path = "../config", optional = true}
smallbitvec = "2.3.0" smallbitvec = "2.3.0"
smallvec = "1.0" smallvec = "1.0"

View File

@@ -34,7 +34,7 @@ use selectors::context::SelectorCaches;
#[cfg(feature = "gecko")] #[cfg(feature = "gecko")]
use servo_arc::Arc; use servo_arc::Arc;
#[cfg(feature = "servo")] #[cfg(feature = "servo")]
use servo_atoms::Atom; use stylo_atoms::Atom;
use std::fmt; use std::fmt;
use std::ops; use std::ops;
use std::time::{Duration, Instant}; use std::time::{Duration, Instant};

View File

@@ -64,7 +64,7 @@ extern crate serde;
pub use servo_arc; pub use servo_arc;
#[cfg(feature = "servo")] #[cfg(feature = "servo")]
#[macro_use] #[macro_use]
extern crate servo_atoms; extern crate stylo_atoms;
#[macro_use] #[macro_use]
extern crate static_assertions; extern crate static_assertions;
#[macro_use] #[macro_use]
@@ -155,7 +155,7 @@ pub type LocalName = crate::values::AtomIdent;
pub use crate::gecko_string_cache::Namespace; pub use crate::gecko_string_cache::Namespace;
#[cfg(feature = "servo")] #[cfg(feature = "servo")]
pub use servo_atoms::Atom; pub use stylo_atoms::Atom;
#[cfg(feature = "servo")] #[cfg(feature = "servo")]
#[allow(missing_docs)] #[allow(missing_docs)]
@@ -202,7 +202,7 @@ longhand_properties_idents!(reexport_computed_values);
#[cfg(feature = "gecko")] #[cfg(feature = "gecko")]
use crate::gecko_string_cache::WeakAtom; use crate::gecko_string_cache::WeakAtom;
#[cfg(feature = "servo")] #[cfg(feature = "servo")]
use servo_atoms::Atom as WeakAtom; use stylo_atoms::Atom as WeakAtom;
/// Extension methods for selectors::attr::CaseSensitivity /// Extension methods for selectors::attr::CaseSensitivity
pub trait CaseSensitivityExt { pub trait CaseSensitivityExt {

View File

@@ -227,7 +227,7 @@ where
/// A generic CSS `<ident>` stored as an `Atom`, for the default atom set. /// A generic CSS `<ident>` stored as an `Atom`, for the default atom set.
#[cfg(feature = "servo")] #[cfg(feature = "servo")]
pub type AtomIdent = GenericAtomIdent<servo_atoms::AtomStaticSet>; pub type AtomIdent = GenericAtomIdent<stylo_atoms::AtomStaticSet>;
#[cfg(feature = "servo")] #[cfg(feature = "servo")]
impl<Set: string_cache::StaticAtomSet> style_traits::SpecifiedValueInfo for GenericAtomIdent<Set> {} impl<Set: string_cache::StaticAtomSet> style_traits::SpecifiedValueInfo for GenericAtomIdent<Set> {}

View File

@@ -12,7 +12,7 @@ name = "style_traits"
path = "lib.rs" path = "lib.rs"
[features] [features]
servo = ["servo_atoms", "cssparser/serde", "url", "euclid/serde"] servo = ["stylo_atoms", "cssparser/serde", "url", "euclid/serde"]
gecko = ["nsstring"] gecko = ["nsstring"]
[dependencies] [dependencies]
@@ -26,7 +26,7 @@ nsstring = {path = "../../../xpcom/rust/nsstring/", optional = true}
selectors = { path = "../selectors" } selectors = { path = "../selectors" }
serde = "1.0" serde = "1.0"
servo_arc = { path = "../servo_arc" } servo_arc = { path = "../servo_arc" }
servo_atoms = { path = "../atoms", optional = true } stylo_atoms = { path = "../atoms", optional = true }
thin-vec = "0.2" thin-vec = "0.2"
to_shmem = { path = "../to_shmem" } to_shmem = { path = "../to_shmem" }
to_shmem_derive = { path = "../to_shmem_derive" } to_shmem_derive = { path = "../to_shmem_derive" }

View File

@@ -23,7 +23,7 @@ use bitflags::bitflags;
use cssparser::{CowRcStr, Token}; use cssparser::{CowRcStr, Token};
use selectors::parser::SelectorParseErrorKind; use selectors::parser::SelectorParseErrorKind;
#[cfg(feature = "servo")] #[cfg(feature = "servo")]
use servo_atoms::Atom; use stylo_atoms::Atom;
/// One hardware pixel. /// One hardware pixel.
/// ///

View File

@@ -89,7 +89,7 @@ impl SpecifiedValueInfo for String {}
impl SpecifiedValueInfo for crate::owned_str::OwnedStr {} impl SpecifiedValueInfo for crate::owned_str::OwnedStr {}
#[cfg(feature = "servo")] #[cfg(feature = "servo")]
impl SpecifiedValueInfo for ::servo_atoms::Atom {} impl SpecifiedValueInfo for ::stylo_atoms::Atom {}
#[cfg(feature = "servo")] #[cfg(feature = "servo")]
impl SpecifiedValueInfo for ::url::Url {} impl SpecifiedValueInfo for ::url::Url {}

View File

@@ -20,7 +20,7 @@ rayon = "1"
serde_json = "1.0" serde_json = "1.0"
selectors = {path = "../../../components/selectors"} selectors = {path = "../../../components/selectors"}
servo_arc = {path = "../../../components/servo_arc"} servo_arc = {path = "../../../components/servo_arc"}
servo_atoms = {path = "../../../components/atoms"} stylo_atoms = {path = "../../../components/atoms"}
servo_config = {path = "../../../components/config"} servo_config = {path = "../../../components/config"}
servo_url = {path = "../../../components/url"} servo_url = {path = "../../../components/url"}
size_of_test = {path = "../../../components/size_of_test"} size_of_test = {path = "../../../components/size_of_test"}

View File

@@ -14,7 +14,7 @@ extern crate rayon;
extern crate selectors; extern crate selectors;
extern crate serde_json; extern crate serde_json;
extern crate servo_arc; extern crate servo_arc;
extern crate servo_atoms; extern crate stylo_atoms;
extern crate servo_config; extern crate servo_config;
extern crate servo_url; extern crate servo_url;
#[macro_use] extern crate style; #[macro_use] extern crate style;

View File

@@ -3,7 +3,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
use parsing::parse; use parsing::parse;
use servo_atoms::Atom; use stylo_atoms::Atom;
use style::parser::Parse; use style::parser::Parse;
use style::properties::longhands::animation_name; use style::properties::longhands::animation_name;
use style::values::specified::AnimationIterationCount; use style::values::specified::AnimationIterationCount;

View File

@@ -8,7 +8,7 @@ use parking_lot::RwLock;
use selectors::attr::*; use selectors::attr::*;
use selectors::parser::*; use selectors::parser::*;
use servo_arc::Arc; use servo_arc::Arc;
use servo_atoms::Atom; use stylo_atoms::Atom;
use servo_config::prefs::{PrefValue, PREFS}; use servo_config::prefs::{PrefValue, PREFS};
use servo_url::ServoUrl; use servo_url::ServoUrl;
use std::borrow::ToOwned; use std::borrow::ToOwned;

View File

@@ -7,7 +7,7 @@ use euclid::Scale;
use euclid::Size2D; use euclid::Size2D;
use selectors::parser::{AncestorHashes, Selector}; use selectors::parser::{AncestorHashes, Selector};
use servo_arc::Arc; use servo_arc::Arc;
use servo_atoms::Atom; use stylo_atoms::Atom;
use style::context::QuirksMode; use style::context::QuirksMode;
use style::media_queries::{Device, MediaType}; use style::media_queries::{Device, MediaType};
use style::properties::{longhands, Importance}; use style::properties::{longhands, Importance};