Auto merge of #26048 - nox:layout-2020-transparent-data, r=jdm

Give a lifetime parameter to LayoutDom
This commit is contained in:
bors-servo 2020-03-28 13:37:31 -04:00 committed by GitHub
commit 15d8c6058b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 335 additions and 432 deletions

View file

@ -50,7 +50,7 @@ pub struct FragmentTreeRoot {
impl BoxTreeRoot {
pub fn construct<'dom, Node>(context: &LayoutContext, root_element: Node) -> Self
where
Node: 'dom + Copy + LayoutNode + Send + Sync,
Node: 'dom + Copy + LayoutNode<'dom> + Send + Sync,
{
let (contains_floats, boxes) = construct_for_root_element(&context, root_element);
Self(BlockFormattingContext {