Bug 227033 - Cleanup RenderElement::RendererCreationType
Summary: Cleanup RenderElement::RendererCreationType
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: 2021-06-15 10:01 PDT by zalan
Modified: 2021-06-15 20:59 PDT (History)
14 users (show)

See Also:


Attachments
Patch (7.30 KB, patch)
2021-06-15 10:09 PDT, zalan
no flags Details | Formatted Diff | Diff
Patch (7.34 KB, patch)
2021-06-15 13:07 PDT, zalan
no flags Details | Formatted Diff | Diff
Patch (9.38 KB, patch)
2021-06-15 19:39 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 2021-06-15 10:01:34 PDT
it's confusing and highly error-prone.
Comment 1 zalan 2021-06-15 10:09:21 PDT
Created attachment 431453 [details]
Patch
Comment 2 zalan 2021-06-15 12:27:55 PDT
Looks like we've got one test covering this. Will adjust the patch.
Comment 3 zalan 2021-06-15 13:07:12 PDT
Created attachment 431471 [details]
Patch
Comment 4 Simon Fraser (smfr) 2021-06-15 13:53:20 PDT
Comment on attachment 431471 [details]
Patch

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

> Source/WebCore/rendering/RenderElement.cpp:189
> +        if (rendererTypeOverride.contains(ConstructBlockLevelRendererFor::TableTypes))
>              return createRenderer<RenderBlockFlow>(element, WTFMove(style));

Is this entire 'default' block about table types? Seems like it would better to explicitly check for a table display type here?
Comment 5 zalan 2021-06-15 14:52:48 PDT
(In reply to Simon Fraser (smfr) from comment #4)
> Comment on attachment 431471 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=431471&action=review
> 
> > Source/WebCore/rendering/RenderElement.cpp:189
> > +        if (rendererTypeOverride.contains(ConstructBlockLevelRendererFor::TableTypes))
> >              return createRenderer<RenderBlockFlow>(element, WTFMove(style));
> 
> Is this entire 'default' block about table types? Seems like it would better
> to explicitly check for a table display type here?

Yeah, that's a good idea.
Comment 6 zalan 2021-06-15 19:39:29 PDT
Created attachment 431511 [details]
Patch
Comment 7 EWS 2021-06-15 20:58:58 PDT
Committed r278919 (238850@main): <https://commits.webkit.org/238850@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 431511 [details].
Comment 8 Radar WebKit Bug Importer 2021-06-15 20:59:17 PDT
<rdar://problem/79377750>