Bug 1596391 - Remove Get/SetXBLInsertionPoint. r=smaug
They're dead. Depends on D52992 Differential Revision: https://phabricator.services.mozilla.com/D52993
This commit is contained in:
@@ -532,7 +532,6 @@ static_assert(sizeof(FragmentOrElement::nsDOMSlots) <= MaxDOMSlotSizeAllowed,
|
||||
|
||||
void nsIContent::nsExtendedContentSlots::UnlinkExtendedSlots() {
|
||||
mBindingParent = nullptr;
|
||||
mXBLInsertionPoint = nullptr;
|
||||
mContainingShadow = nullptr;
|
||||
mAssignedSlot = nullptr;
|
||||
}
|
||||
@@ -547,9 +546,6 @@ void nsIContent::nsExtendedContentSlots::TraverseExtendedSlots(
|
||||
|
||||
NS_CYCLE_COLLECTION_NOTE_EDGE_NAME(aCb, "mExtendedSlots->mAssignedSlot");
|
||||
aCb.NoteXPCOMChild(NS_ISUPPORTS_CAST(nsIContent*, mAssignedSlot.get()));
|
||||
|
||||
NS_CYCLE_COLLECTION_NOTE_EDGE_NAME(aCb, "mExtendedSlots->mXBLInsertionPoint");
|
||||
aCb.NoteXPCOMChild(mXBLInsertionPoint.get());
|
||||
}
|
||||
|
||||
nsIContent::nsExtendedContentSlots::nsExtendedContentSlots() {}
|
||||
@@ -882,18 +878,6 @@ void nsIContent::GetEventTargetParent(EventChainPreVisitor& aVisitor) {
|
||||
}
|
||||
}
|
||||
|
||||
// check for an anonymous parent
|
||||
// XXX XBL2/sXBL issue
|
||||
if (HasFlag(NODE_MAY_BE_IN_BINDING_MNGR)) {
|
||||
nsIContent* insertionParent = GetXBLInsertionParent();
|
||||
NS_ASSERTION(!(aVisitor.mEventTargetAtParent && insertionParent &&
|
||||
aVisitor.mEventTargetAtParent != insertionParent),
|
||||
"Retargeting and having insertion parent!");
|
||||
if (insertionParent) {
|
||||
parent = insertionParent;
|
||||
}
|
||||
}
|
||||
|
||||
if (!aVisitor.mEvent->mFlags.mComposedInNativeAnonymousContent &&
|
||||
IsRootOfNativeAnonymousSubtree() && OwnerDoc()->GetWindow()) {
|
||||
aVisitor.SetParentTarget(OwnerDoc()->GetWindow()->GetParentTarget(), true);
|
||||
@@ -1084,18 +1068,6 @@ void nsIContent::SetAssignedSlot(HTMLSlotElement* aSlot) {
|
||||
ExtendedContentSlots()->mAssignedSlot = aSlot;
|
||||
}
|
||||
|
||||
void nsIContent::SetXBLInsertionPoint(nsIContent* aContent) {
|
||||
if (aContent) {
|
||||
nsExtendedContentSlots* slots = ExtendedContentSlots();
|
||||
SetFlags(NODE_MAY_BE_IN_BINDING_MNGR);
|
||||
slots->mXBLInsertionPoint = aContent;
|
||||
} else {
|
||||
if (nsExtendedContentSlots* slots = GetExistingExtendedContentSlots()) {
|
||||
slots->mXBLInsertionPoint = nullptr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
void nsIContent::AssertAnonymousSubtreeRelatedInvariants() const {
|
||||
MOZ_ASSERT(!IsRootOfNativeAnonymousSubtree() ||
|
||||
|
||||
Reference in New Issue
Block a user