Bug 1881011 - Refactor UnbindFromTree to take a context argument. r=smaug
Much like BindToTree. This will be useful because I need to pass more information through UnbindFromTree() to speed up dir=auto for bug 1874040. Differential Revision: https://phabricator.services.mozilla.com/D202215
This commit is contained in:
@@ -494,7 +494,7 @@ static void CollectOrphans(nsINode* aRemovalRoot,
|
||||
}
|
||||
}
|
||||
|
||||
void HTMLFormElement::UnbindFromTree(bool aNullParent) {
|
||||
void HTMLFormElement::UnbindFromTree(UnbindContext& aContext) {
|
||||
MaybeFireFormRemoved();
|
||||
|
||||
// Note, this is explicitly using uncomposed doc, since we count
|
||||
@@ -506,7 +506,7 @@ void HTMLFormElement::UnbindFromTree(bool aNullParent) {
|
||||
MarkOrphans(mControls->mNotInElements.AsList());
|
||||
MarkOrphans(mImageElements.AsList());
|
||||
|
||||
nsGenericHTMLElement::UnbindFromTree(aNullParent);
|
||||
nsGenericHTMLElement::UnbindFromTree(aContext);
|
||||
|
||||
nsINode* ancestor = this;
|
||||
nsINode* cur;
|
||||
|
||||
Reference in New Issue
Block a user