Bug 178503

Summary: [FrameView::layout cleanup] Replace m_nestedLayoutCount with isLayoutNested()
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, commit-queue, koivisto, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

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.