Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(696)

Unified Diff: third_party/WebKit/Source/core/css/MediaQueryList.h

Issue 2873433003: Move MediaQuery classes off BlinkGC heap (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/MediaQueryList.h
diff --git a/third_party/WebKit/Source/core/css/MediaQueryList.h b/third_party/WebKit/Source/core/css/MediaQueryList.h
index 8da0eba071dc9508c26723a452958e1874175d64..f584b55aaddaaef807acdb89e4a8c512b15a2c75 100644
--- a/third_party/WebKit/Source/core/css/MediaQueryList.h
+++ b/third_party/WebKit/Source/core/css/MediaQueryList.h
@@ -52,7 +52,7 @@ class CORE_EXPORT MediaQueryList final
public:
static MediaQueryList* create(ExecutionContext*,
MediaQueryMatcher*,
- MediaQuerySet*);
+ RefPtr<MediaQuerySet>);
~MediaQueryList() override;
String media() const;
@@ -86,12 +86,12 @@ class CORE_EXPORT MediaQueryList final
ExecutionContext* getExecutionContext() const override;
private:
- MediaQueryList(ExecutionContext*, MediaQueryMatcher*, MediaQuerySet*);
+ MediaQueryList(ExecutionContext*, MediaQueryMatcher*, RefPtr<MediaQuerySet>);
bool updateMatches();
Member<MediaQueryMatcher> m_matcher;
- Member<MediaQuerySet> m_media;
+ RefPtr<MediaQuerySet> m_media;
using ListenerList = HeapListHashSet<Member<MediaQueryListListener>>;
ListenerList m_listeners;
bool m_matchesDirty;
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaQueryExp.cpp ('k') | third_party/WebKit/Source/core/css/MediaQueryList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698