Bug 1479860: Remove unused aCompileEventHandlers argument from BindToTree. r=bz
Mostly automatic via sed. Only parts which I touched manually (apart from a couple ones where I fixed indentation or which had mispelled arguments) are the callers. I may have removed a couple redundant `virtual` keywords as well when I started to do it manually, I can revert those if wanted. Most of them are just removing the argument, but in Element.cpp I also added an assertion for GetBindingParent when binding the ShadowRoot's kids (the binding parent is set from the ShadowRoot constructor, and I don't think we bind a shadow tree during unlink or what not which could cause a behavior difference). Differential Revision: https://phabricator.services.mozilla.com/D2574 MozReview-Commit-ID: 2oIgatty2HU
This commit is contained in:
@@ -548,16 +548,13 @@ HTMLImageElement::IsHTMLFocusable(bool aWithMouse,
|
||||
|
||||
nsresult
|
||||
HTMLImageElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
|
||||
nsIContent* aBindingParent,
|
||||
bool aCompileEventHandlers)
|
||||
nsIContent* aBindingParent)
|
||||
{
|
||||
nsresult rv = nsGenericHTMLElement::BindToTree(aDocument, aParent,
|
||||
aBindingParent,
|
||||
aCompileEventHandlers);
|
||||
aBindingParent);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
nsImageLoadingContent::BindToTree(aDocument, aParent, aBindingParent,
|
||||
aCompileEventHandlers);
|
||||
nsImageLoadingContent::BindToTree(aDocument, aParent, aBindingParent);
|
||||
|
||||
if (aParent) {
|
||||
UpdateFormOwner();
|
||||
|
||||
Reference in New Issue
Block a user