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

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

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/StyleRuleImport.cpp
diff --git a/third_party/WebKit/Source/core/css/StyleRuleImport.cpp b/third_party/WebKit/Source/core/css/StyleRuleImport.cpp
index 0bb1e09edac1b4ba3e277345b48ffd80ecf16fe2..a236a30bb2ec934e02b35fd868021a98b82c7825 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(kImport),
parent_style_sheet_(nullptr),
style_sheet_client_(new ImportedStyleSheetClient(this)),
@@ -58,7 +59,6 @@ void StyleRuleImport::Dispose() {
DEFINE_TRACE_AFTER_DISPATCH(StyleRuleImport) {
visitor->Trace(style_sheet_client_);
visitor->Trace(parent_style_sheet_);
- visitor->Trace(media_queries_);
visitor->Trace(style_sheet_);
visitor->Trace(resource_);
StyleRuleBase::TraceAfterDispatch(visitor);

Powered by Google App Engine
This is Rietveld 408576698