HashMap should have removeIf()
https://bugs.webkit.org/show_bug.cgi?id=134870

Reviewed by Sam Weinig.
        
Expose a new HashMap method, called removeIf(), which allows you to do an efficient
pass over the map and remove a bunch of things at once. This is used by DFG GCSE as
part of https://bugs.webkit.org/show_bug.cgi?id=134677.

* wtf/HashMap.h:
(WTF::X>::removeIf):
* wtf/HashTable.h:
(WTF::KeyTraits>::removeIf):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@171049 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Cocoa] Clean up session state API a little
https://bugs.webkit.org/show_bug.cgi?id=134871

Reviewed by Darin Adler.

* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _sessionState]):
(-[WKWebView _restoreFromSessionState:]): Deleted.
* UIProcess/API/Cocoa/WKWebViewPrivate.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@171050 268f45cc-cd09-0410-ab3c-d52691b4dbfc