Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(883)

Issue 1352393003: Use std::set<> to track active event handlers. (Closed)

Created:
5 years, 3 months ago by Tom Sepez
Modified:
5 years, 3 months ago
Reviewers:
Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

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 Committed: https://pdfium.googlesource.com/pdfium/+/d8d223127d706aa4961b2c9b0037ab256fce9a8f

Patch Set 1 #

Total comments: 6

Patch Set 2 : Simpler set manipulations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -88 lines) Patch
M fpdfsdk/include/javascript/JS_Runtime.h View 1 4 chunks +9 lines, -13 lines 0 comments Download
M fpdfsdk/src/javascript/JS_Context.cpp View 2 chunks +4 lines, -5 lines 0 comments Download
M fpdfsdk/src/javascript/JS_Runtime.cpp View 1 3 chunks +4 lines, -70 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Tom Sepez
Lei, for review.
5 years, 3 months ago (2015-09-22 17:02:17 UTC) #2
Lei Zhang
SGTM https://codereview.chromium.org/1352393003/diff/1/fpdfsdk/include/javascript/JS_Runtime.h File fpdfsdk/include/javascript/JS_Runtime.h (right): https://codereview.chromium.org/1352393003/diff/1/fpdfsdk/include/javascript/JS_Runtime.h#newcode37 fpdfsdk/include/javascript/JS_Runtime.h:37: FX_BOOL AddEventToSet(const FieldEvent& event); Can we use bool ...
5 years, 3 months ago (2015-09-22 22:20:50 UTC) #3
Tom Sepez
https://codereview.chromium.org/1352393003/diff/1/fpdfsdk/include/javascript/JS_Runtime.h File fpdfsdk/include/javascript/JS_Runtime.h (right): https://codereview.chromium.org/1352393003/diff/1/fpdfsdk/include/javascript/JS_Runtime.h#newcode37 fpdfsdk/include/javascript/JS_Runtime.h:37: FX_BOOL AddEventToSet(const FieldEvent& event); On 2015/09/22 22:20:50, Lei Zhang ...
5 years, 3 months ago (2015-09-22 22:32:46 UTC) #4
Lei Zhang
lgtm
5 years, 3 months ago (2015-09-22 22:36:56 UTC) #5
Tom Sepez
5 years, 3 months ago (2015-09-22 22:39:20 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
d8d223127d706aa4961b2c9b0037ab256fce9a8f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698