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:
@@ -4447,7 +4447,7 @@ void HTMLInputElement::MaybeDispatchLoginManagerEvents(HTMLFormElement* aForm) {
|
||||
dispatcher->PostDOMEvent();
|
||||
}
|
||||
|
||||
void HTMLInputElement::UnbindFromTree(bool aNullParent) {
|
||||
void HTMLInputElement::UnbindFromTree(UnbindContext& aContext) {
|
||||
if (mType == FormControlType::InputPassword) {
|
||||
MaybeFireInputPasswordRemoved();
|
||||
}
|
||||
@@ -4465,8 +4465,8 @@ void HTMLInputElement::UnbindFromTree(bool aNullParent) {
|
||||
NotifyUAWidgetTeardown();
|
||||
}
|
||||
|
||||
nsImageLoadingContent::UnbindFromTree(aNullParent);
|
||||
nsGenericHTMLFormControlElementWithState::UnbindFromTree(aNullParent);
|
||||
nsImageLoadingContent::UnbindFromTree();
|
||||
nsGenericHTMLFormControlElementWithState::UnbindFromTree(aContext);
|
||||
|
||||
// If we are contained within a disconnected subtree, attempt to add
|
||||
// ourselves to the subtree root's radio group.
|
||||
|
||||
Reference in New Issue
Block a user