summaryrefslogtreecommitdiffstats
path: root/dom/base
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-09-23 08:24:14 +0000
committerMoonchild <moonchild@palemoon.org>2020-09-23 08:29:21 +0000
commit312f0b3a767112621278c97c1f5099e37238b337 (patch)
treea9733493b61ba3c4b1fd7ee11f87d9593964e077 /dom/base
parent04479387a21dd0bbf6006e27ec49101d1f2380a4 (diff)
downloadUXP-312f0b3a767112621278c97c1f5099e37238b337.tar
UXP-312f0b3a767112621278c97c1f5099e37238b337.tar.gz
UXP-312f0b3a767112621278c97c1f5099e37238b337.tar.lz
UXP-312f0b3a767112621278c97c1f5099e37238b337.tar.xz
UXP-312f0b3a767112621278c97c1f5099e37238b337.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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/base/nsDocument.cpp b/dom/base/nsDocument.cpp
index 48d23e325..0b07ef4ec 100644
--- a/dom/base/nsDocument.cpp
+++ b/dom/base/nsDocument.cpp
@@ -1831,7 +1831,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;
}