mirror of
https://github.com/servo/servo.git
synced 2025-08-26 23:58:20 +01:00
style: Make anon boxes account for :visited.
This should fix one of the test failures of: https://bugzilla.mozilla.org/show_bug.cgi?id=616436
This commit is contained in:
parent
b93579a8f0
commit
604c520343
2 changed files with 61 additions and 62 deletions
|
@ -2028,7 +2028,7 @@ pub extern "C" fn Servo_ComputedValues_GetForAnonymousBox(parent_style_or_null:
|
|||
parent_style_or_null.map(|x| &*x),
|
||||
cascade_flags,
|
||||
&metrics,
|
||||
&rule_node
|
||||
rule_node
|
||||
).into()
|
||||
}
|
||||
|
||||
|
@ -2218,8 +2218,9 @@ fn get_pseudo_style(
|
|||
&inputs,
|
||||
pseudo,
|
||||
&guards,
|
||||
inherited_styles,
|
||||
&metrics
|
||||
Some(inherited_styles),
|
||||
&metrics,
|
||||
CascadeFlags::empty(),
|
||||
)
|
||||
})
|
||||
},
|
||||
|
@ -3644,16 +3645,16 @@ pub extern "C" fn Servo_ReparentStyle(
|
|||
}
|
||||
}
|
||||
|
||||
doc_data.stylist
|
||||
.compute_style_with_inputs(&inputs,
|
||||
pseudo.as_ref(),
|
||||
&StylesheetGuards::same(&guard),
|
||||
parent_style,
|
||||
parent_style_ignoring_first_line,
|
||||
layout_parent_style,
|
||||
&metrics,
|
||||
cascade_flags)
|
||||
.into()
|
||||
doc_data.stylist.compute_style_with_inputs(
|
||||
&inputs,
|
||||
pseudo.as_ref(),
|
||||
&StylesheetGuards::same(&guard),
|
||||
Some(parent_style),
|
||||
Some(parent_style_ignoring_first_line),
|
||||
Some(layout_parent_style),
|
||||
&metrics,
|
||||
cascade_flags,
|
||||
).into()
|
||||
}
|
||||
|
||||
#[cfg(feature = "gecko_debug")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue