Bug 102669 - [Shadow DOM] implement a new style resolver for shadow dom trees
Summary: [Shadow DOM] implement a new style resolver for shadow dom trees
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Takashi Sakamoto
URL:
Keywords:
Depends on:
Blocks: 97282
  Show dependency treegraph
 
Reported: 2012-11-19 03:40 PST by Takashi Sakamoto
Modified: 2015-09-16 14:13 PDT (History)
10 users (show)

See Also:


Attachments
WIP (88.84 KB, patch)
2012-11-19 04:00 PST, Takashi Sakamoto
no flags Details | Formatted Diff | Diff
WIP (91.03 KB, patch)
2012-11-21 01:31 PST, Takashi Sakamoto
no flags Details | Formatted Diff | Diff
WIP (91.13 KB, patch)
2012-11-21 02:48 PST, Takashi Sakamoto
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Takashi Sakamoto 2012-11-19 03:40:01 PST
Currently updating any styles in shadow dom trees causes full style update. However, the update doesn't affect document tree. So we should update only the affected shadow dom trees.
Comment 1 Takashi Sakamoto 2012-11-19 04:00:53 PST
Created attachment 174942 [details]
WIP
Comment 2 Takashi Sakamoto 2012-11-19 04:07:26 PST
This WIP patch contains:
(1) add ShadowStyleSheetCollection and move all styles in shadow dom trees from DocumentStyleSheetCollection to ShadowStyleSheetCollection.
(2) update HTMLStyleElement and StyleElement to provide treescope information for ShadowStyleSheetCollection.
(3) add StyleShadowResolver and make StyleResolver to invoke the resolver.
(4) use ShadowStyleSheetCollection to update RuleSets in shadow dom trees instead of all RuleSets.

This WIP patch also makes document.stylesheet not to include styles in shadow dom trees.
Comment 3 EFL EWS Bot 2012-11-19 04:15:34 PST
Comment on attachment 174942 [details]
WIP

Attachment 174942 [details] did not pass efl-ews (efl):
Output: http://queues.webkit.org/results/14907183
Comment 4 Build Bot 2012-11-19 05:22:48 PST
Comment on attachment 174942 [details]
WIP

Attachment 174942 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/14907207
Comment 5 Takashi Sakamoto 2012-11-21 01:31:15 PST
Created attachment 175372 [details]
WIP
Comment 6 EFL EWS Bot 2012-11-21 01:50:56 PST
Comment on attachment 175372 [details]
WIP

Attachment 175372 [details] did not pass efl-ews (efl):
Output: http://queues.webkit.org/results/14894915
Comment 7 Takashi Sakamoto 2012-11-21 02:48:27 PST
Created attachment 175395 [details]
WIP