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:
@@ -4891,14 +4891,14 @@ nsresult HTMLMediaElement::BindToTree(BindContext& aContext, nsINode& aParent) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
void HTMLMediaElement::UnbindFromTree(bool aNullParent) {
|
||||
void HTMLMediaElement::UnbindFromTree(UnbindContext& aContext) {
|
||||
mVisibilityState = Visibility::Untracked;
|
||||
|
||||
if (IsInComposedDoc()) {
|
||||
NotifyUAWidgetTeardown();
|
||||
}
|
||||
|
||||
nsGenericHTMLElement::UnbindFromTree(aNullParent);
|
||||
nsGenericHTMLElement::UnbindFromTree(aContext);
|
||||
|
||||
MOZ_ASSERT(IsActuallyInvisible());
|
||||
NotifyDecoderActivityChanges();
|
||||
|
||||
Reference in New Issue
Block a user