Index: Source/core/inspector/InspectorDOMDebuggerAgent.cpp |
diff --git a/Source/core/inspector/InspectorDOMDebuggerAgent.cpp b/Source/core/inspector/InspectorDOMDebuggerAgent.cpp |
index bedc03bd1118731b97098b3c9adefeb3f952cb9a..d6802f2328adb411cf26573c7fa75eede2edcb41 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,18 @@ 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); |
+ visitor->trace(m_domBreakpoints); |
+ InspectorBaseAgent::trace(visitor); |
} |
// Browser debugger agent enabled only when JS debugger is enabled. |
@@ -150,7 +160,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) |