mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update selectors to 0.17
This commit is contained in:
parent
c48a326fb3
commit
55b2c5c1bd
16 changed files with 29 additions and 77 deletions
|
@ -227,8 +227,8 @@ impl<'a, E> MatchAttr for ElementWrapper<'a, E>
|
|||
impl<'a, E> Element for ElementWrapper<'a, E>
|
||||
where E: TElement,
|
||||
{
|
||||
fn match_non_ts_pseudo_class(&self, pseudo_class: NonTSPseudoClass) -> bool {
|
||||
let flag = SelectorImpl::pseudo_class_state_flag(&pseudo_class);
|
||||
fn match_non_ts_pseudo_class(&self, pseudo_class: &NonTSPseudoClass) -> bool {
|
||||
let flag = SelectorImpl::pseudo_class_state_flag(pseudo_class);
|
||||
if flag == ElementState::empty() {
|
||||
self.element.match_non_ts_pseudo_class(pseudo_class)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue