mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #17796 - heycam:calc-difference, r=emilio
style: pass old ComputedValues from Element data into Gecko_CalcStyleDifference This is the Servo-side part of https://bugzilla.mozilla.org/show_bug.cgi?id=1380133. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17796) <!-- Reviewable:end -->
This commit is contained in:
commit
7b71070c04
6 changed files with 18 additions and 10 deletions
|
@ -161,7 +161,9 @@ pub fn recalc_style_for_animations(context: &LayoutContext,
|
|||
&mut fragment.style,
|
||||
&ServoMetricsProvider);
|
||||
let difference =
|
||||
RestyleDamage::compute_style_difference(&old_style, &fragment.style);
|
||||
RestyleDamage::compute_style_difference(&old_style,
|
||||
&old_style,
|
||||
&fragment.style);
|
||||
damage |= difference.damage;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue