servo/components/layout_2020
Martin Robinson 094f7845b1
layout: Shape text only once (#31146)
Shape text during InlineFormattingContext construction rather than doing
it twice during fragment tree construction. This is a step on the way
toward proper font fallback.

This also moves all `TextRun` related code into `text_run.rs` to try to
trim down the size of `inline.rs`.
<!-- Please describe your changes on the following line: -->


---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by
`[X]` when the step is complete, and replace `___` with appropriate
data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests because this should only have
performance impacts.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox
is checked, so that we can help you if you get stuck somewhere along the
way.-->

<!-- Pull requests that do not address these steps are welcome, but they
will require additional verification as part of the review process. -->
2024-01-25 14:33:47 +00:00
..
display_list Lint layout_2020 with clippy (#31169) 2024-01-25 09:03:31 +00:00
flexbox layout: Shape text only once (#31146) 2024-01-25 14:33:47 +00:00
flow layout: Shape text only once (#31146) 2024-01-25 14:33:47 +00:00
fragment_tree Lint layout_2020 with clippy (#31169) 2024-01-25 09:03:31 +00:00
table Lint layout_2020 with clippy (#31169) 2024-01-25 09:03:31 +00:00
tests Lint layout_2020 with clippy (#31169) 2024-01-25 09:03:31 +00:00
Cargo.toml Move *_traits and other shared types to shared 2023-11-03 15:38:18 +00:00
cell.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
context.rs Lint layout_2020 with clippy (#31169) 2024-01-25 09:03:31 +00:00
dom.rs Lint layout_2020 with clippy (#31169) 2024-01-25 09:03:31 +00:00
dom_traversal.rs Lint layout_2020 with clippy (#31169) 2024-01-25 09:03:31 +00:00
formatting_contexts.rs layout: Shape text only once (#31146) 2024-01-25 14:33:47 +00:00
geom.rs layout: Add *very* basic support for table layout (#31121) 2024-01-19 13:20:20 +00:00
layout_debug.rs Lint layout_2020 with clippy (#31169) 2024-01-25 09:03:31 +00:00
lib.rs Compile Servo with the latest version of rust stable (#30831) 2023-12-06 17:36:07 +00:00
lists.rs rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
positioned.rs Lint layout_2020 with clippy (#31169) 2024-01-25 09:03:31 +00:00
query.rs Lint layout_2020 with clippy (#31169) 2024-01-25 09:03:31 +00:00
replaced.rs Lint layout_2020 with clippy (#31169) 2024-01-25 09:03:31 +00:00
sizing.rs Lint layout_2020 with clippy (#31169) 2024-01-25 09:03:31 +00:00
style_ext.rs layout: Convert layout internal display to inline for replaced elements (#31133) 2024-01-23 12:55:01 +00:00
traversal.rs Lint layout_2020 with clippy (#31169) 2024-01-25 09:03:31 +00:00