mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Remove extra-optimistic optimization.
We can't really do this :(
This commit is contained in:
parent
b2549bb6c4
commit
84a8bbc8a6
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue