mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Remove stylesheets ownership from DocumentOrShadowRoot
This commit is contained in:
parent
3bb50cc479
commit
23b92d54d4
8 changed files with 200 additions and 124 deletions
|
@ -18,6 +18,7 @@ use crate::stylist::CascadeData;
|
|||
|
||||
/// A set of author stylesheets and their computed representation, such as the
|
||||
/// ones used for ShadowRoot and XBL.
|
||||
#[derive(MallocSizeOf)]
|
||||
pub struct AuthorStyles<S>
|
||||
where
|
||||
S: StylesheetInDocument + PartialEq + 'static,
|
||||
|
@ -29,6 +30,7 @@ where
|
|||
pub data: CascadeData,
|
||||
/// The quirks mode of the last stylesheet flush, used because XBL sucks and
|
||||
/// we should really fix it, see bug 1406875.
|
||||
#[ignore_malloc_size_of = "XXX"]
|
||||
pub quirks_mode: QuirksMode,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue