diff options
Diffstat (limited to 'components/script_layout_interface/restyle_damage.rs')
-rw-r--r-- | components/script_layout_interface/restyle_damage.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script_layout_interface/restyle_damage.rs b/components/script_layout_interface/restyle_damage.rs index fc7c11d4259..95722cc1a86 100644 --- a/components/script_layout_interface/restyle_damage.rs +++ b/components/script_layout_interface/restyle_damage.rs @@ -47,6 +47,10 @@ impl TRestyleDamage for RestyleDamage { /// For Servo the style source is always the computed values. type PreExistingComputedValues = Arc<ServoComputedValues>; + fn empty() -> Self { + RestyleDamage::empty() + } + fn compute(old: Option<&Arc<ServoComputedValues>>, new: &Arc<ServoComputedValues>) -> RestyleDamage { compute_damage(old, new) |