Index: Source/core/inspector/InspectorDOMAgent.cpp |
diff --git a/Source/core/inspector/InspectorDOMAgent.cpp b/Source/core/inspector/InspectorDOMAgent.cpp |
index dd4a120d51caf0dd74a57af285278b6e8c432f60..179e59040ce11cdc2c5e081d5947e8d04dd76c8d 100755 |
--- a/Source/core/inspector/InspectorDOMAgent.cpp |
+++ b/Source/core/inspector/InspectorDOMAgent.cpp |
@@ -1025,12 +1025,12 @@ void InspectorDOMAgent::performSearch(ErrorString*, const String& whitespaceTrim |
} |
*searchId = IdentifiersFactory::createIdentifier(); |
- SearchResults::iterator resultsIt = m_searchResults.add(*searchId, Vector<RefPtr<Node> >()).iterator; |
+ Vector<RefPtr<Node> >* resultsIt = &m_searchResults.add(*searchId, Vector<RefPtr<Node> >()).iterator->value; |
for (ListHashSet<Node*>::iterator it = resultCollector.begin(); it != resultCollector.end(); ++it) |
- resultsIt->value.append(*it); |
+ resultsIt->append(*it); |
- *resultCount = resultsIt->value.size(); |
+ *resultCount = resultsIt->size(); |
} |
void InspectorDOMAgent::getSearchResults(ErrorString* errorString, const String& searchId, int fromIndex, int toIndex, RefPtr<TypeBuilder::Array<int> >& nodeIds) |