void FormKeyGenerator::willDeleteForm(HTMLFormElement* form) { ASSERT(form); if (m_formToKeyMap.isEmpty()) return; FormToKeyMap::iterator it = m_formToKeyMap.find(form); if (it == m_formToKeyMap.end()) return; m_formToKeyMap.remove(it); }
void FormKeyGenerator::willDeleteForm(HTMLFormElement* form) { ASSERT(form); m_formToKeyMap.remove(form); }