mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
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:
parent
33814a9afe
commit
4e3e4c106a
4 changed files with 20 additions and 15 deletions
|
@ -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>>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue