Bug 194473 - [LFC][IFC] Add intrinsic width support for basic inline containers
Summary: [LFC][IFC] Add intrinsic width support for basic inline containers
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-02-09 08:26 PST by zalan
Modified: 2019-02-09 12:42 PST (History)
6 users (show)

See Also:


Attachments
Patch (23.30 KB, patch)
2019-02-09 08:48 PST, 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-02-09 08:26:38 PST
<span>foobar</span>
Comment 1 zalan 2019-02-09 08:48:17 PST
Created attachment 361607 [details]
Patch
Comment 2 Antti Koivisto 2019-02-09 10:25:43 PST
Comment on attachment 361607 [details]
Patch

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

> Source/WebCore/layout/inlineformatting/InlineFormattingContext.cpp:138
> +void InlineFormattingContext::computeBorderAndPadding(const Box& layoutBox, UsedHorizontalValues usedValues) const
> +{
> +    auto& displayBox = layoutState().displayBoxForLayoutBox(layoutBox);
> +    displayBox.setBorder(Geometry::computedBorder(layoutBox));
> +    displayBox.setPadding(Geometry::computedPadding(layoutBox, usedValues));
> +}

This is in addition to FormattingContext::computeBorderAndPadding, right? Is there something inline specific here?
Comment 3 zalan 2019-02-09 12:11:13 PST
(In reply to Antti Koivisto from comment #2)
> Comment on attachment 361607 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=361607&action=review
> 
> > Source/WebCore/layout/inlineformatting/InlineFormattingContext.cpp:138
> > +void InlineFormattingContext::computeBorderAndPadding(const Box& layoutBox, UsedHorizontalValues usedValues) const
> > +{
> > +    auto& displayBox = layoutState().displayBoxForLayoutBox(layoutBox);
> > +    displayBox.setBorder(Geometry::computedBorder(layoutBox));
> > +    displayBox.setPadding(Geometry::computedPadding(layoutBox, usedValues));
> > +}
> 
> This is in addition to FormattingContext::computeBorderAndPadding, right? Is
> there something inline specific here?
Not at all. I am going to consolidate them once I am done with the intrinsic width patches.
Comment 4 WebKit Commit Bot 2019-02-09 12:37:08 PST
Comment on attachment 361607 [details]
Patch

Clearing flags on attachment: 361607

Committed r241243: <https://trac.webkit.org/changeset/241243>
Comment 5 WebKit Commit Bot 2019-02-09 12:37:10 PST
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2019-02-09 12:42:27 PST
<rdar://problem/47943846>