| Index: Source/WebCore/inspector/InspectorDOMAgent.cpp
|
| ===================================================================
|
| --- Source/WebCore/inspector/InspectorDOMAgent.cpp (revision 112844)
|
| +++ Source/WebCore/inspector/InspectorDOMAgent.cpp (working copy)
|
| @@ -1365,20 +1365,14 @@
|
| if (!frameOwnerId)
|
| return;
|
|
|
| - if (!m_childrenRequested.contains(frameOwnerId)) {
|
| - // No children are mapped yet -> only notify on changes of hasChildren.
|
| - m_frontend->childNodeCountUpdated(frameOwnerId, innerChildNodeCount(frameOwner));
|
| - } else {
|
| - // Re-add frame owner element together with its new children.
|
| - int parentId = m_documentNodeToIdMap.get(innerParentNode(frameOwner));
|
| - m_frontend->childNodeRemoved(parentId, frameOwnerId);
|
| - RefPtr<InspectorObject> value = buildObjectForNode(frameOwner, 0, &m_documentNodeToIdMap);
|
| - Node* previousSibling = innerPreviousSibling(frameOwner);
|
| - int prevId = previousSibling ? m_documentNodeToIdMap.get(previousSibling) : 0;
|
| - m_frontend->childNodeInserted(parentId, prevId, value.release());
|
| - // Invalidate children requested flag for the element.
|
| - m_childrenRequested.remove(m_childrenRequested.find(frameOwnerId));
|
| - }
|
| + // Re-add frame owner element together with its new children.
|
| + int parentId = m_documentNodeToIdMap.get(innerParentNode(frameOwner));
|
| + m_frontend->childNodeRemoved(parentId, frameOwnerId);
|
| + unbind(frameOwner, &m_documentNodeToIdMap);
|
| + RefPtr<InspectorObject> value = buildObjectForNode(frameOwner, 0, &m_documentNodeToIdMap);
|
| + Node* previousSibling = innerPreviousSibling(frameOwner);
|
| + int prevId = previousSibling ? m_documentNodeToIdMap.get(previousSibling) : 0;
|
| + m_frontend->childNodeInserted(parentId, prevId, value.release());
|
| }
|
|
|
| void InspectorDOMAgent::didInsertDOMNode(Node* node)
|
|
|