Bug 178503 - [FrameView::layout cleanup] Replace m_nestedLayoutCount with isLayoutNested()
Summary: [FrameView::layout cleanup] Replace m_nestedLayoutCount with isLayoutNested()
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: 2017-10-18 19:41 PDT by zalan
Modified: 2017-10-19 08:52 PDT (History)
6 users (show)

See Also:


Attachments
Patch (6.43 KB, patch)
2017-10-18 21:24 PDT, zalan
no flags Details | Formatted Diff | Diff
Patch (6.96 KB, patch)
2017-10-18 21:28 PDT, zalan
no flags Details | Formatted Diff | Diff
Patch (6.98 KB, patch)
2017-10-19 08:25 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 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.
Comment 1 Radar WebKit Bug Importer 2017-10-18 19:41:30 PDT
<rdar://problem/35066561>
Comment 2 zalan 2017-10-18 21:24:44 PDT
Created attachment 324205 [details]
Patch
Comment 3 zalan 2017-10-18 21:28:46 PDT
Created attachment 324206 [details]
Patch
Comment 4 Antti Koivisto 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.
Comment 5 zalan 2017-10-19 08:25:25 PDT
Created attachment 324233 [details]
Patch
Comment 6 zalan 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.
Comment 7 WebKit Commit Bot 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>
Comment 8 WebKit Commit Bot 2017-10-19 08:52:43 PDT
All reviewed patches have been landed.  Closing bug.