mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
style: Support matching :-moz-browser-frame and :-moz-table-border-nonzero against snapshots.
This commit is contained in:
parent
90b3691f82
commit
17e5c19d70
4 changed files with 42 additions and 2 deletions
|
@ -55,6 +55,13 @@ impl GeckoElementSnapshot {
|
|||
self
|
||||
}
|
||||
|
||||
/// Returns true if the snapshot has stored state for pseudo-classes
|
||||
/// that depend on things other than `ElementState`.
|
||||
#[inline]
|
||||
pub fn has_other_pseudo_class_state(&self) -> bool {
|
||||
self.has_any(Flags::OtherPseudoClassState)
|
||||
}
|
||||
|
||||
/// selectors::Element::attr_matches
|
||||
pub fn attr_matches(&self,
|
||||
ns: &NamespaceConstraint<&Namespace>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue