Pass a LayoutContext through box construction

This commit is contained in:
Simon Sapin 2019-12-02 22:26:49 +01:00
parent 9c5a595044
commit 4e6e31a76c
6 changed files with 34 additions and 31 deletions

View file

@ -20,6 +20,10 @@ impl<'a> RecalcStyle<'a> {
RecalcStyle { context: context }
}
pub fn context(&self) -> &LayoutContext<'a> {
&self.context
}
pub fn destroy(self) -> LayoutContext<'a> {
self.context
}