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

Unified Diff: third_party/WebKit/Source/core/css/resolver/MediaQueryResult.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/resolver/MediaQueryResult.h
diff --git a/third_party/WebKit/Source/core/css/resolver/MediaQueryResult.h b/third_party/WebKit/Source/core/css/resolver/MediaQueryResult.h
index 89443ed71564bda574f5b7e0c5bf1ff5cdaf8990..9f790775f340e136de529281df76d26fff394eec 100644
--- a/third_party/WebKit/Source/core/css/resolver/MediaQueryResult.h
+++ b/third_party/WebKit/Source/core/css/resolver/MediaQueryResult.h
@@ -29,21 +29,19 @@
namespace blink {
-class MediaQueryResult : public GarbageCollected<MediaQueryResult> {
- WTF_MAKE_NONCOPYABLE(MediaQueryResult);
+class MediaQueryResult {
+ DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
public:
MediaQueryResult(const MediaQueryExp& expr, bool result)
- : expression_(&expr), result_(result) {}
+ : expression_(expr), result_(result) {}
- DEFINE_INLINE_TRACE() { visitor->Trace(expression_); }
-
- const MediaQueryExp* Expression() const { return expression_; }
+ const MediaQueryExp& Expression() const { return expression_; }
bool Result() const { return result_; }
private:
- Member<const MediaQueryExp> expression_;
+ const MediaQueryExp expression_;
bool result_;
};

Powered by Google App Engine
This is Rietveld 408576698