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

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

Issue 2420043002: Stop re-signaling a slotchange event (Closed)
Patch Set: rebased Created 4 years, 1 month 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
Index: third_party/WebKit/Source/core/html/HTMLSlotElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLSlotElement.h b/third_party/WebKit/Source/core/html/HTMLSlotElement.h
index a17073ef1d8aa278afeeaa2c9b7eceb72dbdf129..bc7db2dc972aacb3d4e4425c5bf5136ad54e158d 100644
--- a/third_party/WebKit/Source/core/html/HTMLSlotElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLSlotElement.h
@@ -91,12 +91,11 @@ class CORE_EXPORT HTMLSlotElement final : public HTMLElement {
bool hasAssignedNodesSlow() const;
bool findHostChildWithSameSlotName() const;
- void enqueueSlotChangeEvent();
-
void clearDistribution();
void saveAndClearDistribution();
bool supportsDistribution() const { return isInV1ShadowTree(); }
+ void didSlotChange(SlotChangeType);
static AtomicString normalizeSlotName(const AtomicString&);
@@ -109,6 +108,7 @@ class CORE_EXPORT HTMLSlotElement final : public HTMLElement {
void removedFrom(ContainerNode*) final;
void willRecalcStyle(StyleRecalcChange) final;
+ void enqueueSlotChangeEvent();
void dispatchSlotChangeEvent();
HeapVector<Member<Node>> m_assignedNodes;
« no previous file with comments | « third_party/WebKit/Source/core/dom/shadow/SlotAssignment.cpp ('k') | third_party/WebKit/Source/core/html/HTMLSlotElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698