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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user