Bug 237036

Summary: [IFC][Integration] LineLayout::firstInlineBoxRect should flip the rect coordinates for vertical-rl
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, darin, koivisto, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
[fast-cq]Patch none

Description zalan 2022-02-22 06:26:59 PST
ssia
Comment 1 zalan 2022-02-22 06:39:47 PST
Created attachment 452866 [details]
Patch
Comment 2 Darin Adler 2022-02-22 09:49:39 PST
Comment on attachment 452866 [details]
Patch

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

> Source/WebCore/layout/integration/LayoutIntegrationLineLayout.cpp:580
> +        firstBoxRect.setX(flow().width() - firstBoxRect.width() - firstBoxRect.x());

This is better:

    firstBoxRect.setX(flow().width() - firstBoxRect.maxX());

Also, I think we should switch on writingMode rather than using if statements.
Comment 3 zalan 2022-02-23 09:20:35 PST
Created attachment 452989 [details]
[fast-cq]Patch
Comment 4 EWS 2022-02-23 10:28:06 PST
Committed r290382 (247697@main): <https://commits.webkit.org/247697@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 452989 [details].
Comment 5 Radar WebKit Bug Importer 2022-02-23 10:29:20 PST
<rdar://problem/89364260>