Traverse real_stacking_contexts_and_positioned_stacking_containers redundancy #37980
-
|
In the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
The first traversal of items with z_index > 0 is at servo/components/layout/display_list/stacking_context.rs Lines 670 to 688 in 0f61361 The items in the second for traversal are located at servo/components/layout/display_list/stacking_context.rs Lines 717 to 723 in 0f61361 |
Beta Was this translation helpful? Give feedback.
What is being traversed is the iterator, not the collection itself. The iterator has already been iterated over previously, and the collection itself has undergone a sort by z-index from low to high once before. Therefore, there is no issue here.