[Webkit-unassigned] [Bug 49142] Implement HTML5 style scoped attribute

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 22 20:58:15 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=49142





--- Comment #5 from Roland Steiner <rolandsteiner at chromium.org>  2011-05-22 20:58:14 PST ---
(In reply to comment #2)
> I think what we should have seems separate "StyleScope" class or something like that.
> It could be in ElementRareData.

Putting this into a separate class would definitely be a good idea to future-proof the code. 

However, for the time being I would propose to only implement this for shadow roots (i.e., the TreeScope class) for the following reason:

Currently, an element asks the Document object to resolve its style. Changing this to TreeScope is no problem. OTOH, having any arbitrary element be able to host a scoped <style> would mean either

a) climbing the tree for style resolution rather than O(1) access to Document/TreeScope, or
b) adding a separate style scope concept, requiring a separate style scope pointer on Element (memory overhead + updating overhead).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list