Use std::set<> to track active event handlers.
authorTom Sepez <tsepez@chromium.org>
Tue, 22 Sep 2015 22:39:15 +0000 (15:39 -0700)
committerTom Sepez <tsepez@chromium.org>
Tue, 22 Sep 2015 22:39:15 +0000 (15:39 -0700)
commitd8d223127d706aa4961b2c9b0037ab256fce9a8f
treeb0fb81449394f1c9f7832684988293dffdfc6396
parentdd7a7f012424ec8505830710ac0dd0183203c189
Use std::set<> to track active event handlers.

This avoids some custom linked-list code. Also note that
we use a local copy to be sure we removed the same thing
that was added no matter how our callees may muck with the
handler.

R=thestig@chromium.org

Review URL: https://codereview.chromium.org/1352393003 .
fpdfsdk/include/javascript/JS_Runtime.h
fpdfsdk/src/javascript/JS_Context.cpp
fpdfsdk/src/javascript/JS_Runtime.cpp