summaryrefslogtreecommitdiffstats
path: root/dom/base/FragmentOrElement.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-04 23:29:10 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:22 -0500
commit53c9b77ed41aebb157012eff5e57cad3a962d18e (patch)
tree774cec41db2f86d1621497b7df20899bc9255622 /dom/base/FragmentOrElement.cpp
parente6733c9278d0e9687be83de5b5f409a43653fbee (diff)
downloadUXP-53c9b77ed41aebb157012eff5e57cad3a962d18e.tar
UXP-53c9b77ed41aebb157012eff5e57cad3a962d18e.tar.gz
UXP-53c9b77ed41aebb157012eff5e57cad3a962d18e.tar.lz
UXP-53c9b77ed41aebb157012eff5e57cad3a962d18e.tar.xz
UXP-53c9b77ed41aebb157012eff5e57cad3a962d18e.zip
Bug 1315885 - Part 4: Implement callback reaction for custom element reactions.
Note: Skipped SyncInvokeReactions since it is removed in CE v1, waste of time. Tag UXP Issue #1344
Diffstat (limited to 'dom/base/FragmentOrElement.cpp')
-rw-r--r--dom/base/FragmentOrElement.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/dom/base/FragmentOrElement.cpp b/dom/base/FragmentOrElement.cpp
index 5755fb817..e341ae315 100644
--- a/dom/base/FragmentOrElement.cpp
+++ b/dom/base/FragmentOrElement.cpp
@@ -584,8 +584,10 @@ FragmentOrElement::nsDOMSlots::Traverse(nsCycleCollectionTraversalCallback &cb)
if (mExtendedSlots->mCustomElementData) {
for (uint32_t i = 0;
- i < mExtendedSlots->mCustomElementData->mCallbackQueue.Length(); i++) {
- mExtendedSlots->mCustomElementData->mCallbackQueue[i]->Traverse(cb);
+ i < mExtendedSlots->mCustomElementData->mReactionQueue.Length(); i++) {
+ if (mExtendedSlots->mCustomElementData->mReactionQueue[i]) {
+ mExtendedSlots->mCustomElementData->mReactionQueue[i]->Traverse(cb);
+ }
}
}