diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-11 17:42:40 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-11 18:29:48 +0100 |
| commit | 529d3e10c6b4d973e88b6c295eb22a45ea426e42 (patch) | |
| tree | 1815aa9336e71565e24d94bacccb98f09e91b693 /library/src/layout | |
| parent | 8e5f446544fd147277ed2e4208c7ea793cc846a7 (diff) | |
Section references
Diffstat (limited to 'library/src/layout')
| -rw-r--r-- | library/src/layout/mod.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/library/src/layout/mod.rs b/library/src/layout/mod.rs index dc373ff5..eb440b7f 100644 --- a/library/src/layout/mod.rs +++ b/library/src/layout/mod.rs @@ -232,20 +232,6 @@ impl<'a, 'v, 't> Builder<'a, 'v, 't> { self.scratch.content.alloc(FormulaNode::new(content.clone()).pack()); } - // Prepare only if this is the first application for this node. - if content.can::<dyn Prepare>() { - if !content.is_prepared() { - let prepared = content - .clone() - .prepared() - .with::<dyn Prepare>() - .unwrap() - .prepare(self.vt, styles)?; - let stored = self.scratch.content.alloc(prepared); - return self.accept(stored, styles); - } - } - if let Some(styled) = content.to::<StyledNode>() { return self.styled(styled, styles); } |
