style: Refactor preference stylesheet prefs to not require a pres context.

We really only have two sets of prefs, one for chrome-like documents
(stuff in chrome docshells + chrome-origin images), and one for the rest.

Differential Revision: https://phabricator.services.mozilla.com/D20946
This commit is contained in:
Emilio Cobos Álvarez 2019-03-06 21:34:30 +00:00
parent 33814a9afe
commit 4e3e4c106a
4 changed files with 20 additions and 15 deletions

View file

@ -1243,7 +1243,7 @@ impl<'le> TElement for GeckoElement<'le> {
fn owner_doc_matches_for_testing(&self, device: &Device) -> bool {
self.as_node().owner_doc().0 as *const structs::Document ==
device.pres_context().mDocument.mRawPtr
device.document() as *const _
}
fn style_attribute(&self) -> Option<ArcBorrow<Locked<PropertyDeclarationBlock>>> {