From ac2be544709ac024e72e855b618f5bb64427ea91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 6 Sep 2017 14:54:20 +0200 Subject: [PATCH] style: Make the skip-applying-damage stuff Gecko-only. --- components/style/matching.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);