mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Stop creating a LayoutContext in build_display_list_for_subtree.
This commit is contained in:
parent
871c207c44
commit
fd68208da6
2 changed files with 4 additions and 5 deletions
|
@ -198,13 +198,13 @@ impl<'a> PostorderFlowTraversal for AssignBSizes<'a> {
|
|||
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct ComputeAbsolutePositions<'a> {
|
||||
pub layout_context: &'a LayoutContext<'a>,
|
||||
pub layout_context: &'a SharedLayoutContext,
|
||||
}
|
||||
|
||||
impl<'a> PreorderFlowTraversal for ComputeAbsolutePositions<'a> {
|
||||
#[inline]
|
||||
fn process(&self, flow: &mut Flow) {
|
||||
flow.compute_absolute_position(self.layout_context.shared);
|
||||
flow.compute_absolute_position(self.layout_context);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue