mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Use a dedicated type for the opaque type parameter to WorkQueue in layout.
Currently, we use UnsafeFlow and UnsafeLayoutNode, both of which are aliases for (usize, usize) and thus interconvertible. This change should make it clearer that the WorkQueue is not limited to one particular type.
This commit is contained in:
parent
21b48fc44d
commit
d0a29c3951
2 changed files with 8 additions and 6 deletions
|
@ -19,7 +19,7 @@ use fragment::{Fragment, FragmentBorderBoxIterator};
|
|||
use incremental::{LayoutDamageComputation, REFLOW, REFLOW_ENTIRE_DOCUMENT, REPAINT};
|
||||
use layout_debug;
|
||||
use opaque_node::OpaqueNodeMethods;
|
||||
use parallel::{self, UnsafeFlow};
|
||||
use parallel::{self, WorkQueueData};
|
||||
use sequential;
|
||||
use wrapper::LayoutNode;
|
||||
|
||||
|
@ -109,7 +109,7 @@ pub struct LayoutTaskData {
|
|||
pub stylist: Box<Stylist>,
|
||||
|
||||
/// The workers that we use for parallel operation.
|
||||
pub parallel_traversal: Option<WorkQueue<SharedLayoutContextWrapper, UnsafeFlow>>,
|
||||
pub parallel_traversal: Option<WorkQueue<SharedLayoutContextWrapper, WorkQueueData>>,
|
||||
|
||||
/// The dirty rect. Used during display list construction.
|
||||
pub dirty: Rect<Au>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue