commit | c8e018eceb352d982f98d7676d36f95cf4b94014 | [log] [tgz] |
---|---|---|
author | rniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Tue Jun 18 21:25:53 2013 +0000 |
committer | rniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Tue Jun 18 21:25:53 2013 +0000 |
tree | 0eb3c93b53afe417365b058272cbee6d304a602f | |
parent | a9527474ac7a3158b372f56a4aae35abbd44484e [diff] [blame] |
Simplify FormKeyGenerator::willDeleteForm https://bugs.webkit.org/show_bug.cgi?id=117751 Reviewed by Antti Koivisto. Merge https://chromium.googlesource.com/chromium/blink/+/c6399efb9da863eb1d1fc98b17ef925998b985ac * html/FormController.cpp: (WebCore::FormKeyGenerator::willDeleteForm): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151696 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/html/FormController.cpp b/Source/WebCore/html/FormController.cpp index 74353d8..b913c3c 100644 --- a/Source/WebCore/html/FormController.cpp +++ b/Source/WebCore/html/FormController.cpp
@@ -368,12 +368,7 @@ 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); + m_formToKeyMap.remove(form); } // ----------------------------------------------------------------------------