stylo: Implement ServoStyleRule::SelectorMatchesElement

This commit is contained in:
Fernando Jiménez Moreno 2017-07-04 13:13:48 +02:00
parent f380d1cfc1
commit fc8d0eeae0
3 changed files with 57 additions and 0 deletions

View file

@ -694,6 +694,11 @@ impl<'le> GeckoElement<'le> {
let node = self.as_node();
unsafe { Gecko_GetDocumentLWTheme(node.owner_doc()) }
}
/// Owner document quirks mode getter.
pub fn owner_document_quirks_mode(&self) -> QuirksMode {
self.as_node().owner_doc().mCompatMode.into()
}
}
/// Converts flags from the layout used by rust-selectors to the layout used