mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Don't reconstruct the layout object when going from no pseudo to pseudo with no content for ::before and ::after.
Fixes Gecko bug 1376073. r=emilio
This commit is contained in:
parent
12a49dc0be
commit
91d4956da5
5 changed files with 70 additions and 12 deletions
|
@ -232,7 +232,7 @@ impl Clone for EagerPseudoCascadeInputs {
|
|||
impl EagerPseudoCascadeInputs {
|
||||
/// Construct inputs from previous cascade results, if any.
|
||||
fn new_from_style(styles: &EagerPseudoStyles) -> Self {
|
||||
EagerPseudoCascadeInputs(styles.as_array().map(|styles| {
|
||||
EagerPseudoCascadeInputs(styles.as_optional_array().map(|styles| {
|
||||
let mut inputs: [Option<CascadeInputs>; EAGER_PSEUDO_COUNT] = Default::default();
|
||||
for i in 0..EAGER_PSEUDO_COUNT {
|
||||
inputs[i] = styles[i].as_ref().map(|s| CascadeInputs::new_from_style(s));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue