Bug 232772

Summary: [LFC][IFC] Process all replacement, control and opaque inline items.
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: 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 Flags
Patch
none
Patch
none
Patch none

Description zalan 2021-11-05 15:48:48 PDT
generate bidi level for all the inline items.
Comment 1 zalan 2021-11-05 15:54:26 PDT
Created attachment 443451 [details]
Patch
Comment 2 zalan 2021-11-05 21:42:55 PDT
Created attachment 443476 [details]
Patch
Comment 3 Antti Koivisto 2021-11-06 06:35:44 PDT
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?
Comment 4 zalan 2021-11-06 06:42:24 PDT
(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.
Comment 5 zalan 2021-11-06 09:58:38 PDT
Created attachment 443487 [details]
Patch
Comment 6 EWS 2021-11-06 12:41:26 PDT
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].
Comment 7 Radar WebKit Bug Importer 2021-11-06 12:42:17 PDT
<rdar://problem/85103505>