mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Reverse the dependency between selectors and malloc_size_of
This commit is contained in:
parent
0929f72709
commit
5a82a1d455
6 changed files with 11 additions and 7 deletions
|
@ -49,6 +49,7 @@ extern crate euclid;
|
|||
extern crate hashglobe;
|
||||
#[cfg(feature = "servo")]
|
||||
extern crate mozjs as js;
|
||||
extern crate selectors;
|
||||
extern crate servo_arc;
|
||||
extern crate smallbitvec;
|
||||
extern crate smallvec;
|
||||
|
@ -640,6 +641,13 @@ impl<T: MallocSizeOf, U> MallocSizeOf for euclid::TypedVector2D<T, U> {
|
|||
}
|
||||
}
|
||||
|
||||
impl MallocSizeOf for selectors::parser::AncestorHashes {
|
||||
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize {
|
||||
let selectors::parser::AncestorHashes { ref packed_hashes } = *self;
|
||||
packed_hashes.size_of(ops)
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "servo")]
|
||||
impl<Static: string_cache::StaticAtomSet> MallocSizeOf for string_cache::Atom<Static> {
|
||||
fn size_of(&self, _ops: &mut MallocSizeOfOps) -> usize {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue