Rename AbsolutelyPositionedBox::layout to AbsolutelyPositionedBox::to_hoisted

This method doesn't actually do any layout, but converts this block to a
HoistedAbsolutelyPositionedBox which is hoisted and then laid-out with
its containing block later. This makes the code a little easier to read.
This commit is contained in:
Martin Robinson 2020-02-28 14:42:29 +01:00
parent 756cf66cd2
commit c20c468814
3 changed files with 3 additions and 3 deletions

View file

@ -86,7 +86,7 @@ impl AbsolutelyPositionedBox {
}
}
pub(crate) fn layout(
pub(crate) fn to_hoisted(
&self,
initial_start_corner: Vec2<Length>,
tree_rank: usize,