mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Move lru_cache to its own crate.
One less crate pointlessly in components/.
This commit is contained in:
parent
d117694ecc
commit
47b02658ec
7 changed files with 14 additions and 263 deletions
|
@ -45,7 +45,6 @@ html5ever = {version = "0.21", optional = true}
|
|||
itertools = "0.5"
|
||||
itoa = "0.3"
|
||||
lazy_static = "0.2"
|
||||
lru_cache = { path = "../lru_cache" }
|
||||
log = "0.3"
|
||||
malloc_size_of = { path = "../malloc_size_of" }
|
||||
malloc_size_of_derive = { path = "../malloc_size_of_derive" }
|
||||
|
@ -70,6 +69,7 @@ style_derive = {path = "../style_derive"}
|
|||
style_traits = {path = "../style_traits"}
|
||||
servo_url = {path = "../url", optional = true}
|
||||
time = "0.1"
|
||||
uluru = "0.1"
|
||||
unicode-bidi = "0.3"
|
||||
unicode-segmentation = "1.0"
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ use euclid::ScaleFactor;
|
|||
use euclid::Size2D;
|
||||
use fnv::FnvHashMap;
|
||||
use font_metrics::FontMetricsProvider;
|
||||
use lru_cache::{Entry, LRUCache};
|
||||
#[cfg(feature = "gecko")] use gecko_bindings::structs;
|
||||
use parallel::{STACK_SAFETY_MARGIN_KB, STYLE_THREAD_STACK_SIZE_KB};
|
||||
#[cfg(feature = "servo")] use parking_lot::RwLock;
|
||||
|
@ -42,6 +41,7 @@ use time;
|
|||
use timer::Timer;
|
||||
use traversal::DomTraversal;
|
||||
use traversal_flags::TraversalFlags;
|
||||
use uluru::{Entry, LRUCache};
|
||||
|
||||
pub use selectors::matching::QuirksMode;
|
||||
|
||||
|
|
|
@ -57,7 +57,6 @@ extern crate itoa;
|
|||
extern crate lazy_static;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
extern crate lru_cache;
|
||||
#[macro_use] extern crate malloc_size_of;
|
||||
#[macro_use] extern crate malloc_size_of_derive;
|
||||
#[allow(unused_extern_crates)]
|
||||
|
@ -86,6 +85,7 @@ extern crate style_derive;
|
|||
#[macro_use]
|
||||
extern crate style_traits;
|
||||
extern crate time;
|
||||
extern crate uluru;
|
||||
extern crate unicode_bidi;
|
||||
#[allow(unused_extern_crates)]
|
||||
extern crate unicode_segmentation;
|
||||
|
|
|
@ -70,7 +70,6 @@ use atomic_refcell::{AtomicRefCell, AtomicRefMut};
|
|||
use bloom::StyleBloom;
|
||||
use context::{SelectorFlagsMap, SharedStyleContext, StyleContext};
|
||||
use dom::{TElement, SendElement};
|
||||
use lru_cache::{LRUCache, Entry};
|
||||
use matching::MatchMethods;
|
||||
use owning_ref::OwningHandle;
|
||||
use properties::ComputedValues;
|
||||
|
@ -85,6 +84,7 @@ use std::mem;
|
|||
use std::ops::Deref;
|
||||
use style_resolver::{PrimaryStyle, ResolvedElementStyles};
|
||||
use stylist::Stylist;
|
||||
use uluru::{LRUCache, Entry};
|
||||
|
||||
mod checks;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue