mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Report memory usage from LayoutThreadData Stylist [#7038]
This commit is contained in:
parent
e551ea7322
commit
db2e10a70f
11 changed files with 133 additions and 164 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue