Fix framework layout and image transforms
This commit is contained in:
1 parent
a5555d78c8
commit
661212e6aa
6 files changed
+562
-44
No files matched your search
@@ -563,6 +563,16 @@ impl TextEngine {
|
||||
self.items.is_empty()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub(crate) fn item_text(&self, idx: usize) -> String {
|
||||
self.items[idx]
|
||||
.buffer
|
||||
.lines
|
||||
.iter()
|
||||
.map(|line| line.text())
|
||||
.collect()
|
||||
}
|
||||
|
||||
/// Build an inline formatting context for `id`'s subtree if it is one we
|
||||
/// can collapse to shaped text (see [`is_pure_text_ifc`]); returns the
|
||||
/// item index to store as the leaf's taffy context. `None` means the
|
||||
|
||||
Reference in new issue
Block a user