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

Issue 2418653003: Reland: Make the CPDFXFA_App non-global (Closed)

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

Description

Reland: Make the CPDFXFA_App non-global This reverts commit b685e6471075bebd26711bc183de3128f54932e3. This CL changes CPDFXFA_App from a global object to a child of the CPDFXFA_Document objects. BUG=pdfium:623 Committed: https://pdfium.googlesource.com/pdfium/+/f3736bca5f874b0889c5906ffbd74a405089f671

Patch Set 1 #

Patch Set 2 : Dispose of the isolate #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -229 lines) Patch
M BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M fpdfsdk/DEPS View 1 chunk +2 lines, -1 line 0 comments Download
M fpdfsdk/cpdfsdk_formfillenvironment.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M fpdfsdk/fpdfdoc_unittest.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M fpdfsdk/fpdfformfill.cpp View 2 chunks +0 lines, -3 lines 0 comments Download
M fpdfsdk/fpdfsave.cpp View 1 chunk +0 lines, -3 lines 0 comments Download
M fpdfsdk/fpdfview.cpp View 4 chunks +9 lines, -12 lines 0 comments Download
M fpdfsdk/fpdfxfa/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M fpdfsdk/fpdfxfa/cpdfxfa_app.h View 1 2 chunks +5 lines, -14 lines 0 comments Download
M fpdfsdk/fpdfxfa/cpdfxfa_app.cpp View 1 5 chunks +43 lines, -107 lines 1 comment Download
M fpdfsdk/fpdfxfa/cpdfxfa_document.h View 5 chunks +6 lines, -11 lines 0 comments Download
M fpdfsdk/fpdfxfa/cpdfxfa_document.cpp View 6 chunks +24 lines, -15 lines 0 comments Download
M fpdfsdk/javascript/cjs_runtime.cpp View 3 chunks +2 lines, -41 lines 0 comments Download
M fxjs/fxjs_v8.h View 1 chunk +0 lines, -7 lines 0 comments Download
M fxjs/fxjs_v8.cpp View 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
dsinclair
PTAL. Patchset #1 is the original CL, PS#2 is the fix.
4 years, 2 months ago (2016-10-13 18:58:52 UTC) #3
Tom Sepez
lgtm
4 years, 2 months ago (2016-10-13 19:04:49 UTC) #6
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/2418653003/20001
4 years, 2 months ago (2016-10-13 19:06:36 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://pdfium.googlesource.com/pdfium/+/f3736bca5f874b0889c5906ffbd74a405089f671
4 years, 2 months ago (2016-10-13 19:07:46 UTC) #11
dsinclair
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2414883006/ by dsinclair@chromium.org. ...
4 years, 2 months ago (2016-10-13 19:14:16 UTC) #12
Tom Sepez
https://codereview.chromium.org/2418653003/diff/20001/fpdfsdk/fpdfxfa/cpdfxfa_app.cpp File fpdfsdk/fpdfxfa/cpdfxfa_app.cpp (right): https://codereview.chromium.org/2418653003/diff/20001/fpdfsdk/fpdfxfa/cpdfxfa_app.cpp#newcode20 fpdfsdk/fpdfxfa/cpdfxfa_app.cpp:20: m_bOwnsIsolate = FXJS_GetIsolate(&m_pIsolate); thinking more about this ... Can ...
4 years, 2 months ago (2016-10-13 20:01:33 UTC) #13
Tom Sepez
4 years, 2 months ago (2016-10-13 20:02:31 UTC) #14
Message was sent while issue was closed.
On 2016/10/13 20:01:33, Tom Sepez wrote:
>
https://codereview.chromium.org/2418653003/diff/20001/fpdfsdk/fpdfxfa/cpdfxfa...
> File fpdfsdk/fpdfxfa/cpdfxfa_app.cpp (right):
> 
>
https://codereview.chromium.org/2418653003/diff/20001/fpdfsdk/fpdfxfa/cpdfxfa...
> fpdfsdk/fpdfxfa/cpdfxfa_app.cpp:20: m_bOwnsIsolate =
> FXJS_GetIsolate(&m_pIsolate);
> thinking more about this ...
> 
> Can we now call CJS_Runtime::CJS_Runtime() instead of doing this directly?  I
> hope that with your change, we now have the specific objects required to fully
> init CJS, not just fxjs

CPDFSDK_FormFillEnvironment::GetJSRuntime() actually.

Powered by Google App Engine
This is Rietveld 408576698