| Summary: | [LFC][IFC] Process all replacement, control and opaque inline items. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | zalan <zalan> | ||||||||
| Component: | Layout and Rendering | Assignee: | zalan <zalan> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | bfulgham, koivisto, simon.fraser, webkit-bug-importer, zalan | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
zalan
2021-11-05 15:48:48 PDT
Created attachment 443451 [details]
Patch
Created attachment 443476 [details]
Patch
Comment on attachment 443476 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=443476&action=review > Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp:147 > + size_t inlineTextBoxOffset = 0; > + for (size_t index = 0; index < inlineItems.size(); ++index) { Could we reserverInitialCapacity() for InlineItemOffsetList and then use uncheckedAppend? (In reply to Antti Koivisto from comment #3) > Comment on attachment 443476 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=443476&action=review > > > Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp:147 > > + size_t inlineTextBoxOffset = 0; > > + for (size_t index = 0; index < inlineItems.size(); ++index) { > > Could we reserverInitialCapacity() for InlineItemOffsetList and then use > uncheckedAppend? Good point! Will do. Created attachment 443487 [details]
Patch
Committed r285374 (243931@main): <https://commits.webkit.org/243931@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 443487 [details]. |