Bug 262410

Summary: [IFC][Cleanup] InlineFormattingContext should construct/own InlineLayoutState
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
[fast-cq]Patch none

Description zalan 2023-09-29 15:52:55 PDT
ssia
Comment 1 zalan 2023-09-29 16:10:15 PDT
Created attachment 467981 [details]
Patch
Comment 2 zalan 2023-09-29 18:19:54 PDT
Created attachment 467986 [details]
Patch
Comment 3 zalan 2023-09-29 18:56:05 PDT
Created attachment 467987 [details]
Patch
Comment 4 Antti Koivisto 2023-10-01 03:57:54 PDT
Comment on attachment 467987 [details]
Patch

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

nice!

> Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:771
> +    if (auto adjustedRect = InlineFormattingQuirks::adjustedRectForLineGridLineAlign(constraints.logicalRect, formattingContext().root().style(), inlineLayoutState()))
>          constraints.logicalRect = *adjustedRect;

adjustedRectForLineGridLineAlign can now be turned non-static and called via formattingContext().formattingQuirks(). Then it will only need the constraints.logicalRect parameter.
Comment 5 zalan 2023-10-01 06:50:22 PDT
(In reply to Antti Koivisto from comment #4)
> Comment on attachment 467987 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=467987&action=review
> 
> nice!
> 
> > Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:771
> > +    if (auto adjustedRect = InlineFormattingQuirks::adjustedRectForLineGridLineAlign(constraints.logicalRect, formattingContext().root().style(), inlineLayoutState()))
> >          constraints.logicalRect = *adjustedRect;
> 
> adjustedRectForLineGridLineAlign can now be turned non-static and called via
> formattingContext().formattingQuirks(). Then it will only need the
> constraints.logicalRect parameter.
good point!
Comment 6 zalan 2023-10-01 08:15:46 PDT
Created attachment 468003 [details]
[fast-cq]Patch
Comment 7 EWS 2023-10-01 09:55:50 PDT
Committed 268703@main (8ac5e0757320): <https://commits.webkit.org/268703@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 468003 [details].
Comment 8 Radar WebKit Bug Importer 2023-10-01 09:56:13 PDT
<rdar://problem/116314369>