Bug 222704

Summary: [LFC][IFC] Make LineBox::m_inlineLevelBoxRectMap a non-root inline level box map
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

zalan
Reported 2021-03-03 19:25:20 PST
root inline box does not need to go in there.
Attachments
Patch (4.41 KB, patch)
2021-03-03 19:27 PST, zalan
no flags
zalan
Comment 1 2021-03-03 19:27:56 PST
Antti Koivisto
Comment 2 2021-03-03 21:21:03 PST
Comment on attachment 422174 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=422174&action=review > Source/WebCore/layout/inlineformatting/InlineLineBox.cpp:92 > - m_inlineLevelBoxRectMap.reserveInitialCapacity(numberOfRuns); > - m_inlineLevelBoxRectMap.set(&rootLayoutBox, &m_rootInlineBox); > + m_nonRootInlineLevelBoxMap.reserveInitialCapacity(numberOfRuns); Does it need one less capacity now?
EWS
Comment 3 2021-03-04 06:22:51 PST
Committed r273887: <https://commits.webkit.org/r273887> All reviewed patches have been landed. Closing bug and clearing flags on attachment 422174 [details].
Radar WebKit Bug Importer
Comment 4 2021-03-04 06:23:13 PST
zalan
Comment 5 2021-03-04 06:25:01 PST
(In reply to Antti Koivisto from comment #2) > Comment on attachment 422174 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=422174&action=review > > > Source/WebCore/layout/inlineformatting/InlineLineBox.cpp:92 > > - m_inlineLevelBoxRectMap.reserveInitialCapacity(numberOfRuns); > > - m_inlineLevelBoxRectMap.set(&rootLayoutBox, &m_rootInlineBox); > > + m_nonRootInlineLevelBoxMap.reserveInitialCapacity(numberOfRuns); > > Does it need one less capacity now? yeah I was going to talk to you about it. we need a better approximation for this.
Note You need to log in before you can comment on or make changes to this bug.