Bug 259937
| Summary: | [IFC] Enable the ability to override available width for line boxes | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | David Choi <david_choi5> |
| Component: | Layout and Rendering | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/113575336>
David Choi
Pull request: https://github.com/WebKit/WebKit/pull/16481
David Choi
Pull request: https://github.com/WebKit/WebKit/pull/16482
EWS
Committed 266921@main (b603ea06b45a): <https://commits.webkit.org/266921@main>
Reviewed commits have been landed. Closing PR #16482 and removing active labels.