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

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

Issue 2837023005: Move MediaQuery classes off BlinkGC heap (Closed)
Patch Set: fix Created 3 years, 8 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 c67b3400656e6d97764495a809e50a5ae5357bf4..519ac8da98859b8048c79de86c503b66157517ae 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*);
+ PassRefPtr<MediaQuerySet>);
~MediaQueryList() override;
String media() const;
@@ -86,12 +86,14 @@ class CORE_EXPORT MediaQueryList final
ExecutionContext* GetExecutionContext() const override;
private:
- MediaQueryList(ExecutionContext*, MediaQueryMatcher*, MediaQuerySet*);
+ MediaQueryList(ExecutionContext*,
+ MediaQueryMatcher*,
+ PassRefPtr<MediaQuerySet>);
bool UpdateMatches();
Member<MediaQueryMatcher> matcher_;
- Member<MediaQuerySet> media_;
+ RefPtr<MediaQuerySet> media_;
using ListenerList = HeapListHashSet<Member<MediaQueryListListener>>;
ListenerList listeners_;
bool matches_dirty_;

Powered by Google App Engine
This is Rietveld 408576698