Index: Source/core/css/MediaQueryList.h |
diff --git a/Source/core/css/MediaQueryList.h b/Source/core/css/MediaQueryList.h |
index 903467ac210d9a6658005298e95a9351415ef05b..52c73ef0a7ec4f39b30c8a495257824be1a3d9cb 100644 |
--- a/Source/core/css/MediaQueryList.h |
+++ b/Source/core/css/MediaQueryList.h |
@@ -20,6 +20,7 @@ |
#ifndef MediaQueryList_h |
#define MediaQueryList_h |
+#include "core/dom/ActiveDOMObject.h" |
#include "platform/heap/Handle.h" |
#include "wtf/Forward.h" |
#include "wtf/RefCounted.h" |
@@ -27,6 +28,7 @@ |
namespace blink { |
+class ExecutionContext; |
class MediaQueryListListener; |
class MediaQueryEvaluator; |
class MediaQueryMatcher; |
@@ -37,9 +39,9 @@ class MediaQuerySet; |
// retrieve the current value of the given media query and to add/remove listeners that |
// will be called whenever the value of the query changes. |
-class MediaQueryList FINAL : public RefCountedWillBeGarbageCollectedFinalized<MediaQueryList> { |
+class MediaQueryList FINAL : public RefCountedWillBeGarbageCollectedFinalized<MediaQueryList>, public ActiveDOMObject { |
public: |
- static PassRefPtrWillBeRawPtr<MediaQueryList> create(PassRefPtrWillBeRawPtr<MediaQueryMatcher>, PassRefPtrWillBeRawPtr<MediaQuerySet>); |
+ static PassRefPtrWillBeRawPtr<MediaQueryList> create(ExecutionContext*, PassRefPtrWillBeRawPtr<MediaQueryMatcher>, PassRefPtrWillBeRawPtr<MediaQuerySet>); |
virtual ~MediaQueryList(); |
String media() const; |
@@ -52,10 +54,12 @@ public: |
void trace(Visitor*); |
- void documentDetached(); |
+ // From ActiveDOMObject |
+ virtual bool hasPendingActivity() const OVERRIDE; |
+ virtual void stop() OVERRIDE; |
private: |
- MediaQueryList(PassRefPtrWillBeRawPtr<MediaQueryMatcher>, PassRefPtrWillBeRawPtr<MediaQuerySet>); |
+ MediaQueryList(ExecutionContext*, PassRefPtrWillBeRawPtr<MediaQueryMatcher>, PassRefPtrWillBeRawPtr<MediaQuerySet>); |
bool updateMatches(); |