diff options
author | Moonchild <moonchild@palemoon.org> | 2020-09-23 08:24:14 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-09-23 08:24:14 +0000 |
commit | 388b9c8022986c3d83bc622b79a742b3c3ea671f (patch) | |
tree | 92ba7f74c385b906686e034e4c4620263f104ca6 /dom/base | |
parent | f5e5b5c32e9439973a430b7cc0159d754b53dba6 (diff) | |
download | UXP-388b9c8022986c3d83bc622b79a742b3c3ea671f.tar UXP-388b9c8022986c3d83bc622b79a742b3c3ea671f.tar.gz UXP-388b9c8022986c3d83bc622b79a742b3c3ea671f.tar.lz UXP-388b9c8022986c3d83bc622b79a742b3c3ea671f.tar.xz UXP-388b9c8022986c3d83bc622b79a742b3c3ea671f.zip |
Issue #1655: Update MediaQueryList to the current draft spec.
This make MediaQueryList inherit from EventTarget and adds MediaQueryListEvent
as an interface as well as the onchange() method.
This should not affect compatibility with other code; the event object is a
MediaQueryListEvent instance, which is recognized as a MediaListQuery instance.
Diffstat (limited to 'dom/base')
-rw-r--r-- | dom/base/nsDocument.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/base/nsDocument.cpp b/dom/base/nsDocument.cpp index 5bf89f26a..3c427704f 100644 --- a/dom/base/nsDocument.cpp +++ b/dom/base/nsDocument.cpp @@ -1785,7 +1785,7 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(nsDocument) l != &tmp->mDOMMediaQueryLists; ) { PRCList *next = PR_NEXT_LINK(l); MediaQueryList *mql = static_cast<MediaQueryList*>(l); - mql->RemoveAllListeners(); + mql->Disconnect(); l = next; } |