Bug 259937

Summary: [IFC] Enable the ability to override available width for line boxes
Product: WebKit Reporter: David Choi <david_choi5>
Component: Layout and RenderingAssignee: David Choi <david_choi5>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

David Choi
Reported 2023-08-08 11:13:57 PDT
The available width for a line box is originally determined by the HorizontalConstraints struct. However, it is sometimes desirable to override that width constraint. One potential reason to override that width constraint is to force line breaks at particular inline items. (Currently, there is no way to specify to the LineBuilder to break at certain InlineItems, and the only way to do so is to modify the available space on the line.) This is useful for CSS properties such as text-wrap, which need to make line-breaking decisions that do not follow the current greedy approach of filling up the entire available width.
Attachments
Radar WebKit Bug Importer
Comment 1 2023-08-08 11:15:00 PDT
David Choi
Comment 2 2023-08-08 11:23:49 PDT
David Choi
Comment 3 2023-08-08 11:32:27 PDT
EWS
Comment 4 2023-08-15 12:08:27 PDT
Committed 266921@main (b603ea06b45a): <https://commits.webkit.org/266921@main> Reviewed commits have been landed. Closing PR #16482 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.