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:
Emilio Cobos Álvarez 2017-12-12 22:32:13 +01:00
parent b93579a8f0
commit 604c520343
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 61 additions and 62 deletions

View file

@ -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")]