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

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

Issue 2306873002: Make slotchange events bubble (Closed)
Patch Set: fix Created 4 years, 3 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/LayoutTests/shadow-dom/slotchange.html ('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 de9fa21b90981cc7362f68ac9134779bb871cf0c..ee7300a11fa72921c1c503c42a1d24486d30e447 100644
--- a/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
@@ -154,7 +154,7 @@ void HTMLSlotElement::saveAndClearDistribution()
void HTMLSlotElement::dispatchSlotChangeEvent()
{
m_slotchangeEventEnqueued = false;
- Event* event = Event::create(EventTypeNames::slotchange);
+ Event* event = Event::createBubble(EventTypeNames::slotchange);
event->setTarget(this);
dispatchScopedEvent(event);
}
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/slotchange.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698