summaryrefslogtreecommitdiff
path: root/library/src/shared/ext.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/shared/ext.rs')
-rw-r--r--library/src/shared/ext.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/src/shared/ext.rs b/library/src/shared/ext.rs
index 54a1598a..2d2dc751 100644
--- a/library/src/shared/ext.rs
+++ b/library/src/shared/ext.rs
@@ -105,11 +105,11 @@ impl FillNode {}
impl Layout for FillNode {
fn layout(
&self,
- world: Tracked<dyn World>,
+ vt: &mut Vt,
styles: StyleChain,
regions: &Regions,
) -> SourceResult<Fragment> {
- let mut fragment = self.child.layout(world, styles, regions)?;
+ let mut fragment = self.child.layout(vt, styles, regions)?;
for frame in &mut fragment {
let shape = Geometry::Rect(frame.size()).filled(self.fill);
frame.prepend(Point::zero(), Element::Shape(shape));
@@ -133,11 +133,11 @@ impl StrokeNode {}
impl Layout for StrokeNode {
fn layout(
&self,
- world: Tracked<dyn World>,
+ vt: &mut Vt,
styles: StyleChain,
regions: &Regions,
) -> SourceResult<Fragment> {
- let mut fragment = self.child.layout(world, styles, regions)?;
+ let mut fragment = self.child.layout(vt, styles, regions)?;
for frame in &mut fragment {
let shape = Geometry::Rect(frame.size()).stroked(self.stroke);
frame.prepend(Point::zero(), Element::Shape(shape));