Bug 178401

Summary: [FrameView::layout cleanup] Subtree should read subtreeLayout.
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

Description zalan 2017-10-17 11:20:01 PDT
and m_layoutRoot -> m_subtreeLayoutRoot
Comment 1 Radar WebKit Bug Importer 2017-10-17 11:21:39 PDT
<rdar://problem/35033431>
Comment 2 zalan 2017-10-17 11:41:15 PDT
Created attachment 324033 [details]
Patch
Comment 3 Simon Fraser (smfr) 2017-10-17 11:44:15 PDT
Comment on attachment 324033 [details]
Patch

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

> Source/WebCore/page/FrameView.cpp:1359
> +        if (!layoutRoot || !layoutRoot->needsLayout())

Kinda weird that we can have a m_subtreeLayoutRoot with needsLayout() == false (if that happens).

> Source/WebCore/page/FrameView.cpp:1392
> +    bool performingSubtreeLayout = false;

or isSubtreeLayout?

> Source/WebCore/page/FrameView.cpp:1505
> +        ASSERT(allowSubtreeLayout || !performingSubtreeLayout);

Said added ASSERT_IMPLIES which would be appropriate here: ASSERT_IMPLIES(performingSubtreeLayout, allowSubtreeLayout)
Comment 4 zalan 2017-10-17 12:41:59 PDT
Created attachment 324043 [details]
Patch
Comment 5 WebKit Commit Bot 2017-10-17 13:09:19 PDT
Comment on attachment 324043 [details]
Patch

Clearing flags on attachment: 324043

Committed r223569: <https://trac.webkit.org/changeset/223569>
Comment 6 WebKit Commit Bot 2017-10-17 13:09:20 PDT
All reviewed patches have been landed.  Closing bug.