Bug 1445392: Make HTMLSlotElement slot change event stuff not linear. r=smaug
Also fix refcount churn in nsDOMMutationObserver and such. MozReview-Commit-ID: GwEB0LZY7Ss
This commit is contained in:
@@ -34,9 +34,7 @@ HTMLSlotElement::HTMLSlotElement(already_AddRefed<mozilla::dom::NodeInfo>& aNode
|
||||
{
|
||||
}
|
||||
|
||||
HTMLSlotElement::~HTMLSlotElement()
|
||||
{
|
||||
}
|
||||
HTMLSlotElement::~HTMLSlotElement() = default;
|
||||
|
||||
NS_IMPL_ADDREF_INHERITED(HTMLSlotElement, nsGenericHTMLElement)
|
||||
NS_IMPL_RELEASE_INHERITED(HTMLSlotElement, nsGenericHTMLElement)
|
||||
@@ -216,14 +214,19 @@ HTMLSlotElement::ClearAssignedNodes()
|
||||
}
|
||||
|
||||
void
|
||||
HTMLSlotElement::EnqueueSlotChangeEvent() const
|
||||
HTMLSlotElement::EnqueueSlotChangeEvent()
|
||||
{
|
||||
if (mInSignalSlotList) {
|
||||
return;
|
||||
}
|
||||
|
||||
DocGroup* docGroup = OwnerDoc()->GetDocGroup();
|
||||
if (!docGroup) {
|
||||
return;
|
||||
}
|
||||
|
||||
docGroup->SignalSlotChange(this);
|
||||
mInSignalSlotList = true;
|
||||
docGroup->SignalSlotChange(*this);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user