| Index: Source/core/inspector/InspectorState.cpp
|
| diff --git a/Source/core/inspector/InspectorState.cpp b/Source/core/inspector/InspectorState.cpp
|
| index 775999c04a55d9fdaa762c93e8cf81c77165710f..0b627b194f2b4b9c42c38fe18b498f16e9b090b2 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,12 @@ void InspectorCompositeState::inspectorStateUpdated()
|
| m_client->updateInspectorStateCookie(m_stateObject->toJSONString());
|
| }
|
|
|
| +void InspectorCompositeState::trace(Visitor* visitor)
|
| +{
|
| +#if ENABLE(OILPAN)
|
| + visitor->trace(m_inspectorStateMap);
|
| +#endif
|
| +}
|
| +
|
| } // namespace blink
|
|
|
|
|