style: Fix propagation of text-decoration lines.

This commit is contained in:
Emilio Cobos Álvarez 2017-06-26 15:30:13 -07:00
parent 1c2fcb16ca
commit 69e650ea68
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 27 additions and 17 deletions

View file

@ -47,9 +47,10 @@ impl GeckoRestyleDamage {
/// them, but Gecko has an interesting optimization when they mark accessed
/// structs, so they effectively only diff structs that have ever been
/// accessed from layout.
pub fn compute_style_difference(source: &nsStyleContext,
new_style: &Arc<ComputedValues>)
-> StyleDifference {
pub fn compute_style_difference(
source: &nsStyleContext,
new_style: &Arc<ComputedValues>
) -> StyleDifference {
// TODO(emilio): Const-ify this?
let context = source as *const nsStyleContext as *mut nsStyleContext;
let mut any_style_changed: bool = false;