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

Issue 2397473006: Remove ownership of CPDFSDK_Document from CPDFXFA_Document (Closed)

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

Description

Remove ownership of CPDFSDK_Document from CPDFXFA_Document This CL updates CPDFXFA_Document so it never owns the CPDFSDK_Document. The CPDFSDK_Document is now always owned by the CPDFXFA_Environment. This also cleans up the strange need to reverse the order of document and form destruction when using XFA. Committed: https://pdfium.googlesource.com/pdfium/+/2116105b7d0545eb353264d4b42420cf51af5195

Patch Set 1 #

Total comments: 6

Patch Set 2 : Review feedback #

Patch Set 3 : Rebase to master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -40 lines) Patch
M fpdfsdk/cpdfsdk_document.h View 1 chunk +1 line, -0 lines 0 comments Download
M fpdfsdk/cpdfsdk_document.cpp View 1 chunk +7 lines, -4 lines 0 comments Download
M fpdfsdk/cpdfsdk_environment.h View 2 chunks +2 lines, -6 lines 0 comments Download
M fpdfsdk/fpdfformfill.cpp View 2 chunks +6 lines, -5 lines 0 comments Download
M fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp View 1 chunk +5 lines, -1 line 0 comments Download
M fpdfsdk/fpdfxfa/cpdfxfa_document.h View 2 chunks +3 lines, -5 lines 0 comments Download
M fpdfsdk/fpdfxfa/cpdfxfa_document.cpp View 3 chunks +6 lines, -4 lines 0 comments Download
M samples/pdfium_test.cc View 1 3 chunks +4 lines, -15 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 18 (11 generated)
dsinclair
PTAL. https://codereview.chromium.org/2397473006/diff/1/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp File fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp (right): https://codereview.chromium.org/2397473006/diff/1/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp#newcode261 fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp:261: CPDFSDK_Document* pSDKDoc = m_pDocument->GetSDKDoc(); This is needed because ...
4 years, 2 months ago (2016-10-05 15:17:59 UTC) #4
Tom Sepez
Much better. I think this works. https://codereview.chromium.org/2397473006/diff/1/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp File fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp (right): https://codereview.chromium.org/2397473006/diff/1/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp#newcode261 fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp:261: CPDFSDK_Document* pSDKDoc = ...
4 years, 2 months ago (2016-10-05 17:13:14 UTC) #7
Lei Zhang
https://codereview.chromium.org/2397473006/diff/1/samples/pdfium_test.cc File samples/pdfium_test.cc (right): https://codereview.chromium.org/2397473006/diff/1/samples/pdfium_test.cc#newcode89 samples/pdfium_test.cc:89: static void CloseDocAndForm(FPDF_DOCUMENT doc, FPDF_FORMHANDLE form) { If we ...
4 years, 2 months ago (2016-10-05 17:14:54 UTC) #8
dsinclair
https://codereview.chromium.org/2397473006/diff/1/fpdfsdk/fpdfxfa/cpdfxfa_document.cpp File fpdfsdk/fpdfxfa/cpdfxfa_document.cpp (right): https://codereview.chromium.org/2397473006/diff/1/fpdfsdk/fpdfxfa/cpdfxfa_document.cpp#newcode48 fpdfsdk/fpdfxfa/cpdfxfa_document.cpp:48: m_pSDKDoc = nullptr; On 2016/10/05 17:13:14, Tom Sepez wrote: ...
4 years, 2 months ago (2016-10-05 17:55:57 UTC) #9
Tom Sepez
lgtm
4 years, 2 months ago (2016-10-05 21:53:30 UTC) #14
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/2397473006/40001
4 years, 2 months ago (2016-10-05 22:46:00 UTC) #16
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 22:46:20 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/2116105b7d0545eb353264d4b42420cf51af...

Powered by Google App Engine
This is Rietveld 408576698