Bug 1325878: followup - cleanup MediaList::Matches callers. r=me

MozReview-Commit-ID: Ck9hlZ0qkxj
This commit is contained in:
Emilio Cobos Álvarez
2017-04-14 09:39:53 +08:00
parent 6f05c479f3
commit 60ba1d4997
9 changed files with 18 additions and 15 deletions

View File

@@ -57,7 +57,7 @@ HTMLSourceElement::MatchesCurrentMedia()
if (mMediaList) {
nsIPresShell* presShell = OwnerDoc()->GetShell();
nsPresContext* pctx = presShell ? presShell->GetPresContext() : nullptr;
return pctx && mMediaList->Matches(*pctx);
return pctx && mMediaList->Matches(pctx);
}
// No media specified
@@ -77,7 +77,7 @@ HTMLSourceElement::WouldMatchMediaForDocument(const nsAString& aMedia,
RefPtr<MediaList> mediaList =
MediaList::Create(aDocument->GetStyleBackendType(), aMedia);
return pctx && mediaList->Matches(*pctx, nullptr);
return pctx && mediaList->Matches(pctx);
}
void