diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-10-31 09:05:50 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-10-31 09:05:50 +0100 |
| commit | 237feda063a3a556658f1e3e34f7f8867e800f60 (patch) | |
| tree | de5d0fc18ab8407949f05503686121dd43a93c91 /src/model/layout.rs | |
| parent | 66ad023519e5250f88f9066a2607efe5442a7b76 (diff) | |
Remove semantic role handling
Diffstat (limited to 'src/model/layout.rs')
| -rw-r--r-- | src/model/layout.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/model/layout.rs b/src/model/layout.rs index ea9d076c..5f21765d 100644 --- a/src/model/layout.rs +++ b/src/model/layout.rs @@ -202,15 +202,7 @@ impl Layout for LayoutNode { ) -> SourceResult<Vec<Frame>> { let barrier = StyleEntry::Barrier(Barrier::new(self.id())); let styles = barrier.chain(&styles); - - let mut frames = self.0.layout(world, regions, styles)?; - if let Some(role) = styles.role() { - for frame in &mut frames { - frame.apply_role(role); - } - } - - Ok(frames) + self.0.layout(world, regions, styles) } fn pack(self) -> LayoutNode { |
