Bug 254297
| Summary: | StyleRuleGroup should be composited instead of inherited | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Matthieu Dubet <m_dubet> |
| Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Matthieu Dubet
Currently, StyleRuleGroup is modeled exactly like CSSGroupingRule (being an intermediate class in the Rule <-> StyleRule hierarchy).
https://w3c.github.io/csswg-drafts/cssom/#the-cssgroupingrule-interface
We should favor composition instead of inheritance in general, and this is also a prerequisite of the CSS Nesting CSSOM implementation.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/107103847>
Matthieu Dubet
Pull request: https://github.com/WebKit/WebKit/pull/11835