Bug 199057 - [LFC][IFC] Make the initial strut explicit
Summary: [LFC][IFC] Make the initial strut explicit
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-06-19 21:17 PDT by zalan
Modified: 2019-06-20 08:18 PDT (History)
6 users (show)

See Also:


Attachments
Patch (9.83 KB, patch)
2019-06-19 21:31 PDT, zalan
no flags Details | Formatted Diff | Diff
Patch (10.08 KB, patch)
2019-06-20 07:47 PDT, zalan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2019-06-19 21:17:19 PDT
so that we can ignore it in quirks mode
Comment 1 Radar WebKit Bug Importer 2019-06-19 21:18:04 PDT
<rdar://problem/51927864>
Comment 2 zalan 2019-06-19 21:31:26 PDT
Created attachment 372529 [details]
Patch
Comment 3 Antti Koivisto 2019-06-20 05:12:53 PDT
Comment on attachment 372529 [details]
Patch

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

> Source/WebCore/layout/inlineformatting/InlineFormattingContextLineLayout.cpp:137
>      auto initialLineConstraints = Line::InitialConstraints {
>          lineInput.horizontalConstraint.logicalTopLeft,
>          lineInput.horizontalConstraint.availableLogicalWidth,
> -        mimimumLineHeight,
> -        initialBaselineOffset
> +        heightConstraints.height,
> +        heightConstraints.baselineOffset,
> +        heightConstraints.strut
>      };

Should InitialConstraints just have HeightConstraints member?
Comment 4 zalan 2019-06-20 07:19:04 PDT
(In reply to Antti Koivisto from comment #3)
> Comment on attachment 372529 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=372529&action=review
> 
> > Source/WebCore/layout/inlineformatting/InlineFormattingContextLineLayout.cpp:137
> >      auto initialLineConstraints = Line::InitialConstraints {
> >          lineInput.horizontalConstraint.logicalTopLeft,
> >          lineInput.horizontalConstraint.availableLogicalWidth,
> > -        mimimumLineHeight,
> > -        initialBaselineOffset
> > +        heightConstraints.height,
> > +        heightConstraints.baselineOffset,
> > +        heightConstraints.strut
> >      };
> 
> Should InitialConstraints just have HeightConstraints member?
good point!
Comment 5 zalan 2019-06-20 07:47:59 PDT
Created attachment 372554 [details]
Patch
Comment 6 WebKit Commit Bot 2019-06-20 08:18:33 PDT
Comment on attachment 372554 [details]
Patch

Clearing flags on attachment: 372554

Committed r246634: <https://trac.webkit.org/changeset/246634>
Comment 7 WebKit Commit Bot 2019-06-20 08:18:35 PDT
All reviewed patches have been landed.  Closing bug.