Bug 1325878: followup - cleanup MediaList::Matches callers. r=me
MozReview-Commit-ID: Ck9hlZ0qkxj
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user