WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
185377
[LFC] Add FormattingContext::layoutOutOfFlowDescendants implementation
https://bugs.webkit.org/show_bug.cgi?id=185377
Summary
[LFC] Add FormattingContext::layoutOutOfFlowDescendants implementation
zalan
Reported
2018-05-07 07:18:35 PDT
ssia.
Attachments
Patch
(8.88 KB, patch)
2018-05-07 07:27 PDT
,
zalan
no flags
Details
Formatted Diff
Diff
Patch
(14.92 KB, patch)
2018-05-07 21:37 PDT
,
zalan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
zalan
Comment 1
2018-05-07 07:27:49 PDT
Created
attachment 339718
[details]
Patch
Antti Koivisto
Comment 2
2018-05-07 12:19:06 PDT
Comment on
attachment 339718
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=339718&action=review
> Source/WebCore/layout/FormattingContext.h:66 > - const LayoutContext& layoutContext() const { return m_layoutContext; } > + LayoutContext& layoutContext() const { return m_layoutContext; }
I'm not sure I understand what the intention with constness here is. If LayoutContext is part of the FormattingContext and it is mutated during layout then functions like FormattingContext::layoutOutOfFlowDescendants() probably shouldn't be const in the first place.
zalan
Comment 3
2018-05-07 13:31:09 PDT
(In reply to Antti Koivisto from
comment #2
)
> Comment on
attachment 339718
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=339718&action=review
> > > Source/WebCore/layout/FormattingContext.h:66 > > - const LayoutContext& layoutContext() const { return m_layoutContext; } > > + LayoutContext& layoutContext() const { return m_layoutContext; } > > I'm not sure I understand what the intention with constness here is. If > LayoutContext is part of the FormattingContext and it is mutated during > layout then functions like FormattingContext::layoutOutOfFlowDescendants() > probably shouldn't be const in the first place.
I think what I need to do here is to go back the original design when LayoutContext was passed in to FormattingContext::layout() (together with the mutable FormattingState). I changed it to a member while dealing with inherited floatings, but I think I can workaround that. FormattingContext::layout() will always mutate the (passed in) FormattingState by design. It also mutates the LayoutContext to construct Display::Boxes and generate new FormattingStates for the nested formatting contexts (and that is also by design)
zalan
Comment 4
2018-05-07 21:37:33 PDT
Created
attachment 339797
[details]
Patch
WebKit Commit Bot
Comment 5
2018-05-07 22:26:45 PDT
Comment on
attachment 339797
[details]
Patch Clearing flags on attachment: 339797 Committed
r231480
: <
https://trac.webkit.org/changeset/231480
>
WebKit Commit Bot
Comment 6
2018-05-07 22:26:47 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7
2018-05-07 22:27:20 PDT
<
rdar://problem/40048933
>
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