mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
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:
parent
12de616532
commit
fe74e70a2d
2 changed files with 20 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue