Bug 304574
| Summary: | [UsedStyle] Split a ComputedStyle class out of RenderStyle and have RenderStyle forward to it | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Sam Weinig <sam> |
| Component: | CSS | Assignee: | Sam Weinig <sam> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | koivisto, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 18 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Sam Weinig
As a first step toward building clearer API distinction between computed and used styles, we should split out the data from RenderStyle into a new type, Style::ComputedStyle, and have RenderStyle contain and forward to it.
This will be largely mechanical, but will allow follow ups where we convert RenderStyle (either keeping the name, or renaming it to Style::UsedStyle or Style::UsedStyleResolver or the like) to a readonly view-like type, which wraps a reference to Style::ComputedStyle.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Sam Weinig
Pull request: https://github.com/WebKit/WebKit/pull/55773
EWS
Committed 304848@main (99192bf1195d): <https://commits.webkit.org/304848@main>
Reviewed commits have been landed. Closing PR #55773 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/166991069>