Bug 102669

Summary: [Shadow DOM] implement a new style resolver for shadow dom trees
Product: WebKit Reporter: Takashi Sakamoto <tasak>
Component: CSSAssignee: Takashi Sakamoto <tasak>
Status: RESOLVED WONTFIX    
Severity: Normal CC: allan.jensen, cmarcelo, gyuyoung.kim, macpherson, menard, ojan, rakuco, rniwa, syoichi, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 97282    
Attachments:
Description Flags
WIP
none
WIP
none
WIP none

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