Index: Source/core/inspector/InspectorState.cpp |
diff --git a/Source/core/inspector/InspectorState.cpp b/Source/core/inspector/InspectorState.cpp |
index 8e25c288f7863b40aa9945fb3902f4c1117ebde5..806d7286ae0c5a5278b22c5c8671077dea107542 100644 |
--- a/Source/core/inspector/InspectorState.cpp |
+++ b/Source/core/inspector/InspectorState.cpp |
@@ -121,13 +121,18 @@ PassRefPtr<JSONObject> InspectorState::getObject(const String& propertyName) |
return it->value->asObject(); |
} |
+void InspectorState::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_listener); |
+} |
+ |
InspectorState* InspectorCompositeState::createAgentState(const String& agentName) |
{ |
ASSERT(m_stateObject->find(agentName) == m_stateObject->end()); |
ASSERT(m_inspectorStateMap.find(agentName) == m_inspectorStateMap.end()); |
RefPtr<JSONObject> stateProperties = JSONObject::create(); |
m_stateObject->setObject(agentName, stateProperties); |
- OwnPtr<InspectorState> statePtr = adoptPtr(new InspectorState(this, stateProperties)); |
+ OwnPtrWillBeRawPtr<InspectorState> statePtr = adoptPtrWillBeNoop(new InspectorState(this, stateProperties)); |
InspectorState* state = statePtr.get(); |
m_inspectorStateMap.add(agentName, statePtr.release()); |
return state; |
@@ -168,5 +173,10 @@ void InspectorCompositeState::inspectorStateUpdated() |
m_client->updateInspectorStateCookie(m_stateObject->toJSONString()); |
} |
+void InspectorCompositeState::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_inspectorStateMap); |
+} |
+ |
} // namespace WebCore |