Index: third_party/WebKit/Source/core/css/MediaQueryEvaluator.h |
diff --git a/third_party/WebKit/Source/core/css/MediaQueryEvaluator.h b/third_party/WebKit/Source/core/css/MediaQueryEvaluator.h |
index 93fc15763f99ee8778d7c858010ff3a2ed8bbd2e..5ce10de4ad53f1fd536e1954deff5a287be903d7 100644 |
--- a/third_party/WebKit/Source/core/css/MediaQueryEvaluator.h |
+++ b/third_party/WebKit/Source/core/css/MediaQueryEvaluator.h |
@@ -53,8 +53,9 @@ using MediaQueryResultList = WillBeHeapVector<RefPtrWillBeMember<MediaQueryResul |
// the device characteristics are not known. This can be used to prune the loading |
// of stylesheets to only those which are probable to match. |
-class CORE_EXPORT MediaQueryEvaluator { |
- WTF_MAKE_NONCOPYABLE(MediaQueryEvaluator); USING_FAST_MALLOC(MediaQueryEvaluator); |
+class CORE_EXPORT MediaQueryEvaluator final : public NoBaseWillBeGarbageCollectedFinalized<MediaQueryEvaluator> { |
+ WTF_MAKE_NONCOPYABLE(MediaQueryEvaluator); |
+ USING_FAST_MALLOC_WILL_BE_REMOVED(MediaQueryEvaluator); |
public: |
// Creates evaluator which evaluates only simple media queries |
// Evaluator returns true for "all", and returns value of \mediaFeatureResult |
@@ -87,12 +88,14 @@ public: |
// Evaluates media query subexpression, ie "and (media-feature: value)" part. |
bool eval(const MediaQueryExp*) const; |
+ DECLARE_TRACE(); |
+ |
private: |
const String mediaType() const; |
String m_mediaType; |
bool m_expectedResult; |
- RefPtrWillBePersistent<MediaValues> m_mediaValues; |
+ RefPtrWillBeMember<MediaValues> m_mediaValues; |
}; |
} // namespace |