Bug 179483 - [LayoutState cleanup] Remove renderer data members from state maintainers.
Summary: [LayoutState cleanup] Remove renderer data members from state maintainers.
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-11-09 08:53 PST by zalan
Modified: 2017-11-09 10:50 PST (History)
7 users (show)

See Also:


Attachments
Patch (6.46 KB, patch)
2017-11-09 08:58 PST, zalan
no flags Details | Formatted Diff | Diff
Patch (9.04 KB, patch)
2017-11-09 10:27 PST, 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-11-09 08:53:33 PST
Although layout is not supposed to mutate the tree, it's safer not to have them as data members.
Comment 1 Radar WebKit Bug Importer 2017-11-09 08:55:46 PST
<rdar://problem/35442548>
Comment 2 zalan 2017-11-09 08:58:26 PST
Created attachment 326452 [details]
Patch
Comment 3 Darin Adler 2017-11-09 09:25:57 PST
Comment on attachment 326452 [details]
Patch

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

> Source/WebCore/rendering/LayoutState.h:165
> +    LayoutContext* m_layoutContext { nullptr };

I would have just called this "m_acontext" since the class is all about layout and has layout in its name.

> Source/WebCore/rendering/LayoutState.h:185
> +    LayoutContext& m_layoutContext;

Ditto.
Comment 4 zalan 2017-11-09 10:03:25 PST
(In reply to Darin Adler from comment #3)
> Comment on attachment 326452 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=326452&action=review
> 
> > Source/WebCore/rendering/LayoutState.h:165
> > +    LayoutContext* m_layoutContext { nullptr };
> 
> I would have just called this "m_acontext" since the class is all about
> layout and has layout in its name.
Indeed.
Comment 5 zalan 2017-11-09 10:27:34 PST
Created attachment 326465 [details]
Patch
Comment 6 WebKit Commit Bot 2017-11-09 10:50:07 PST
Comment on attachment 326465 [details]
Patch

Clearing flags on attachment: 326465

Committed r224637: <https://trac.webkit.org/changeset/224637>
Comment 7 WebKit Commit Bot 2017-11-09 10:50:09 PST
All reviewed patches have been landed.  Closing bug.