Report memory usage from LayoutThreadData Stylist [#7038]

This commit is contained in:
Pawel Kondzior 2016-03-19 00:52:02 -07:00
parent e551ea7322
commit db2e10a70f
11 changed files with 133 additions and 164 deletions

View file

@ -83,6 +83,7 @@ lazy_static! {
};
}
#[derive(HeapSizeOf)]
pub struct Stylist<Impl: SelectorImplExt> {
// Device that the stylist is currently evaluating against.
pub device: Device,
@ -337,6 +338,7 @@ impl<Impl: SelectorImplExt> Stylist<Impl> {
}
}
#[derive(HeapSizeOf)]
struct PerOriginSelectorMap<Impl: SelectorImpl> {
normal: SelectorMap<Vec<PropertyDeclaration>, Impl>,
important: SelectorMap<Vec<PropertyDeclaration>, Impl>,
@ -352,6 +354,7 @@ impl<Impl: SelectorImpl> PerOriginSelectorMap<Impl> {
}
}
#[derive(HeapSizeOf)]
struct PerPseudoElementSelectorMap<Impl: SelectorImpl> {
user_agent: PerOriginSelectorMap<Impl>,
author: PerOriginSelectorMap<Impl>,