Bug 245568 - [LFC][Integration] Add a Layout::Box pointer to RenderObject
Summary: [LFC][Integration] Add a Layout::Box pointer to RenderObject
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Antti Koivisto
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-09-23 03:00 PDT by Antti Koivisto
Modified: 2022-09-24 00:41 PDT (History)
10 users (show)

See Also:


Attachments
Patch (28.80 KB, patch)
2022-09-23 03:19 PDT, Antti Koivisto
no flags Details | Formatted Diff | Diff
Patch for landing (28.37 KB, patch)
2022-09-23 23:24 PDT, Antti Koivisto
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Koivisto 2022-09-23 03:00:26 PDT
Replace the map in LineLayout with a direct pointer in render objects. This is faster and also uses less memory in most cases since with expanded IFC coverage majority of renderers already end up in these maps.
Comment 1 Radar WebKit Bug Importer 2022-09-23 03:00:49 PDT
<rdar://problem/100316721>
Comment 2 Antti Koivisto 2022-09-23 03:19:28 PDT
Created attachment 462559 [details]
Patch
Comment 3 zalan 2022-09-23 06:33:04 PDT
Comment on attachment 462559 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=462559&action=review

v.nice!

> Source/WebCore/layout/layouttree/LayoutContainerBox.cpp:101
> +} 

trailing whitespace.

> Source/WebCore/rendering/RenderView.h:233
> +    std::unique_ptr<Layout::InitialContainingBlock> m_initialContainingBlock;

can this be just a UniqueRef<> ?
Comment 4 Antti Koivisto 2022-09-23 23:24:49 PDT
Created attachment 462576 [details]
Patch for landing
Comment 5 EWS 2022-09-24 00:41:00 PDT
Committed 254822@main (de27a5057c3d): <https://commits.webkit.org/254822@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 462576 [details].