RESOLVED FIXED 178503
[FrameView::layout cleanup] Replace m_nestedLayoutCount with isLayoutNested()
https://bugs.webkit.org/show_bug.cgi?id=178503
Summary [FrameView::layout cleanup] Replace m_nestedLayoutCount with isLayoutNested()
zalan
Reported 2017-10-18 19:41:06 PDT
We don't really care how nested the layout is, all we need to know whether it is.
Attachments
Patch (6.43 KB, patch)
2017-10-18 21:24 PDT, zalan
no flags
Patch (6.96 KB, patch)
2017-10-18 21:28 PDT, zalan
no flags
Patch (6.98 KB, patch)
2017-10-19 08:25 PDT, zalan
no flags
Radar WebKit Bug Importer
Comment 1 2017-10-18 19:41:30 PDT
zalan
Comment 2 2017-10-18 21:24:44 PDT
zalan
Comment 3 2017-10-18 21:28:46 PDT
Antti Koivisto
Comment 4 2017-10-19 02:39:05 PDT
Comment on attachment 324206 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=324206&action=review > Source/WebCore/page/FrameView.h:811 > + enum class LayoutNestedState { Invalid, NotNested, Nested }; > + LayoutNestedState m_layoutNestedState { LayoutNestedState::Invalid }; Maybe NotInLayout instead if Invalid? Wonder if we could some some sort of LayoutContext struct that would contain stuff that only makes sense during layout.
zalan
Comment 5 2017-10-19 08:25:25 PDT
zalan
Comment 6 2017-10-19 08:28:59 PDT
(In reply to Antti Koivisto from comment #4) > Comment on attachment 324206 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=324206&action=review > > > Source/WebCore/page/FrameView.h:811 > > + enum class LayoutNestedState { Invalid, NotNested, Nested }; > > + LayoutNestedState m_layoutNestedState { LayoutNestedState::Invalid }; > > Maybe NotInLayout instead if Invalid? > > Wonder if we could some some sort of LayoutContext struct that would contain > stuff that only makes sense during layout. I was thinking about that too! Once I am done with this remove/rearrange/refactor frameview::layout, I'll take another look and see what type of context we could come up with.
WebKit Commit Bot
Comment 7 2017-10-19 08:52:41 PDT
Comment on attachment 324233 [details] Patch Clearing flags on attachment: 324233 Committed r223689: <https://trac.webkit.org/changeset/223689>
WebKit Commit Bot
Comment 8 2017-10-19 08:52:43 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.