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:
@@ -547,7 +547,7 @@ nsresult HTMLImageElement::BindToTree(Document* aDocument, nsIContent* aParent,
|
||||
return rv;
|
||||
}
|
||||
|
||||
void HTMLImageElement::UnbindFromTree(bool aDeep, bool aNullParent) {
|
||||
void HTMLImageElement::UnbindFromTree(bool aNullParent) {
|
||||
if (mForm) {
|
||||
if (aNullParent || !FindAncestorForm(mForm)) {
|
||||
ClearForm(true);
|
||||
@@ -561,8 +561,8 @@ void HTMLImageElement::UnbindFromTree(bool aDeep, bool aNullParent) {
|
||||
mInDocResponsiveContent = false;
|
||||
}
|
||||
|
||||
nsImageLoadingContent::UnbindFromTree(aDeep, aNullParent);
|
||||
nsGenericHTMLElement::UnbindFromTree(aDeep, aNullParent);
|
||||
nsImageLoadingContent::UnbindFromTree(aNullParent);
|
||||
nsGenericHTMLElement::UnbindFromTree(aNullParent);
|
||||
}
|
||||
|
||||
void HTMLImageElement::UpdateFormOwner() {
|
||||
|
||||
Reference in New Issue
Block a user