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

Unified Diff: third_party/WebKit/Source/core/css/StyleRuleImport.cpp

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
Index: third_party/WebKit/Source/core/css/StyleRuleImport.cpp
diff --git a/third_party/WebKit/Source/core/css/StyleRuleImport.cpp b/third_party/WebKit/Source/core/css/StyleRuleImport.cpp
index 4a05f29261200a9dae8605cea2a336665a2e9085..343bf9221e08969187d6c5498966989a37c9eeeb 100644
--- a/third_party/WebKit/Source/core/css/StyleRuleImport.cpp
+++ b/third_party/WebKit/Source/core/css/StyleRuleImport.cpp
@@ -32,11 +32,12 @@
namespace blink {
StyleRuleImport* StyleRuleImport::create(const String& href,
- MediaQuerySet* media) {
+ RefPtr<MediaQuerySet> media) {
return new StyleRuleImport(href, media);
}
-StyleRuleImport::StyleRuleImport(const String& href, MediaQuerySet* media)
+StyleRuleImport::StyleRuleImport(const String& href,
+ RefPtr<MediaQuerySet> media)
: StyleRuleBase(Import),
m_parentStyleSheet(nullptr),
m_styleSheetClient(new ImportedStyleSheetClient(this)),
@@ -58,7 +59,6 @@ void StyleRuleImport::dispose() {
DEFINE_TRACE_AFTER_DISPATCH(StyleRuleImport) {
visitor->trace(m_styleSheetClient);
visitor->trace(m_parentStyleSheet);
- visitor->trace(m_mediaQueries);
visitor->trace(m_styleSheet);
visitor->trace(m_resource);
StyleRuleBase::traceAfterDispatch(visitor);
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleRuleImport.h ('k') | third_party/WebKit/Source/core/css/parser/MediaConditionTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698