diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-09-21 17:50:58 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-09-21 20:25:57 +0200 |
| commit | ddd3b6a82b8c0353c942bfba8b89ca5476eedc58 (patch) | |
| tree | a64c350f0f1f82152ff18cfb02fbfdbf39292672 /src/library/math | |
| parent | 3760748fddd3b793c79c370398a9d4a3fc5afc04 (diff) | |
Tracked memoization
Diffstat (limited to 'src/library/math')
| -rw-r--r-- | src/library/math/mod.rs | 8 | ||||
| -rw-r--r-- | src/library/math/rex.rs | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/library/math/mod.rs b/src/library/math/mod.rs index d71f6976..1f5ea8f3 100644 --- a/src/library/math/mod.rs +++ b/src/library/math/mod.rs @@ -48,7 +48,11 @@ impl Show for MathNode { } } - fn realize(&self, _: &dyn World, styles: StyleChain) -> SourceResult<Content> { + fn realize( + &self, + _: Tracked<dyn World>, + styles: StyleChain, + ) -> SourceResult<Content> { let node = self::rex::RexNode { tex: self.formula.clone(), display: self.display, @@ -64,7 +68,7 @@ impl Show for MathNode { fn finalize( &self, - _: &dyn World, + _: Tracked<dyn World>, styles: StyleChain, mut realized: Content, ) -> SourceResult<Content> { diff --git a/src/library/math/rex.rs b/src/library/math/rex.rs index 76ba5177..96e8e438 100644 --- a/src/library/math/rex.rs +++ b/src/library/math/rex.rs @@ -22,7 +22,7 @@ pub struct RexNode { impl Layout for RexNode { fn layout( &self, - world: &dyn World, + world: Tracked<dyn World>, _: &Regions, styles: StyleChain, ) -> SourceResult<Vec<Frame>> { |
