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

Unified Diff: Source/core/css/MediaQueryEvaluator.h

Issue 170283019: Change various helper classes to transition types to get CSSValue entirely onto the gc heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and revert member to persistent in StorageEvent Created 6 years, 10 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: Source/core/css/MediaQueryEvaluator.h
diff --git a/Source/core/css/MediaQueryEvaluator.h b/Source/core/css/MediaQueryEvaluator.h
index 6b742ee428ece4f841785ed847400100994259fc..1a03b799960ff3e27e8c8279767bd36a15d2dea7 100644
--- a/Source/core/css/MediaQueryEvaluator.h
+++ b/Source/core/css/MediaQueryEvaluator.h
@@ -28,6 +28,7 @@
#ifndef MediaQueryEvaluator_h
#define MediaQueryEvaluator_h
+#include "heap/Handle.h"
#include "wtf/text/WTFString.h"
namespace WebCore {
@@ -37,7 +38,7 @@ class MediaQueryResult;
class MediaQuerySet;
class RenderStyle;
-typedef Vector<RefPtr<MediaQueryResult> > MediaQueryResultList;
+typedef WillBePersistentHeapVector<RefPtrWillBeMember<MediaQueryResult> > MediaQueryResultList;
zerny-chromium 2014/03/05 06:38:40 Maybe this should be expanded at the use sites. It
wibling-chromium 2014/03/05 08:09:42 Agree. I will fix this is a subsequent change to n
/**
* Class that evaluates css media queries as defined in

Powered by Google App Engine
This is Rietveld 408576698