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:
@@ -770,8 +770,8 @@ nsresult HTMLTextAreaElement::BindToTree(BindContext& aContext,
|
||||
return rv;
|
||||
}
|
||||
|
||||
void HTMLTextAreaElement::UnbindFromTree(bool aNullParent) {
|
||||
nsGenericHTMLFormControlElementWithState::UnbindFromTree(aNullParent);
|
||||
void HTMLTextAreaElement::UnbindFromTree(UnbindContext& aContext) {
|
||||
nsGenericHTMLFormControlElementWithState::UnbindFromTree(aContext);
|
||||
|
||||
// We might be no longer disabled because of parent chain changed.
|
||||
UpdateValueMissingValidityState();
|
||||
|
||||
Reference in New Issue
Block a user