Bug 1555143 - Remove unused aDeep argument from UnbindFromTree. r=bzbarsky
$ for file in $(rg UnbindFromTree | cut -d : -f 1 | sort | uniq); do sed -i 's#UnbindFromTree(bool aDeep = true,#UnbindFromTree(#g' $file; done $ for file in $(rg UnbindFromTree | cut -d : -f 1 | sort | uniq); do sed -i 's#UnbindFromTree(bool aDeep,#UnbindFromTree(#g' $file; done $ for file in $(rg UnbindFromTree | cut -d : -f 1 | sort | uniq); do sed -i 's#UnbindFromTree(aDeep,#UnbindFromTree(#g' $file; done $ ./mach clang-format And fix the two callers and little use of the aDeep argument (see the "Manual changes" patch attached to bug). Differential Revision: https://phabricator.services.mozilla.com/D32898
This commit is contained in:
@@ -452,7 +452,7 @@ nsresult nsGenericHTMLElement::BindToTree(Document* aDocument,
|
||||
return rv;
|
||||
}
|
||||
|
||||
void nsGenericHTMLElement::UnbindFromTree(bool aDeep, bool aNullParent) {
|
||||
void nsGenericHTMLElement::UnbindFromTree(bool aNullParent) {
|
||||
if (IsInUncomposedDoc()) {
|
||||
UnregAccessKey();
|
||||
}
|
||||
@@ -467,7 +467,7 @@ void nsGenericHTMLElement::UnbindFromTree(bool aDeep, bool aNullParent) {
|
||||
}
|
||||
}
|
||||
|
||||
nsStyledElement::UnbindFromTree(aDeep, aNullParent);
|
||||
nsStyledElement::UnbindFromTree(aNullParent);
|
||||
|
||||
// Invalidate .labels list. It will be repopulated when used the next time.
|
||||
nsExtendedDOMSlots* slots = GetExistingExtendedDOMSlots();
|
||||
@@ -1628,7 +1628,7 @@ nsresult nsGenericHTMLFormElement::BindToTree(Document* aDocument,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void nsGenericHTMLFormElement::UnbindFromTree(bool aDeep, bool aNullParent) {
|
||||
void nsGenericHTMLFormElement::UnbindFromTree(bool aNullParent) {
|
||||
// Save state before doing anything
|
||||
SaveState();
|
||||
|
||||
@@ -1660,7 +1660,7 @@ void nsGenericHTMLFormElement::UnbindFromTree(bool aDeep, bool aNullParent) {
|
||||
RemoveFormIdObserver();
|
||||
}
|
||||
|
||||
nsGenericHTMLElement::UnbindFromTree(aDeep, aNullParent);
|
||||
nsGenericHTMLElement::UnbindFromTree(aNullParent);
|
||||
|
||||
// The element might not have a fieldset anymore.
|
||||
UpdateFieldSet(false);
|
||||
|
||||
Reference in New Issue
Block a user