Bug 201355 - [LFC] Pass FormattingContext to Geometry/Quirks/BlockMarginCollapsing classes
Summary: [LFC] Pass FormattingContext to Geometry/Quirks/BlockMarginCollapsing classes
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-08-30 14:10 PDT by zalan
Modified: 2019-08-30 16:12 PDT (History)
6 users (show)

See Also:


Attachments
Patch (43.40 KB, patch)
2019-08-30 14:16 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-08-30 14:10:33 PDT
Instead of the LayoutState. We'll use the formatting context to limit access to display boxes.
Comment 1 Radar WebKit Bug Importer 2019-08-30 14:10:56 PDT
<rdar://problem/54895959>
Comment 2 zalan 2019-08-30 14:16:51 PDT
Created attachment 377749 [details]
Patch
Comment 3 Antti Koivisto 2019-08-30 14:47:47 PDT
Comment on attachment 377749 [details]
Patch

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

> Source/WebCore/layout/FormattingContextQuirks.cpp:56
> +            auto verticalMargin = Geometry(formattingContext()).computedVerticalMargin(*containingBlock, usedValues);

You could do

formattingContext().geometry().computedVerticalMargin()

here and elsewhere
Comment 4 WebKit Commit Bot 2019-08-30 15:45:56 PDT
Comment on attachment 377749 [details]
Patch

Clearing flags on attachment: 377749

Committed r249349: <https://trac.webkit.org/changeset/249349>
Comment 5 WebKit Commit Bot 2019-08-30 15:45:58 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 zalan 2019-08-30 16:12:16 PDT
(In reply to Antti Koivisto from comment #3)
> Comment on attachment 377749 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=377749&action=review
> 
> > Source/WebCore/layout/FormattingContextQuirks.cpp:56
> > +            auto verticalMargin = Geometry(formattingContext()).computedVerticalMargin(*containingBlock, usedValues);
> 
> You could do
> 
> formattingContext().geometry().computedVerticalMargin()
> 
> here and elsewhere
That's indeed a good idea. Let me do it in a separate patch.