Avoid holding borrow to editor while painting child elements
This commit is contained in:
parent
f2c63781f9
commit
3a8e9b5697
2 changed files with 648 additions and 670 deletions
File diff suppressed because it is too large
Load diff
|
@ -174,10 +174,7 @@ impl TextState {
|
||||||
|
|
||||||
let Some(lines) = text_system
|
let Some(lines) = text_system
|
||||||
.shape_text(
|
.shape_text(
|
||||||
&text,
|
&text, font_size, &runs, wrap_width, // Wrap if we know the width.
|
||||||
font_size,
|
|
||||||
&runs[..],
|
|
||||||
wrap_width, // Wrap if we know the width.
|
|
||||||
)
|
)
|
||||||
.log_err()
|
.log_err()
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue