Bug 237413 - Simplify pseudo element resolution
Summary: Simplify pseudo element resolution
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Antti Koivisto
URL:
Keywords: InRadar
Depends on:
Blocks: 237362
  Show dependency treegraph
 
Reported: 2022-03-03 02:26 PST by Antti Koivisto
Modified: 2022-03-03 09:26 PST (History)
8 users (show)

See Also:


Attachments
Patch (11.73 KB, patch)
2022-03-03 02:28 PST, Antti Koivisto
no flags Details | Formatted Diff | Diff
Patch (27.49 KB, patch)
2022-03-03 04:31 PST, Antti Koivisto
no flags Details | Formatted Diff | Diff
Patch (29.82 KB, patch)
2022-03-03 05:28 PST, Antti Koivisto
no flags Details | Formatted Diff | Diff
Patch (33.20 KB, patch)
2022-03-03 06:05 PST, Antti Koivisto
no flags Details | Formatted Diff | Diff
Patch for landing (32.38 KB, patch)
2022-03-03 08:12 PST, Antti Koivisto
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Koivisto 2022-03-03 02:26:50 PST
We can add pseudo element styles directly to their parent style instead of having a separate map for that.
Comment 1 Antti Koivisto 2022-03-03 02:28:29 PST
Created attachment 453713 [details]
Patch
Comment 2 Antti Koivisto 2022-03-03 04:31:30 PST
Created attachment 453719 [details]
Patch
Comment 3 Antti Koivisto 2022-03-03 05:28:42 PST
Created attachment 453724 [details]
Patch
Comment 4 Antti Koivisto 2022-03-03 06:05:31 PST
Created attachment 453725 [details]
Patch
Comment 5 Antoine Quint 2022-03-03 07:44:48 PST
Comment on attachment 453725 [details]
Patch

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

> Source/WebCore/ChangeLog:64
> +

You probably want to merge the two ChangeLog entries.

> Source/WebCore/rendering/style/RenderStyle.cpp:116
> +    auto newStyle = RenderStyle(style, Clone);

I have a question reading this code: do we prefer this to the more compact `RenderStyle newStyle(style, Clone)`?
Comment 6 EWS 2022-03-03 07:55:56 PST
ChangeLog entry in Source/WebCore/ChangeLog contains OOPS!.
Comment 7 Antti Koivisto 2022-03-03 08:12:06 PST
Created attachment 453743 [details]
Patch for landing
Comment 8 Antti Koivisto 2022-03-03 08:12:59 PST
> > +    auto newStyle = RenderStyle(style, Clone);
> 
> I have a question reading this code: do we prefer this to the more compact
> `RenderStyle newStyle(style, Clone)`?

I don't think there is policy on this but I feel it often reads better like this.
Comment 9 EWS 2022-03-03 09:25:26 PST
Committed r290779 (248023@main): <https://commits.webkit.org/248023@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 453743 [details].
Comment 10 Radar WebKit Bug Importer 2022-03-03 09:26:19 PST
<rdar://problem/89758898>