Bug 1583203 - Annotate nsINode::OwnerDoc() as MOZ_NONNULL_RETURN. r=smaug

People keep adding useless null-checks and it was not clear what the consensus
was from bug 1441165, but this should be unobjectionable I guess.

Differential Revision: https://phabricator.services.mozilla.com/D46781
This commit is contained in:
Emilio Cobos Álvarez
2019-09-23 18:12:19 +00:00
parent fa8eae1dd8
commit e4daf7cb28
6 changed files with 10 additions and 11 deletions

View File

@@ -2175,7 +2175,7 @@ void HTMLMediaElement::Load() {
HasAttr(kNameSpaceID_None, nsGkAtoms::autoplay),
AutoplayPolicy::IsAllowedToPlay(*this), OwnerDoc(),
DocumentOrigin(OwnerDoc()).get(),
OwnerDoc() ? OwnerDoc()->HasBeenUserGestureActivated() : 0, mMuted,
OwnerDoc()->HasBeenUserGestureActivated(), mMuted,
mVolume));
if (mIsRunningLoadMethod) {