mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
style: Fix propagation of text-decoration lines.
This commit is contained in:
parent
1c2fcb16ca
commit
69e650ea68
2 changed files with 27 additions and 17 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue