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

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

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.cpp
diff --git a/third_party/WebKit/Source/core/css/MediaQueryList.cpp b/third_party/WebKit/Source/core/css/MediaQueryList.cpp
index ad55949bd1a490d13daf854638a2b2dc8e7643bd..29495b4f8863f1afbb4d163874b3a1892c8b2d0d 100644
--- a/third_party/WebKit/Source/core/css/MediaQueryList.cpp
+++ b/third_party/WebKit/Source/core/css/MediaQueryList.cpp
@@ -29,13 +29,13 @@ namespace blink {
MediaQueryList* MediaQueryList::create(ExecutionContext* context,
MediaQueryMatcher* matcher,
- MediaQuerySet* media) {
- return new MediaQueryList(context, matcher, media);
+ RefPtr<MediaQuerySet> media) {
+ return new MediaQueryList(context, matcher, RefPtr<MediaQuerySet>(media));
}
MediaQueryList::MediaQueryList(ExecutionContext* context,
MediaQueryMatcher* matcher,
- MediaQuerySet* media)
+ RefPtr<MediaQuerySet> media)
: ContextLifecycleObserver(context),
m_matcher(matcher),
m_media(media),
@@ -116,7 +116,6 @@ bool MediaQueryList::matches() {
DEFINE_TRACE(MediaQueryList) {
visitor->trace(m_matcher);
- visitor->trace(m_media);
visitor->trace(m_listeners);
EventTargetWithInlineData::trace(visitor);
ContextLifecycleObserver::trace(visitor);
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaQueryList.h ('k') | third_party/WebKit/Source/core/css/MediaQueryMatcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698