[Webkit-unassigned] [Bug 100451] [Shadow DOM][Meta] Changing attribute does not cause distribution.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 30 23:11:19 PDT 2012


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





--- Comment #8 from Hajime Morrita <morrita at google.com>  2012-10-30 23:12:38 PST ---
(In reply to comment #7)
> I'm now thinking the following plan:
> 
> 1. ShadowRoot should know the set of descendant InsertionPoint
>     - Maybe we can hook insertedInto and removedFrom
> 2. ShadowRoot should also know the descendant elements having ElementShadow
>     - We also track addShadowRoot()
> 3. ShadowRoot will have FeatureRuleSet or something like that
>     - We update it when InsertionPoint / ElementShadow is added/removed
> 4. When attribute of the direct child (or non-direct child in fallback element case) is changed, we consult with the FeatureRuleSet whether the change is related or not.
>     - If it's related, we invalidate the distribution.
>     - If not, we recursively consult with ElementShadow.

Sounds like a plan.
I hope we only need to track only the number of insertion points/shadows instead of the nodes
themselves.

Probably we can land the slow version fast, then introducing these optimisation.

-- 
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