Bug 179272 - LayoutState should take RenderBox reference.
Summary: LayoutState should take RenderBox reference.
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-03 15:52 PDT by zalan
Modified: 2017-11-03 22:40 PDT (History)
5 users (show)

See Also:


Attachments
Patch (13.89 KB, patch)
2017-11-03 16:19 PDT, zalan
no flags Details | Formatted Diff | Diff
Patch (13.35 KB, patch)
2017-11-03 18:50 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-11-03 15:52:59 PDT
instead of RenderBox*
Comment 1 Radar WebKit Bug Importer 2017-11-03 15:53:23 PDT
<rdar://problem/35345247>
Comment 2 zalan 2017-11-03 16:19:14 PDT
Created attachment 325984 [details]
Patch
Comment 3 Simon Fraser (smfr) 2017-11-03 16:21:17 PDT
Comment on attachment 325984 [details]
Patch

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

> Source/WebCore/rendering/LayoutState.h:124
> -    RenderObject* m_renderer { nullptr };
> +    RenderElement* m_root { nullptr };

Isn't this the current renderer (the one associated with this state), not the root?
Comment 4 zalan 2017-11-03 18:46:33 PDT
(In reply to Simon Fraser (smfr) from comment #3)
> Comment on attachment 325984 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=325984&action=review
> 
> > Source/WebCore/rendering/LayoutState.h:124
> > -    RenderObject* m_renderer { nullptr };
> > +    RenderElement* m_root { nullptr };
> 
> Isn't this the current renderer (the one associated with this state), not
> the root?
It's the root of the LayoutState, but it indeed could be confusing. I'll revert it back to renderer.
Comment 5 zalan 2017-11-03 18:50:17 PDT
Created attachment 325999 [details]
Patch
Comment 6 WebKit Commit Bot 2017-11-03 22:40:26 PDT
Comment on attachment 325999 [details]
Patch

Clearing flags on attachment: 325999

Committed r224455: <https://trac.webkit.org/changeset/224455>
Comment 7 WebKit Commit Bot 2017-11-03 22:40:27 PDT
All reviewed patches have been landed.  Closing bug.