| Index: third_party/WebKit/Source/core/dom/Node.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
|
| index 0de3ef3e8fb1f9c489a3aaafc0cbd78717d2d243..8983f821c4c68e0a9ee2ade29d6467b4f949a659 100644
|
| --- a/third_party/WebKit/Source/core/dom/Node.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Node.cpp
|
| @@ -2363,7 +2363,7 @@ void Node::setV0CustomElementState(V0CustomElementState newState) {
|
| toElement(this)->pseudoStateChanged(CSSSelector::PseudoUnresolved);
|
| }
|
|
|
| -void Node::checkSlotChange() {
|
| +void Node::checkSlotChange(SlotChangeType slotChangeType) {
|
| // Common check logic is used in both cases, "after inserted" and "before
|
| // removed".
|
| if (!isSlotable())
|
| @@ -2380,7 +2380,7 @@ void Node::checkSlotChange() {
|
| // Although DOM Standard requires "assign a slot for node / run assign
|
| // slotables" at this timing, we skip it as an optimization.
|
| if (HTMLSlotElement* slot = root->ensureSlotAssignment().findSlot(*this))
|
| - slot->enqueueSlotChangeEvent();
|
| + slot->didSlotChange(slotChangeType);
|
| } else {
|
| // Relevant DOM Standard:
|
| // https://dom.spec.whatwg.org/#concept-node-insert
|
| @@ -2395,7 +2395,7 @@ void Node::checkSlotChange() {
|
| // TODO(hayato): Support slotchange for slots in non-shadow trees.
|
| if (ShadowRoot* root = containingShadowRoot()) {
|
| if (root && root->isV1() && !parentSlot.hasAssignedNodesSlow())
|
| - parentSlot.enqueueSlotChangeEvent();
|
| + parentSlot.didSlotChange(slotChangeType);
|
| }
|
| }
|
| }
|
|
|