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

Unified Diff: third_party/WebKit/Source/core/css/StyleRule.h

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
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleMedia.cpp ('k') | third_party/WebKit/Source/core/css/StyleRule.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 938e3141c2e584c13e029477c7cfdd224e057ee0..7429e0a215cc1b959e8c55c4b6ca3f40df272cdb 100644
--- a/third_party/WebKit/Source/core/css/StyleRule.h
+++ b/third_party/WebKit/Source/core/css/StyleRule.h
@@ -238,7 +238,7 @@ class CORE_EXPORT StyleRuleCondition : public StyleRuleGroup {
class CORE_EXPORT StyleRuleMedia : public StyleRuleCondition {
public:
- static StyleRuleMedia* create(MediaQuerySet* media,
+ static StyleRuleMedia* create(RefPtr<MediaQuerySet> media,
HeapVector<Member<StyleRuleBase>>& adoptRules) {
return new StyleRuleMedia(media, adoptRules);
}
@@ -250,10 +250,11 @@ class CORE_EXPORT StyleRuleMedia : public StyleRuleCondition {
DECLARE_TRACE_AFTER_DISPATCH();
private:
- StyleRuleMedia(MediaQuerySet*, HeapVector<Member<StyleRuleBase>>& adoptRules);
+ StyleRuleMedia(RefPtr<MediaQuerySet>,
+ HeapVector<Member<StyleRuleBase>>& adoptRules);
StyleRuleMedia(const StyleRuleMedia&);
- Member<MediaQuerySet> m_mediaQueries;
+ RefPtr<MediaQuerySet> m_mediaQueries;
};
class StyleRuleSupports : public StyleRuleCondition {
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleMedia.cpp ('k') | third_party/WebKit/Source/core/css/StyleRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698