mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Eliminate servo_util::atom
We only needed this for Encodable, and now we use JSTraceable instead.
This commit is contained in:
parent
4be0a07585
commit
6429750b33
39 changed files with 77 additions and 74 deletions
|
@ -29,3 +29,9 @@ git = "https://github.com/lifthrasiir/rust-encoding"
|
|||
|
||||
[dependencies.lazy_static]
|
||||
git = "https://github.com/Kimundi/lazy-static.rs"
|
||||
|
||||
[dependencies.string_cache]
|
||||
git = "https://github.com/servo/string-cache"
|
||||
|
||||
[dependencies.string_cache_macros]
|
||||
git = "https://github.com/servo/string-cache"
|
||||
|
|
|
@ -22,6 +22,11 @@ extern crate url;
|
|||
|
||||
extern crate cssparser;
|
||||
extern crate encoding;
|
||||
extern crate string_cache;
|
||||
|
||||
#[phase(plugin)]
|
||||
extern crate string_cache_macros;
|
||||
|
||||
#[phase(plugin)]
|
||||
extern crate lazy_static;
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
//! style.
|
||||
|
||||
use selectors::AttrSelector;
|
||||
use servo_util::atom::Atom;
|
||||
use servo_util::namespace::Namespace;
|
||||
use string_cache::Atom;
|
||||
|
||||
|
||||
pub trait TNode<'a, E: TElement<'a>> : Clone {
|
||||
|
|
|
@ -9,11 +9,11 @@ use sync::Arc;
|
|||
|
||||
use url::Url;
|
||||
|
||||
use servo_util::atom::Atom;
|
||||
use servo_util::bloom::BloomFilter;
|
||||
use servo_util::namespace;
|
||||
use servo_util::smallvec::VecLike;
|
||||
use servo_util::sort;
|
||||
use string_cache::Atom;
|
||||
|
||||
use media_queries::{Device, Screen};
|
||||
use node::{TElement, TNode};
|
||||
|
@ -997,7 +997,6 @@ impl<K: Eq + Hash, V> FindPush<K, V> for HashMap<K, Vec<V>> {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use servo_util::atom::Atom;
|
||||
use sync::Arc;
|
||||
use super::{DeclarationBlock, Rule, SelectorMap};
|
||||
use selectors::LocalName;
|
||||
|
|
|
@ -9,9 +9,9 @@ use sync::Arc;
|
|||
use cssparser::ast::*;
|
||||
use cssparser::{tokenize, parse_nth};
|
||||
|
||||
use servo_util::atom::Atom;
|
||||
use servo_util::namespace::Namespace;
|
||||
use servo_util::namespace;
|
||||
use string_cache::Atom;
|
||||
|
||||
use namespaces::NamespaceMap;
|
||||
|
||||
|
@ -575,7 +575,6 @@ fn skip_whitespace<I: Iterator<ComponentValue>>(iter: &mut Iter<I>) -> bool {
|
|||
mod tests {
|
||||
use sync::Arc;
|
||||
use cssparser;
|
||||
use servo_util::atom::Atom;
|
||||
use servo_util::namespace;
|
||||
use namespaces::NamespaceMap;
|
||||
use super::*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue