style: Remove extra-optimistic optimization.

We can't really do this :(
This commit is contained in:
Emilio Cobos Álvarez 2017-06-20 15:36:16 +02:00
parent b2549bb6c4
commit 84a8bbc8a6
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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, // Since we keep the traversal flags in terms of the flattened tree,
// we need to propagate it as appropriate. // 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(); let mut current = child.traversal_parent();
while let Some(parent) = current.take() { while let Some(parent) = current.take() {
if parent == self.element { if parent == self.element {