Index: WebCore/dom/Document.cpp |
=================================================================== |
--- WebCore/dom/Document.cpp (revision 69030) |
+++ WebCore/dom/Document.cpp (working copy) |
@@ -1189,8 +1189,10 @@ |
if (m_elementsById.get(elementId.impl()) == element) |
m_elementsById.remove(elementId.impl()); |
- else |
+ else { |
+ ASSERT(m_inRemovedLastRefFunction || m_duplicateIds.contains(elementId.impl())); |
m_duplicateIds.remove(elementId.impl()); |
+ } |
} |
Element* Document::getElementByAccessKey(const String& key) const |