diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-12-30 12:12:19 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-12-30 12:12:19 +0100 |
| commit | f174134aa23e96a2121fb4106fb23fbdad4d641a (patch) | |
| tree | 7c842c8af3383805bbc7b835daecc71e8ba616e6 /src/library/image.rs | |
| parent | 5d5d8a21cfc041ab08d30229f4ecb4cbb415cbc5 (diff) | |
Style chains
Diffstat (limited to 'src/library/image.rs')
| -rw-r--r-- | src/library/image.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/library/image.rs b/src/library/image.rs index 4e5acdc6..2b91b2fc 100644 --- a/src/library/image.rs +++ b/src/library/image.rs @@ -42,6 +42,7 @@ impl Layout for ImageNode { &self, ctx: &mut LayoutContext, regions: &Regions, + styles: StyleChain, ) -> Vec<Constrained<Rc<Frame>>> { let img = ctx.images.get(self.id); let pxw = img.width() as f64; @@ -89,7 +90,7 @@ impl Layout for ImageNode { } // Apply link if it exists. - if let Some(url) = ctx.styles.get_ref(LinkNode::URL) { + if let Some(url) = styles.get_ref(LinkNode::URL) { frame.link(url); } |
