Index: Source/core/inspector/InspectorStyleSheet.cpp |
diff --git a/Source/core/inspector/InspectorStyleSheet.cpp b/Source/core/inspector/InspectorStyleSheet.cpp |
index 256a1e4f93482249034ba6a87e95e5556fd3dcac..52fa791fb0dc7d7154527fa920d80c53505155fa 100644 |
--- a/Source/core/inspector/InspectorStyleSheet.cpp |
+++ b/Source/core/inspector/InspectorStyleSheet.cpp |
@@ -945,9 +945,9 @@ bool InspectorStyleSheetBase::findPropertyByRange(const SourceRange& sourceRange |
return false; |
} |
-PassRefPtr<InspectorStyleSheet> InspectorStyleSheet::create(InspectorPageAgent* pageAgent, InspectorResourceAgent* resourceAgent, const String& id, PassRefPtrWillBeRawPtr<CSSStyleSheet> pageStyleSheet, TypeBuilder::CSS::StyleSheetOrigin::Enum origin, const String& documentURL, Listener* listener) |
+PassRefPtrWillBeRawPtr<InspectorStyleSheet> InspectorStyleSheet::create(InspectorPageAgent* pageAgent, InspectorResourceAgent* resourceAgent, const String& id, PassRefPtrWillBeRawPtr<CSSStyleSheet> pageStyleSheet, TypeBuilder::CSS::StyleSheetOrigin::Enum origin, const String& documentURL, Listener* listener) |
{ |
- return adoptRef(new InspectorStyleSheet(pageAgent, resourceAgent, id, pageStyleSheet, origin, documentURL, listener)); |
+ return adoptRefWillBeNoop(new InspectorStyleSheet(pageAgent, resourceAgent, id, pageStyleSheet, origin, documentURL, listener)); |
} |
InspectorStyleSheet::InspectorStyleSheet(InspectorPageAgent* pageAgent, InspectorResourceAgent* resourceAgent, const String& id, PassRefPtrWillBeRawPtr<CSSStyleSheet> pageStyleSheet, TypeBuilder::CSS::StyleSheetOrigin::Enum origin, const String& documentURL, Listener* listener) |
@@ -965,6 +965,15 @@ InspectorStyleSheet::~InspectorStyleSheet() |
{ |
} |
+void InspectorStyleSheet::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_pageAgent); |
+ visitor->trace(m_resourceAgent); |
+ visitor->trace(m_pageStyleSheet); |
+ visitor->trace(m_flatRules); |
+ InspectorStyleSheetBase::trace(visitor); |
+} |
+ |
static String styleSheetURL(CSSStyleSheet* pageStyleSheet) |
{ |
if (pageStyleSheet && !pageStyleSheet->contents()->baseURL().isEmpty()) |
@@ -1547,9 +1556,9 @@ bool InspectorStyleSheet::inlineStyleSheetText(String* result) const |
return true; |
} |
-PassRefPtr<InspectorStyleSheetForInlineStyle> InspectorStyleSheetForInlineStyle::create(const String& id, PassRefPtrWillBeRawPtr<Element> element, Listener* listener) |
+PassRefPtrWillBeRawPtr<InspectorStyleSheetForInlineStyle> InspectorStyleSheetForInlineStyle::create(const String& id, PassRefPtrWillBeRawPtr<Element> element, Listener* listener) |
{ |
- return adoptRef(new InspectorStyleSheetForInlineStyle(id, element, listener)); |
+ return adoptRefWillBeNoop(new InspectorStyleSheetForInlineStyle(id, element, listener)); |
} |
InspectorStyleSheetForInlineStyle::InspectorStyleSheetForInlineStyle(const String& id, PassRefPtrWillBeRawPtr<Element> element, Listener* listener) |
@@ -1676,5 +1685,12 @@ PassRefPtrWillBeRawPtr<CSSRuleSourceData> InspectorStyleSheetForInlineStyle::get |
return ruleSourceDataResult.first().release(); |
} |
+void InspectorStyleSheetForInlineStyle::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_element); |
+ visitor->trace(m_ruleSourceData); |
+ InspectorStyleSheetBase::trace(visitor); |
+} |
+ |
} // namespace WebCore |