Bug 207832 - [LFC][Out-of-flow] FormattingContext::computeOutOfFlowHorizontalGeometry needs verticalConstraints
Summary: [LFC][Out-of-flow] FormattingContext::computeOutOfFlowHorizontalGeometry need...
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: 2020-02-16 20:36 PST by zalan
Modified: 2020-02-17 13:11 PST (History)
7 users (show)

See Also:


Attachments
Patch (19.40 KB, patch)
2020-02-16 21:08 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 2020-02-16 20:36:02 PST
while figuring out computedContentHeight through inlineReplacedWidthAndMargin
Comment 1 Radar WebKit Bug Importer 2020-02-16 20:36:25 PST
<rdar://problem/59499844>
Comment 2 zalan 2020-02-16 21:08:06 PST
Created attachment 390898 [details]
Patch
Comment 3 Dean Jackson 2020-02-17 09:30:09 PST
Comment on attachment 390898 [details]
Patch

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

> Source/WebCore/layout/inlineformatting/InlineFormattingContext.cpp:286
> +        contentWidthAndMargin = geometry().inlineReplacedWidthAndMargin(downcast<ReplacedBox>(layoutBox), horizontalConstraints, { }, usedWidth);

Shouldn't the {}s be nullopts?
Comment 4 WebKit Commit Bot 2020-02-17 12:29:15 PST
Comment on attachment 390898 [details]
Patch

Clearing flags on attachment: 390898

Committed r256760: <https://trac.webkit.org/changeset/256760>
Comment 5 WebKit Commit Bot 2020-02-17 12:29:16 PST
All reviewed patches have been landed.  Closing bug.
Comment 6 zalan 2020-02-17 13:11:11 PST
(In reply to Dean Jackson from comment #3)
> Comment on attachment 390898 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=390898&action=review
> 
> > Source/WebCore/layout/inlineformatting/InlineFormattingContext.cpp:286
> > +        contentWidthAndMargin = geometry().inlineReplacedWidthAndMargin(downcast<ReplacedBox>(layoutBox), horizontalConstraints, { }, usedWidth);
> 
> Shouldn't the {}s be nullopts?
{} is nullopt when the type is WTF::Optional.