mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Match eager pseudos after the primary cascade.
This is necessary in order to make the computation of eager pseudos depend on the primary ComputedValues, which we want to do for ::first-letter/::first-line. This also fixes a bug where the behavior of EagerPseudoStyles::is_empty was reversed in both the implementation and the callsite. MozReview-Commit-ID: EXBxclyHWXu
This commit is contained in:
parent
19743a67ba
commit
8acb4ed87c
3 changed files with 132 additions and 83 deletions
|
@ -80,7 +80,7 @@ pub struct EagerPseudoStyles(Option<Box<[Option<ComputedStyle>]>>);
|
|||
impl EagerPseudoStyles {
|
||||
/// Returns whether there are any pseudo styles.
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.0.is_some()
|
||||
self.0.is_none()
|
||||
}
|
||||
|
||||
/// Returns a reference to the style for a given eager pseudo, if it exists.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue