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:
@@ -38,7 +38,7 @@ servo = [
|
||||
"markup5ever",
|
||||
"serde",
|
||||
"servo_arc/servo",
|
||||
"servo_atoms",
|
||||
"stylo_atoms",
|
||||
"servo_config",
|
||||
"string_cache",
|
||||
"style_traits/servo",
|
||||
@@ -84,7 +84,7 @@ rayon-core = "1"
|
||||
selectors = { path = "../selectors" }
|
||||
serde = {version = "1.0", optional = true, features = ["derive"]}
|
||||
servo_arc = { path = "../servo_arc" }
|
||||
servo_atoms = {path = "../atoms", optional = true}
|
||||
stylo_atoms = {path = "../atoms", optional = true}
|
||||
servo_config = {path = "../config", optional = true}
|
||||
smallbitvec = "2.3.0"
|
||||
smallvec = "1.0"
|
||||
|
||||
@@ -34,7 +34,7 @@ use selectors::context::SelectorCaches;
|
||||
#[cfg(feature = "gecko")]
|
||||
use servo_arc::Arc;
|
||||
#[cfg(feature = "servo")]
|
||||
use servo_atoms::Atom;
|
||||
use stylo_atoms::Atom;
|
||||
use std::fmt;
|
||||
use std::ops;
|
||||
use std::time::{Duration, Instant};
|
||||
|
||||
@@ -64,7 +64,7 @@ extern crate serde;
|
||||
pub use servo_arc;
|
||||
#[cfg(feature = "servo")]
|
||||
#[macro_use]
|
||||
extern crate servo_atoms;
|
||||
extern crate stylo_atoms;
|
||||
#[macro_use]
|
||||
extern crate static_assertions;
|
||||
#[macro_use]
|
||||
@@ -155,7 +155,7 @@ pub type LocalName = crate::values::AtomIdent;
|
||||
pub use crate::gecko_string_cache::Namespace;
|
||||
|
||||
#[cfg(feature = "servo")]
|
||||
pub use servo_atoms::Atom;
|
||||
pub use stylo_atoms::Atom;
|
||||
|
||||
#[cfg(feature = "servo")]
|
||||
#[allow(missing_docs)]
|
||||
@@ -202,7 +202,7 @@ longhand_properties_idents!(reexport_computed_values);
|
||||
#[cfg(feature = "gecko")]
|
||||
use crate::gecko_string_cache::WeakAtom;
|
||||
#[cfg(feature = "servo")]
|
||||
use servo_atoms::Atom as WeakAtom;
|
||||
use stylo_atoms::Atom as WeakAtom;
|
||||
|
||||
/// Extension methods for selectors::attr::CaseSensitivity
|
||||
pub trait CaseSensitivityExt {
|
||||
|
||||
@@ -227,7 +227,7 @@ where
|
||||
|
||||
/// A generic CSS `<ident>` stored as an `Atom`, for the default atom set.
|
||||
#[cfg(feature = "servo")]
|
||||
pub type AtomIdent = GenericAtomIdent<servo_atoms::AtomStaticSet>;
|
||||
pub type AtomIdent = GenericAtomIdent<stylo_atoms::AtomStaticSet>;
|
||||
|
||||
#[cfg(feature = "servo")]
|
||||
impl<Set: string_cache::StaticAtomSet> style_traits::SpecifiedValueInfo for GenericAtomIdent<Set> {}
|
||||
|
||||
@@ -12,7 +12,7 @@ name = "style_traits"
|
||||
path = "lib.rs"
|
||||
|
||||
[features]
|
||||
servo = ["servo_atoms", "cssparser/serde", "url", "euclid/serde"]
|
||||
servo = ["stylo_atoms", "cssparser/serde", "url", "euclid/serde"]
|
||||
gecko = ["nsstring"]
|
||||
|
||||
[dependencies]
|
||||
@@ -26,7 +26,7 @@ nsstring = {path = "../../../xpcom/rust/nsstring/", optional = true}
|
||||
selectors = { path = "../selectors" }
|
||||
serde = "1.0"
|
||||
servo_arc = { path = "../servo_arc" }
|
||||
servo_atoms = { path = "../atoms", optional = true }
|
||||
stylo_atoms = { path = "../atoms", optional = true }
|
||||
thin-vec = "0.2"
|
||||
to_shmem = { path = "../to_shmem" }
|
||||
to_shmem_derive = { path = "../to_shmem_derive" }
|
||||
|
||||
@@ -23,7 +23,7 @@ use bitflags::bitflags;
|
||||
use cssparser::{CowRcStr, Token};
|
||||
use selectors::parser::SelectorParseErrorKind;
|
||||
#[cfg(feature = "servo")]
|
||||
use servo_atoms::Atom;
|
||||
use stylo_atoms::Atom;
|
||||
|
||||
/// One hardware pixel.
|
||||
///
|
||||
|
||||
@@ -89,7 +89,7 @@ impl SpecifiedValueInfo for String {}
|
||||
impl SpecifiedValueInfo for crate::owned_str::OwnedStr {}
|
||||
|
||||
#[cfg(feature = "servo")]
|
||||
impl SpecifiedValueInfo for ::servo_atoms::Atom {}
|
||||
impl SpecifiedValueInfo for ::stylo_atoms::Atom {}
|
||||
#[cfg(feature = "servo")]
|
||||
impl SpecifiedValueInfo for ::url::Url {}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ rayon = "1"
|
||||
serde_json = "1.0"
|
||||
selectors = {path = "../../../components/selectors"}
|
||||
servo_arc = {path = "../../../components/servo_arc"}
|
||||
servo_atoms = {path = "../../../components/atoms"}
|
||||
stylo_atoms = {path = "../../../components/atoms"}
|
||||
servo_config = {path = "../../../components/config"}
|
||||
servo_url = {path = "../../../components/url"}
|
||||
size_of_test = {path = "../../../components/size_of_test"}
|
||||
|
||||
@@ -14,7 +14,7 @@ extern crate rayon;
|
||||
extern crate selectors;
|
||||
extern crate serde_json;
|
||||
extern crate servo_arc;
|
||||
extern crate servo_atoms;
|
||||
extern crate stylo_atoms;
|
||||
extern crate servo_config;
|
||||
extern crate servo_url;
|
||||
#[macro_use] extern crate style;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use parsing::parse;
|
||||
use servo_atoms::Atom;
|
||||
use stylo_atoms::Atom;
|
||||
use style::parser::Parse;
|
||||
use style::properties::longhands::animation_name;
|
||||
use style::values::specified::AnimationIterationCount;
|
||||
|
||||
@@ -8,7 +8,7 @@ use parking_lot::RwLock;
|
||||
use selectors::attr::*;
|
||||
use selectors::parser::*;
|
||||
use servo_arc::Arc;
|
||||
use servo_atoms::Atom;
|
||||
use stylo_atoms::Atom;
|
||||
use servo_config::prefs::{PrefValue, PREFS};
|
||||
use servo_url::ServoUrl;
|
||||
use std::borrow::ToOwned;
|
||||
|
||||
@@ -7,7 +7,7 @@ use euclid::Scale;
|
||||
use euclid::Size2D;
|
||||
use selectors::parser::{AncestorHashes, Selector};
|
||||
use servo_arc::Arc;
|
||||
use servo_atoms::Atom;
|
||||
use stylo_atoms::Atom;
|
||||
use style::context::QuirksMode;
|
||||
use style::media_queries::{Device, MediaType};
|
||||
use style::properties::{longhands, Importance};
|
||||
|
||||
Reference in New Issue
Block a user