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

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

Issue 170283019: Change various helper classes to transition types to get CSSValue entirely onto the gc heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and revert member to persistent in StorageEvent Created 6 years, 10 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: Source/core/css/StyleRuleImport.cpp
diff --git a/Source/core/css/StyleRuleImport.cpp b/Source/core/css/StyleRuleImport.cpp
index 2b9972d2c8dd0c4788a7d0479647b7949ebc8685..3a31c70e37f5c7b2082ee3ebec736572bd5ca759 100644
--- a/Source/core/css/StyleRuleImport.cpp
+++ b/Source/core/css/StyleRuleImport.cpp
@@ -31,12 +31,12 @@
namespace WebCore {
-PassRefPtrWillBeRawPtr<StyleRuleImport> StyleRuleImport::create(const String& href, PassRefPtr<MediaQuerySet> media)
+PassRefPtrWillBeRawPtr<StyleRuleImport> StyleRuleImport::create(const String& href, PassRefPtrWillBeRawPtr<MediaQuerySet> media)
{
return adoptRefWillBeNoop(new StyleRuleImport(href, media));
}
-StyleRuleImport::StyleRuleImport(const String& href, PassRefPtr<MediaQuerySet> media)
+StyleRuleImport::StyleRuleImport(const String& href, PassRefPtrWillBeRawPtr<MediaQuerySet> media)
: StyleRuleBase(Import)
, m_parentStyleSheet(nullptr)
, m_styleSheetClient(this)
@@ -62,6 +62,7 @@ StyleRuleImport::~StyleRuleImport()
void StyleRuleImport::traceAfterDispatch(Visitor* visitor)
{
visitor->trace(m_parentStyleSheet);
+ visitor->trace(m_mediaQueries);
visitor->trace(m_styleSheet);
StyleRuleBase::traceAfterDispatch(visitor);
}

Powered by Google App Engine
This is Rietveld 408576698