Chromium Code Reviews
DescriptionCheck the next chain of a slotchange event correctly on a slotchange at a fallback slot
When a slotchange event happens at a fallback slot, HTMLSlotElement::enqueueSlotChangeEvent() does not check
the condition of the next chain of a slotchange correctly.
It only checks whether the parent is a shadow host or not.
Instead of its own incomplete check logic, we should re-use Node::checkSlotChange()
here.
This also fixes a crash, reported by bug 642303, because needsDistributionRecalc
flag is set correctly by detecting the next chain of a slotchange event.
BUG=642303
Committed: https://crrev.com/4ab3573f362bbb835b25567448cc2c4b77427e12
Cr-Commit-Position: refs/heads/master@{#416491}
Patch Set 1 #Patch Set 2 : Fix a test #
Messages
Total messages: 22 (14 generated)
|
|||||||||||||||||||||||||||||||||||||