Bug 99827 - [Shadow]: improve the performance of @host @-rules
Summary: [Shadow]: improve the performance of @host @-rules
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Web Components Team
URL:
Keywords:
Depends on:
Blocks: 97282
  Show dependency treegraph
 
Reported: 2012-10-19 03:28 PDT by Takashi Sakamoto
Modified: 2019-10-04 22:34 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Takashi Sakamoto 2012-10-19 03:28:15 PDT
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.
Comment 1 Ryosuke Niwa 2019-10-04 22:34:14 PDT
@host is no longer a thing.