mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Create a MatchingContext to group related matching args
MozReview-Commit-ID: 7XZTn7HDXrm
This commit is contained in:
parent
0388e11db2
commit
e385b81fc3
9 changed files with 91 additions and 83 deletions
|
@ -5,7 +5,7 @@
|
|||
//! Traits that nodes must implement. Breaks the otherwise-cyclic dependency between layout and
|
||||
//! style.
|
||||
|
||||
use matching::{ElementSelectorFlags, StyleRelations};
|
||||
use matching::{ElementSelectorFlags, MatchingContext};
|
||||
use parser::{AttrSelector, SelectorImpl};
|
||||
use std::ascii::AsciiExt;
|
||||
|
||||
|
@ -141,7 +141,7 @@ pub trait Element: MatchAttr + Sized {
|
|||
|
||||
fn match_non_ts_pseudo_class<F>(&self,
|
||||
pc: &<Self::Impl as SelectorImpl>::NonTSPseudoClass,
|
||||
relations: &mut StyleRelations,
|
||||
context: &mut MatchingContext,
|
||||
flags_setter: &mut F) -> bool
|
||||
where F: FnMut(&Self, ElementSelectorFlags);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue