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

Unified Diff: third_party/WebKit/Source/core/dom/Node.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/dom/Node.h
diff --git a/third_party/WebKit/Source/core/dom/Node.h b/third_party/WebKit/Source/core/dom/Node.h
index d07e66cc70ae0fd7a6ce62ff099cc527e4a66c2b..0acf35eac50135466ee662ee8fa28d52f6e537a9 100644
--- a/third_party/WebKit/Source/core/dom/Node.h
+++ b/third_party/WebKit/Source/core/dom/Node.h
@@ -113,6 +113,11 @@ enum class CustomElementState {
NotDefinedFlag = 2 << nodeCustomElementShift,
};
+enum class SlotChangeType {
+ Initial,
+ Chained,
+};
+
class NodeRareDataBase {
public:
LayoutObject* layoutObject() const { return m_layoutObject; }
@@ -794,9 +799,13 @@ class CORE_EXPORT Node : public EventTarget {
return getFlag(IsFinishedParsingChildrenFlag);
}
- void checkSlotChange();
- void checkSlotChangeAfterInserted() { checkSlotChange(); }
- void checkSlotChangeBeforeRemoved() { checkSlotChange(); }
+ void checkSlotChange(SlotChangeType);
+ void checkSlotChangeAfterInserted() {
+ checkSlotChange(SlotChangeType::Initial);
+ }
+ void checkSlotChangeBeforeRemoved() {
+ checkSlotChange(SlotChangeType::Initial);
+ }
DECLARE_VIRTUAL_TRACE();
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/slotchange.html ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698