style: Introduce AuthorStyleSheetSet.

MozReview-Commit-ID: K3ciocPJuz3
This commit is contained in:
Emilio Cobos Álvarez 2018-02-08 16:03:47 +01:00
parent 5e8dd8a2d4
commit 7edd25890d
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -587,3 +587,29 @@ where
}
}
}
/// The set of stylesheets effective for a given XBL binding or Shadow Root.
pub struct AuthorStylesheetSet<S>
where
S: StylesheetInDocument + PartialEq + 'static,
{
/// The actual style sheets.
collection: SheetCollection<S>,
/// The set of invalidations scheduled for this collection.
invalidations: StylesheetInvalidationSet,
}
impl<S> AuthorStylesheetSet<S>
where
S: StylesheetInDocument + PartialEq + 'static,
{
fn collection_for(
&mut self,
_sheet: &S,
_guard: &SharedRwLockReadGuard,
) -> &mut SheetCollection<S> {
&mut self.collection
}
sheet_set_methods!("AuthorStylesheetSet");
}