Remove stylesheets ownership from DocumentOrShadowRoot

This commit is contained in:
Fernando Jiménez Moreno 2019-02-08 19:57:00 +01:00
parent 3bb50cc479
commit 23b92d54d4
8 changed files with 200 additions and 124 deletions

View file

@ -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,
}