Index: Source/core/inspector/InspectorDOMDebuggerAgent.cpp |
diff --git a/Source/core/inspector/InspectorDOMDebuggerAgent.cpp b/Source/core/inspector/InspectorDOMDebuggerAgent.cpp |
index bedc03bd1118731b97098b3c9adefeb3f952cb9a..78e0c8ca718d9fefe5c504bea5d15a7e2ea49307 100644 |
--- a/Source/core/inspector/InspectorDOMDebuggerAgent.cpp |
+++ b/Source/core/inspector/InspectorDOMDebuggerAgent.cpp |
@@ -73,9 +73,9 @@ static const char pauseOnAllXHRs[] = "pauseOnAllXHRs"; |
static const char xhrBreakpoints[] = "xhrBreakpoints"; |
} |
-PassOwnPtr<InspectorDOMDebuggerAgent> InspectorDOMDebuggerAgent::create(InspectorDOMAgent* domAgent, InspectorDebuggerAgent* debuggerAgent) |
+PassOwnPtrWillBeRawPtr<InspectorDOMDebuggerAgent> InspectorDOMDebuggerAgent::create(InspectorDOMAgent* domAgent, InspectorDebuggerAgent* debuggerAgent) |
{ |
- return adoptPtr(new InspectorDOMDebuggerAgent(domAgent, debuggerAgent)); |
+ return adoptPtrWillBeNoop(new InspectorDOMDebuggerAgent(domAgent, debuggerAgent)); |
} |
InspectorDOMDebuggerAgent::InspectorDOMDebuggerAgent(InspectorDOMAgent* domAgent, InspectorDebuggerAgent* debuggerAgent) |
@@ -90,8 +90,17 @@ InspectorDOMDebuggerAgent::InspectorDOMDebuggerAgent(InspectorDOMAgent* domAgent |
InspectorDOMDebuggerAgent::~InspectorDOMDebuggerAgent() |
{ |
+#if !ENABLE(OILPAN) |
ASSERT(!m_debuggerAgent); |
ASSERT(!m_instrumentingAgents->inspectorDOMDebuggerAgent()); |
+#endif |
+} |
+ |
+void InspectorDOMDebuggerAgent::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_domAgent); |
+ visitor->trace(m_debuggerAgent); |
+ InspectorBaseAgent::trace(visitor); |
} |
// Browser debugger agent enabled only when JS debugger is enabled. |
@@ -150,7 +159,7 @@ void InspectorDOMDebuggerAgent::clearFrontend() |
void InspectorDOMDebuggerAgent::discardAgent() |
{ |
m_debuggerAgent->setListener(0); |
- m_debuggerAgent = 0; |
+ m_debuggerAgent = nullptr; |
} |
void InspectorDOMDebuggerAgent::setEventListenerBreakpoint(ErrorString* error, const String& eventName) |