servo/components/layout_2020/flow
Martin Robinson a7838ae7cc
layout: Have TextRun::glyph_run_is_preserved_newline take into account TextRunSegment offset (#32119)
A `TextRun` is composed of `TextRunSegment`s that are composed of
`GlyphRun`s.
`TextRun::glyph_run_is_preserved_newline` is indexing into the `TextRun`
text, but the `GlyphRun` indexes that it uses are relative to the
`TextRunSegment`
offset. Before the code was using the offset without incorporating the
`TextRunSegment` offset. This led to miscalculation of preserved newline
location while processing text content.

<!-- 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] There are tests for these changes

<!-- 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-04-21 20:09:49 +00:00
..
construct.rs Allow finishing anonymous inline-table at the end of inline elements (#31650) 2024-03-14 09:58:00 +00:00
float.rs Obey min-height and max-height on floated elements (#32057) 2024-04-12 10:21:02 +00:00
inline.rs layout: Have TextRun::glyph_run_is_preserved_newline take into account TextRunSegment offset (#32119) 2024-04-21 20:09:49 +00:00
line.rs Update Stylo to 2023-10-16 (#31932) 2024-03-30 13:30:13 +00:00
mod.rs layout: Have current_block_direction_position in PlacementState use Au (#31948) 2024-04-19 14:30:32 +00:00
root.rs layout: Add support for <object> with image data URLs (#32069) 2024-04-15 20:20:55 +00:00
text_run.rs layout: Have TextRun::glyph_run_is_preserved_newline take into account TextRunSegment offset (#32119) 2024-04-21 20:09:49 +00:00