Skip to content

Commit

Permalink
Removed blocking call to layout solver
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Oct 12, 2018
1 parent 53c0fd5 commit ae6f62a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/display_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ pub(crate) struct DisplayListRectParams<'a, T: 'a + Layout> {
}

/// Push a single rectangle into the display list builder
#[inline]
fn displaylist_handle_rect<'a,'b,'c,'d,'e,'f, T: Layout>(
rectangle: DisplayListRectParams<'c, T>,
referenced_content: &DisplayListParametersRef<'a,'b,'d,'e, T>,
Expand Down Expand Up @@ -735,14 +736,6 @@ fn push_iframe<'a, 'b, 'c, 'd, 'e, 'f, T: Layout>(

referenced_mutable_content.ui_solver.insert_dom(new_dom_id, dom_solver);

insert_constraints_into_solver(
&ui_description,
referenced_mutable_content.ui_solver.get_dom_mut(&new_dom_id).unwrap(),
&rect_size,
&display_list.rectangles,
true
);

let z_ordered_rectangles = ZOrderedRectangles::new(&display_list.rectangles);
let referenced_content = DisplayListParametersRef {
// Important: Need to update the ui description, otherwise this function would be endlessly recursive
Expand Down

0 comments on commit ae6f62a

Please sign in to comment.