From 84a8bbc8a69e47cce4f01ea7906157d060bed1de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 20 Jun 2017 15:36:16 +0200 Subject: [PATCH] style: Remove extra-optimistic optimization. We can't really do this :( --- components/style/invalidation/element/invalidator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/invalidation/element/invalidator.rs b/components/style/invalidation/element/invalidator.rs index 12cb10f7172..7a149e951a6 100644 --- a/components/style/invalidation/element/invalidator.rs +++ b/components/style/invalidation/element/invalidator.rs @@ -333,7 +333,7 @@ impl<'a, 'b: 'a, E> TreeStyleInvalidator<'a, 'b, E> // // Since we keep the traversal flags in terms of the flattened tree, // we need to propagate it as appropriate. - if invalidated_child && child.parent_element() != Some(self.element) { + if invalidated_child { let mut current = child.traversal_parent(); while let Some(parent) = current.take() { if parent == self.element {