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:
Emilio Cobos Álvarez
2019-05-28 22:47:08 +00:00
parent 2f71ec7ab9
commit 9160cd2967
94 changed files with 154 additions and 190 deletions

View File

@@ -236,7 +236,7 @@ nsresult nsGenericHTMLFrameElement::BindToTree(Document* aDocument,
return rv;
}
void nsGenericHTMLFrameElement::UnbindFromTree(bool aDeep, bool aNullParent) {
void nsGenericHTMLFrameElement::UnbindFromTree(bool aNullParent) {
if (mFrameLoader) {
// This iframe is being taken out of the document, destroy the
// iframe's frame loader (doing that will tear down the window in
@@ -248,7 +248,7 @@ void nsGenericHTMLFrameElement::UnbindFromTree(bool aDeep, bool aNullParent) {
mFrameLoader = nullptr;
}
nsGenericHTMLElement::UnbindFromTree(aDeep, aNullParent);
nsGenericHTMLElement::UnbindFromTree(aNullParent);
}
/* static */