Index: Source/core/inspector/InspectorCSSAgent.cpp |
diff --git a/Source/core/inspector/InspectorCSSAgent.cpp b/Source/core/inspector/InspectorCSSAgent.cpp |
index 554696ef8e49339237bc6141c013128189211f4c..b32fc778bb563623b14e1afa39b01f6b190c35db 100644 |
--- a/Source/core/inspector/InspectorCSSAgent.cpp |
+++ b/Source/core/inspector/InspectorCSSAgent.cpp |
@@ -395,7 +395,7 @@ void InspectorCSSAgent::clearFrontend() |
void InspectorCSSAgent::discardAgent() |
{ |
m_domAgent->setDOMListener(0); |
- m_domAgent = 0; |
+ m_domAgent = nullptr; |
} |
void InspectorCSSAgent::restore() |
@@ -577,7 +577,7 @@ void InspectorCSSAgent::setActiveStyleSheets(Document* document, const Vector<CS |
for (HashSet<CSSStyleSheet*>::iterator it = removedSheets.begin(); it != removedSheets.end(); ++it) { |
CSSStyleSheet* cssStyleSheet = *it; |
- RefPtr<InspectorStyleSheet> inspectorStyleSheet = m_cssStyleSheetToInspectorStyleSheet.get(cssStyleSheet); |
+ RefPtrWillBeRawPtr<InspectorStyleSheet> inspectorStyleSheet = m_cssStyleSheetToInspectorStyleSheet.get(cssStyleSheet); |
ASSERT(inspectorStyleSheet); |
documentCSSStyleSheets->remove(cssStyleSheet); |
@@ -1452,5 +1452,15 @@ void InspectorCSSAgent::resetPseudoStates() |
(*it)->setNeedsStyleRecalc(SubtreeStyleChange); |
} |
+void InspectorCSSAgent::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_domAgent); |
+ visitor->trace(m_pageAgent); |
+ visitor->trace(m_resourceAgent); |
+ visitor->trace(m_documentToViaInspectorStyleSheet); |
+ visitor->trace(m_inspectorUserAgentStyleSheet); |
+ InspectorBaseAgent::trace(visitor); |
+} |
+ |
} // namespace WebCore |