Bug 99827
| Summary: | [Shadow]: improve the performance of @host @-rules | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Takashi Sakamoto <tasak> |
| Component: | CSS | Assignee: | Web Components Team <webcomponents-bugzilla> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | morrita, rniwa |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | |||
| Bug Blocks: | 97282 | ||
Takashi Sakamoto
To check whether any @host @-rules are applied to the given element, currently it is required to traverse shadow roots and to ask StyleScopeResolver about each ShadowRoot.
It would be a little slow. ElementShadow (or suitable class) should have some flag to cache whether any @host @-rules is applied to shadow host or not.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ryosuke Niwa
@host is no longer a thing.