Bug 1369187: style: Add an API to fast-reject eager pseudos. r=bholley

Also, do nothing for now (we'll hook the Gecko pieces here when the time comes).

Let me know if you want to hold-off landing this.

MozReview-Commit-ID: 6PIhfp6sxk4
This commit is contained in:
Emilio Cobos Álvarez 2017-05-31 14:04:25 +02:00
parent 12de616532
commit fe74e70a2d
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 20 additions and 1 deletions

View file

@ -1106,6 +1106,10 @@ pub trait MatchMethods : TElement {
return
}
if !self.may_generate_pseudo(&pseudo, data.styles().primary.values()) {
return;
}
debug_assert!(applicable_declarations.is_empty());
// NB: We handle animation rules for ::before and ::after when
// traversing them.