diff --git a/components/style/matching.rs b/components/style/matching.rs index 2b95f2ba611..bb5f468c05e 100644 --- a/components/style/matching.rs +++ b/components/style/matching.rs @@ -373,7 +373,7 @@ trait PrivateMatchMethods: TElement { // for followup work to make the optimization here more optimal by considering // each bit individually. let skip_applying_damage = - restyle.reconstructed_self_or_ancestor(); + cfg!(feature = "gecko") && restyle.reconstructed_self_or_ancestor(); let difference = self.compute_style_difference(old_values, new_values, pseudo);