Bug 219220

Summary: [LFC][Integration] Add contentOffset and contentWidth to Line
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
Patch none

Description zalan 2020-11-20 13:06:32 PST
This helps to match the legacy root inline box geometry.
Comment 1 zalan 2020-11-20 13:12:23 PST
Created attachment 414709 [details]
Patch
Comment 2 zalan 2020-11-20 14:02:40 PST
Created attachment 414719 [details]
Patch
Comment 3 zalan 2020-11-20 15:44:47 PST
Created attachment 414738 [details]
Patch
Comment 4 zalan 2020-11-20 15:54:09 PST
Created attachment 414739 [details]
Patch
Comment 5 Antti Koivisto 2020-11-20 22:20:18 PST
Comment on attachment 414739 [details]
Patch

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

> Source/WebCore/layout/integration/LayoutIntegrationLine.h:53
> +        , m_contentLeftOffset(contentLeftOffset)
> +        , m_contentWidth(contentWidth)

Could the client just do

content.runs[line.firstRunIndex()].rect().x()
etc

to get the same numbers? I guess having a redundant copy here doesn't hurt.
Comment 6 EWS 2020-11-21 04:57:09 PST
Committed r270143: <https://trac.webkit.org/changeset/270143>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 414739 [details].
Comment 7 Radar WebKit Bug Importer 2020-11-21 04:58:16 PST
<rdar://problem/71654468>