| Index: third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp b/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
|
| index 42ce6cf622668590db098c89ec3fd8a3b9d03fd9..3f28c62468973ebbd4f4d98e61155daa7a47e6de 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
|
| @@ -149,7 +149,6 @@ void HTMLSlotElement::saveAndClearDistribution() {
|
| }
|
|
|
| void HTMLSlotElement::dispatchSlotChangeEvent() {
|
| - m_slotchangeEventEnqueued = false;
|
| Event* event = Event::createBubble(EventTypeNames::slotchange);
|
| event->setTarget(this);
|
| dispatchScopedEvent(event);
|
| @@ -331,8 +330,7 @@ void HTMLSlotElement::didSlotChange(SlotChangeType slotChangeType) {
|
| void HTMLSlotElement::enqueueSlotChangeEvent() {
|
| if (m_slotchangeEventEnqueued)
|
| return;
|
| - Microtask::enqueueMicrotask(WTF::bind(
|
| - &HTMLSlotElement::dispatchSlotChangeEvent, wrapPersistent(this)));
|
| + MutationObserver::enqueueSlotChange(*this);
|
| m_slotchangeEventEnqueued = true;
|
| }
|
|
|
|
|