Bug 224413

Summary: InlineContent::nonRootInlineBoxes wastes vector capacity
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bfulgham, koivisto, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Description Simon Fraser (smfr) 2021-04-10 21:11:05 PDT
On nytimes.com:

Total capacity: 128000 bytes (used 8640, wasted 119360), utilization: 6.75%) - 378 allocations, entry size 40 bytes
1   0x10c337ea0 WebCore::LayoutIntegration::InlineContent::InlineContent(WebCore::LayoutIntegration::LineLayout const&)
2   0x10c33d217 WebCore::LayoutIntegration::LineLayout::constructContent()
3   0x10c33cdf6 WebCore::LayoutIntegration::LineLayout::layout()
4   0x10c7e7fd7 WebCore::RenderBlockFlow::layoutModernLines(bool, WebCore::LayoutUnit&, WebCore::LayoutUnit&)
5   0x10c7e5555 WebCore::RenderBlockFlow::layoutBlock(bool, WebCore::LayoutUnit)
6   0x10c7d2a4a WebCore::RenderBlock::layout()
7   0x10c7e76f9 WebCore::RenderBlockFlow::layoutBlockChild(WebCore::RenderBox&, WebCore::RenderBlockFlow::MarginInfo&, WebCore::LayoutUnit&, WebCore::LayoutUnit&)
8   0x10c7e6496 WebCore::RenderBlockFlow::layoutBlockChildren(bool, WebCore::LayoutUnit&)
9   0x10c7e5543 WebCore::RenderBlockFlow::layoutBlock(bool, WebCore::LayoutUnit)
10  0x10c7d2a4a WebCore::RenderBlock::layout()
Comment 1 Radar WebKit Bug Importer 2021-04-17 21:12:14 PDT
<rdar://problem/76807826>