DescriptionAvoid transiently creating disallowed elements when building <use> trees
When building a shadow tree for a <use>, a direct reference to a
"disallowed" element would cause the element to first be inserted before
buildShadowTree() noticed it's disallowed and returns false, so it's
removed again.
This transient mutation could take place while computing an animation
update, if a CSS property was being animated and the layout tree/style
was dirty.
Avoid the insert-remove sequence by checking if the initial target is
disallowed up-front. This matches how it's done in the general subtree
building case inside buildShadowTree().
BUG=478549
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194421
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|