mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
style: Pass old ComputedValues and old cached struct bits to Gecko_CalcStyleDifference.
This commit is contained in:
parent
25dc352d7c
commit
914ba609c0
4 changed files with 10 additions and 7 deletions
|
@ -60,7 +60,8 @@ impl HeapSizeOf for ServoRestyleDamage {
|
|||
impl ServoRestyleDamage {
|
||||
/// Compute the `StyleDifference` (including the appropriate restyle damage)
|
||||
/// for a given style change between `old` and `new`.
|
||||
pub fn compute_style_difference(old: &ComputedValues,
|
||||
pub fn compute_style_difference(_source: &ComputedValues,
|
||||
old: &ComputedValues,
|
||||
new: &ComputedValues)
|
||||
-> StyleDifference {
|
||||
let damage = compute_damage(old, new);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue