WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
218043
[LFC][IFC] Apply font line-spacing to <br> inline level box
https://bugs.webkit.org/show_bug.cgi?id=218043
Summary
[LFC][IFC] Apply font line-spacing to <br> inline level box
zalan
Reported
2020-10-21 11:55:51 PDT
ssia
Attachments
Patch
(4.73 KB, patch)
2020-10-21 12:10 PDT
,
zalan
no flags
Details
Formatted Diff
Diff
Patch
(5.05 KB, patch)
2020-10-21 13:18 PDT
,
zalan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
zalan
Comment 1
2020-10-21 12:10:39 PDT
Created
attachment 412014
[details]
Patch
Antti Koivisto
Comment 2
2020-10-21 12:20:41 PDT
Comment on
attachment 412014
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=412014&action=review
> Source/WebCore/layout/inlineformatting/InlineFormattingContextGeometry.cpp:183 > + auto lineSpacing = isRootInlineBox(inlineLevelBox) || inlineLevelBox.isLineBreakBox() ? fontMetrics.lineSpacing() - logicalHeight : InlineLayoutUnit();
I usually put parenthesis around this sort of things `(a || b) ? :` since it can be difficult to parse otherwise (or just put the condition to a temporary).
zalan
Comment 3
2020-10-21 12:25:18 PDT
(In reply to Antti Koivisto from
comment #2
)
> Comment on
attachment 412014
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=412014&action=review
> > > Source/WebCore/layout/inlineformatting/InlineFormattingContextGeometry.cpp:183 > > + auto lineSpacing = isRootInlineBox(inlineLevelBox) || inlineLevelBox.isLineBreakBox() ? fontMetrics.lineSpacing() - logicalHeight : InlineLayoutUnit(); > > I usually put parenthesis around this sort of things `(a || b) ? :` since it > can be difficult to parse otherwise (or just put the condition to a > temporary).
good point. will fix.
zalan
Comment 4
2020-10-21 13:18:51 PDT
Created
attachment 412021
[details]
Patch
EWS
Comment 5
2020-10-21 14:21:26 PDT
Committed
r268823
: <
https://trac.webkit.org/changeset/268823
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 412021
[details]
.
Radar WebKit Bug Importer
Comment 6
2020-10-21 14:22:19 PDT
<
rdar://problem/70545083
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug