| Index: Source/core/css/MediaQueryList.h
|
| diff --git a/Source/core/css/MediaQueryList.h b/Source/core/css/MediaQueryList.h
|
| index a15bc6a304f41b99966f01d5613f9aa62d300ac3..4cb033b0c8c8af23788758efe40009e50842a150 100644
|
| --- a/Source/core/css/MediaQueryList.h
|
| +++ b/Source/core/css/MediaQueryList.h
|
| @@ -20,6 +20,7 @@
|
| #ifndef MediaQueryList_h
|
| #define MediaQueryList_h
|
|
|
| +#include "heap/Handle.h"
|
| #include "wtf/Forward.h"
|
| #include "wtf/RefCounted.h"
|
| #include "wtf/RefPtr.h"
|
| @@ -38,7 +39,7 @@ class MediaQuerySet;
|
|
|
| class MediaQueryList : public RefCounted<MediaQueryList> {
|
| public:
|
| - static PassRefPtr<MediaQueryList> create(PassRefPtr<MediaQueryMatcher>, PassRefPtr<MediaQuerySet>, bool);
|
| + static PassRefPtr<MediaQueryList> create(PassRefPtr<MediaQueryMatcher>, PassRefPtrWillBeRawPtr<MediaQuerySet>, bool);
|
| ~MediaQueryList();
|
|
|
| String media() const;
|
| @@ -50,11 +51,11 @@ public:
|
| void evaluate(MediaQueryEvaluator*, bool& notificationNeeded);
|
|
|
| private:
|
| - MediaQueryList(PassRefPtr<MediaQueryMatcher>, PassRefPtr<MediaQuerySet>, bool matches);
|
| + MediaQueryList(PassRefPtr<MediaQueryMatcher>, PassRefPtrWillBeRawPtr<MediaQuerySet>, bool matches);
|
| void setMatches(bool);
|
|
|
| RefPtr<MediaQueryMatcher> m_matcher;
|
| - RefPtr<MediaQuerySet> m_media;
|
| + RefPtrWillBePersistent<MediaQuerySet> m_media;
|
| unsigned m_evaluationRound; // Indicates if the query has been evaluated after the last style selector change.
|
| unsigned m_changeRound; // Used to know if the query has changed in the last style selector change.
|
| bool m_matches;
|
|
|