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

Issue 2312023004: Do not re-create the page view when accessing from Document::removeField. (Closed)

Created:
4 years, 3 months ago by dsinclair
Modified:
4 years, 3 months ago
Reviewers:
Lei Zhang, Wei Li
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Do not re-create the page view when accessing from Document::removeField. When removing a field from the document we can force the recreation of a CPDFSDK_PageView by passing |true| as the last parameter to |GetPageView|. This will force a new page view to be created so we can delete a field from it and, we then end up with a dangling PageView. This CL passes |false| to |GetPageView| and skips removing the widget if we do not receive a pageView back from the document. BUG=chromium:644219 Committed: https://pdfium.googlesource.com/pdfium/+/1897bdc3cf51c84a0356d373e34ec100c93c954e

Patch Set 1 #

Total comments: 2

Patch Set 2 : review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -4 lines) Patch
M fpdfsdk/javascript/Document.cpp View 1 2 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
dsinclair
PTAL.
4 years, 3 months ago (2016-09-06 19:22:56 UTC) #4
Lei Zhang
lgtm Cross my fingers and hope nothing breaks. https://codereview.chromium.org/2312023004/diff/1/fpdfsdk/javascript/Document.cpp File fpdfsdk/javascript/Document.cpp (right): https://codereview.chromium.org/2312023004/diff/1/fpdfsdk/javascript/Document.cpp#newcode504 fpdfsdk/javascript/Document.cpp:504: // ...
4 years, 3 months ago (2016-09-06 20:45:45 UTC) #7
dsinclair
https://codereview.chromium.org/2312023004/diff/1/fpdfsdk/javascript/Document.cpp File fpdfsdk/javascript/Document.cpp (right): https://codereview.chromium.org/2312023004/diff/1/fpdfsdk/javascript/Document.cpp#newcode504 fpdfsdk/javascript/Document.cpp:504: // do not create one. We maybe in the ...
4 years, 3 months ago (2016-09-06 20:47:44 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2312023004/20001
4 years, 3 months ago (2016-09-06 20:47:57 UTC) #11
commit-bot: I haz the power
4 years, 3 months ago (2016-09-06 21:19:00 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/1897bdc3cf51c84a0356d373e34ec100c93c...

Powered by Google App Engine
This is Rietveld 408576698