DescriptionAccording to the new distribution algorithms, a child node of a shadow insertion point can be a descendant of (a parent of) a content insertion point in the render tree. Therefore, when recalculating style, we must traverse shadow trees in the following order:
1. Traverse shadow trees from the youngest to the oldest as usual, but we must skip a shadow insertion point in each shadow tree.
2. After that, traverse each subtree rooted by a shadow insertion point in each shadow tree, from the oldest to the youngest.
This order guarantees that a child node of shadow insertion point in the younger shadow root is visited after a content insertion point in the older shadow root.
(*1) http://w3c.github.io/webcomponents/spec/shadow/#distribution-algorithms
BUG=317895
Patch Set 1 #
Total comments: 1
Patch Set 2 : Make styleRecalc traverse shadow trees in 2 pass algorithm #
Total comments: 4
Messages
Total messages: 8 (0 generated)
|