mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
style: Add a way to match a single compound selector.
Also improve the ergonomics of matches_complex_selector. Bug: 1368240 MozReview-Commit-ID: 9DWDvyZmetM
This commit is contained in:
parent
262f6adc30
commit
151b636562
3 changed files with 91 additions and 17 deletions
|
@ -1547,7 +1547,7 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
|
|||
let old_value = context.within_functional_pseudo_class_argument;
|
||||
context.within_functional_pseudo_class_argument = true;
|
||||
let result = sels.iter().any(|s| {
|
||||
matches_complex_selector(s, 0, self, context, flags_setter)
|
||||
matches_complex_selector(s.iter(), self, context, flags_setter)
|
||||
});
|
||||
context.within_functional_pseudo_class_argument = old_value;
|
||||
result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue