| Summary: | [LFC][IFC] Introduce a fast path for finding breaking position when text content uses fixed pitch font | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | zalan <zalan> | ||||||||||
| Component: | Layout and Rendering | Assignee: | zalan <zalan> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | aakash_jain, bfulgham, simon.fraser, webkit-bug-importer, zalan | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Bug Depends on: | |||||||||||||
| Bug Blocks: | 247782 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
zalan
2022-11-16 19:45:59 PST
Created attachment 463569 [details]
Patch
need to look into imported/w3c/web-platform-tests/css/css-text/line-break/line-break-anywhere-001.html Created attachment 463582 [details]
Patch
Created attachment 463583 [details]
Patch
Comment on attachment 463583 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=463583&action=review > Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp:246 > + size_t estimatedCharacterCount = availableWidth / monospaceCharacterWidth; An explicit floor() would make this slightly more self-explanatory Created attachment 463940 [details]
[fast-cq] Patch
Committed 257585@main (97774366800c): <https://commits.webkit.org/257585@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 463940 [details]. |