mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1450271 Make MediaQueryList bind to its document's inner window. r=baku
This commit is contained in:
parent
a6499922db
commit
9d0c860356
@ -23,7 +23,8 @@ namespace dom {
|
||||
MediaQueryList::MediaQueryList(nsIDocument* aDocument,
|
||||
const nsAString& aMediaQueryList,
|
||||
CallerType aCallerType)
|
||||
: mDocument(aDocument)
|
||||
: DOMEventTargetHelper(aDocument->GetInnerWindow())
|
||||
, mDocument(aDocument)
|
||||
, mMatches(false)
|
||||
, mMatchesValid(false)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user