Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(879)

Unified Diff: third_party/WebKit/Source/core/html/HTMLSlotElement.cpp

Issue 2622193002: Dispatch slotchange events in "notify mutation observers" steps (Closed)
Patch Set: fixed Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLSlotElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLSlotElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698