summaryrefslogtreecommitdiff
path: root/src/library/math
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-09-21 17:50:58 +0200
committerLaurenz <laurmaedje@gmail.com>2022-09-21 20:25:57 +0200
commitddd3b6a82b8c0353c942bfba8b89ca5476eedc58 (patch)
treea64c350f0f1f82152ff18cfb02fbfdbf39292672 /src/library/math
parent3760748fddd3b793c79c370398a9d4a3fc5afc04 (diff)
Tracked memoization
Diffstat (limited to 'src/library/math')
-rw-r--r--src/library/math/mod.rs8
-rw-r--r--src/library/math/rex.rs2
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>> {