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

Unified Diff: third_party/WebKit/Source/core/css/StyleRule.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/StyleRule.h
diff --git a/third_party/WebKit/Source/core/css/StyleRule.h b/third_party/WebKit/Source/core/css/StyleRule.h
index 2965c927a6f9ec4ab93f829e81c09dcc849b6b42..aa8dcbc182edac34c79b8f1ccdbb3a43b079588d 100644
--- a/third_party/WebKit/Source/core/css/StyleRule.h
+++ b/third_party/WebKit/Source/core/css/StyleRule.h
@@ -239,7 +239,7 @@ class CORE_EXPORT StyleRuleCondition : public StyleRuleGroup {
class CORE_EXPORT StyleRuleMedia : public StyleRuleCondition {
public:
static StyleRuleMedia* Create(
- MediaQuerySet* media,
+ RefPtr<MediaQuerySet> media,
HeapVector<Member<StyleRuleBase>>& adopt_rules) {
return new StyleRuleMedia(media, adopt_rules);
}
@@ -251,11 +251,11 @@ class CORE_EXPORT StyleRuleMedia : public StyleRuleCondition {
DECLARE_TRACE_AFTER_DISPATCH();
private:
- StyleRuleMedia(MediaQuerySet*,
+ StyleRuleMedia(RefPtr<MediaQuerySet>,
HeapVector<Member<StyleRuleBase>>& adopt_rules);
StyleRuleMedia(const StyleRuleMedia&);
- Member<MediaQuerySet> media_queries_;
+ RefPtr<MediaQuerySet> media_queries_;
};
class StyleRuleSupports : public StyleRuleCondition {

Powered by Google App Engine
This is Rietveld 408576698