Bug 243197

Summary: [LFC][IFC] Inconsistent integral rounding of baseline relative logical top values
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   
See Also: https://bugs.webkit.org/show_bug.cgi?id=243940
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description zalan 2022-07-25 21:47:57 PDT
ssia
Comment 1 zalan 2022-07-25 22:14:37 PDT
Created attachment 461212 [details]
Patch
Comment 2 zalan 2022-07-26 06:12:17 PDT
Created attachment 461222 [details]
Patch
Comment 3 Antti Koivisto 2022-07-26 06:30:51 PDT
Comment on attachment 461222 [details]
Patch

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

> Source/WebCore/layout/formattingContexts/inline/InlineLevelBox.h:127
> +    void setLogicalTop(InlineLayoutUnit logicalTop) { logicalTop >= 0 ? m_logicalRect.setTop(roundToInt(logicalTop)) : m_logicalRect.setTop(-roundToInt(-logicalTop)); }

I think you want ?: inside setTop
Comment 4 zalan 2022-07-26 06:36:20 PDT
(In reply to Antti Koivisto from comment #3)
> Comment on attachment 461222 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=461222&action=review
> 
> > Source/WebCore/layout/formattingContexts/inline/InlineLevelBox.h:127
> > +    void setLogicalTop(InlineLayoutUnit logicalTop) { logicalTop >= 0 ? m_logicalRect.setTop(roundToInt(logicalTop)) : m_logicalRect.setTop(-roundToInt(-logicalTop)); }
> 
> I think you want ?: inside setTop
oops, right.
Comment 5 zalan 2022-07-26 08:02:54 PDT
Created attachment 461223 [details]
Patch
Comment 6 EWS 2022-07-26 09:13:47 PDT
Committed 252825@main (c4803567c7f8): <https://commits.webkit.org/252825@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 461223 [details].
Comment 7 Radar WebKit Bug Importer 2022-07-26 09:14:34 PDT
<rdar://problem/97609624>