summaryrefslogtreecommitdiff
path: root/src/library/hide.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-02-17 15:47:54 +0100
committerLaurenz <laurmaedje@gmail.com>2022-02-17 17:32:56 +0100
commitc5e67af22bd6242366819879be84c10c4dd135be (patch)
treed857b99b26401d1b3b74c4cebacbf086c25bef40 /src/library/hide.rs
parent3d965ae6a479636a13b2e2f2344e8d97bedece1f (diff)
Merge eval and layout contexts into `Vm`
Diffstat (limited to 'src/library/hide.rs')
-rw-r--r--src/library/hide.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/hide.rs b/src/library/hide.rs
index 72d8e52b..230300d2 100644
--- a/src/library/hide.rs
+++ b/src/library/hide.rs
@@ -8,7 +8,7 @@ pub struct HideNode(pub LayoutNode);
#[class]
impl HideNode {
- fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult<Template> {
+ fn construct(_: &mut Vm, args: &mut Args) -> TypResult<Template> {
Ok(Template::inline(Self(args.expect("body")?)))
}
}
@@ -16,11 +16,11 @@ impl HideNode {
impl Layout for HideNode {
fn layout(
&self,
- ctx: &mut LayoutContext,
+ vm: &mut Vm,
regions: &Regions,
styles: StyleChain,
) -> Vec<Constrained<Arc<Frame>>> {
- let mut frames = self.0.layout(ctx, regions, styles);
+ let mut frames = self.0.layout(vm, regions, styles);
// Clear the frames.
for Constrained { item: frame, .. } in &mut frames {