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

Issue 2026993003: Remove FXJSE_Value_ToObject and call methods directly (Closed)

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

Description

Remove FXJSE_Value_ToObject and call methods directly This Cl removes the global FXJSE_Value_ToObject method and adds individual methods on CXFA_Value to do the needed conversions. Committed: https://pdfium.googlesource.com/pdfium/+/8f3074bef53ed941daef3f32981b1449db7bcc26

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -373 lines) Patch
M BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M xfa.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M xfa/fxfa/app/xfa_ffdochandler.cpp View 1 1 chunk +1 line, -3 lines 0 comments Download
M xfa/fxfa/fm2js/xfa_fm2jscontext.cpp View 1 2 3 116 chunks +170 lines, -319 lines 0 comments Download
A xfa/fxfa/parser/cxfa_valuearray.h View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
A xfa/fxfa/parser/cxfa_valuearray.cpp View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
M xfa/fxfa/parser/xfa_script.h View 1 2 2 chunks +1 line, -20 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp View 1 3 chunks +10 lines, -4 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_imp.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_imp.cpp View 1 2 3 10 chunks +19 lines, -18 lines 0 comments Download
M xfa/fxjse/include/fxjse.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M xfa/fxjse/value.h View 1 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxjse/value.cpp View 1 2 chunks +1 line, -6 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
dsinclair
PTAL. https://codereview.chromium.org/2026993003/diff/1/xfa/fxfa/fm2js/xfa_fm2jscontext.cpp File xfa/fxfa/fm2js/xfa_fm2jscontext.cpp (right): https://codereview.chromium.org/2026993003/diff/1/xfa/fxfa/fm2js/xfa_fm2jscontext.cpp#newcode3325 xfa/fxfa/fm2js/xfa_fm2jscontext.cpp:3325: CFXJSE_Context* pTempContext = Shadow'd variable.
4 years, 6 months ago (2016-06-01 14:49:33 UTC) #2
Tom Sepez
https://codereview.chromium.org/2026993003/diff/1/xfa/fxjse/value.cpp File xfa/fxjse/value.cpp (right): https://codereview.chromium.org/2026993003/diff/1/xfa/fxjse/value.cpp#newcode11 xfa/fxjse/value.cpp:11: #include "xfa/fxfa/fm2js/xfa_fm2jscontext.h" illegal include, in theory due to layering. ...
4 years, 6 months ago (2016-06-01 20:17:59 UTC) #3
dsinclair
https://codereview.chromium.org/2026993003/diff/1/xfa/fxjse/value.h File xfa/fxjse/value.h (right): https://codereview.chromium.org/2026993003/diff/1/xfa/fxjse/value.h#newcode150 xfa/fxjse/value.h:150: CXFA_Object* ToObject(CFXJSE_Class* lpClass) const; On 2016/06/01 20:17:58, Tom Sepez ...
4 years, 6 months ago (2016-06-01 20:34:31 UTC) #4
Tom Sepez
On 2016/06/01 20:34:31, dsinclair wrote: > https://codereview.chromium.org/2026993003/diff/1/xfa/fxjse/value.h > File xfa/fxjse/value.h (right): > > https://codereview.chromium.org/2026993003/diff/1/xfa/fxjse/value.h#newcode150 > ...
4 years, 6 months ago (2016-06-01 20:37:32 UTC) #5
Tom Sepez
> If you look around, fxjse doesn't currently include any fxfa. > Lei and I ...
4 years, 6 months ago (2016-06-01 20:38:13 UTC) #6
dsinclair
PTAL. https://codereview.chromium.org/2026993003/diff/20001/xfa/fxfa/parser/xfa_script.h File xfa/fxfa/parser/xfa_script.h (right): https://codereview.chromium.org/2026993003/diff/20001/xfa/fxfa/parser/xfa_script.h#newcode50 xfa/fxfa/parser/xfa_script.h:50: objArray.Add(static_cast<CXFA_Object*>(GetAt(i)->ToHostObject(nullptr))); Can't use CXFA_ScriptContext::ToObject here because the includes ...
4 years, 6 months ago (2016-06-02 15:27:53 UTC) #7
Tom Sepez
https://codereview.chromium.org/2026993003/diff/20001/xfa/fxfa/parser/xfa_script.h File xfa/fxfa/parser/xfa_script.h (right): https://codereview.chromium.org/2026993003/diff/20001/xfa/fxfa/parser/xfa_script.h#newcode41 xfa/fxfa/parser/xfa_script.h:41: CXFA_ValueArray(v8::Isolate* pIsolate) : m_pIsolate(pIsolate) {} nit: explicit https://codereview.chromium.org/2026993003/diff/20001/xfa/fxfa/parser/xfa_script.h#newcode50 xfa/fxfa/parser/xfa_script.h:50: ...
4 years, 6 months ago (2016-06-02 18:20:23 UTC) #8
dsinclair
https://codereview.chromium.org/2026993003/diff/20001/xfa/fxfa/parser/xfa_script.h File xfa/fxfa/parser/xfa_script.h (right): https://codereview.chromium.org/2026993003/diff/20001/xfa/fxfa/parser/xfa_script.h#newcode41 xfa/fxfa/parser/xfa_script.h:41: CXFA_ValueArray(v8::Isolate* pIsolate) : m_pIsolate(pIsolate) {} On 2016/06/02 18:20:23, Tom ...
4 years, 6 months ago (2016-06-02 18:58:05 UTC) #9
Tom Sepez
lgtm https://codereview.chromium.org/2026993003/diff/60001/xfa/fxfa/parser/cxfa_valuearray.h File xfa/fxfa/parser/cxfa_valuearray.h (right): https://codereview.chromium.org/2026993003/diff/60001/xfa/fxfa/parser/cxfa_valuearray.h#newcode20 xfa/fxfa/parser/cxfa_valuearray.h:20: v8::Isolate* m_pIsolate; nit: can this be v8::Isolate* const ...
4 years, 6 months ago (2016-06-02 20:42:18 UTC) #11
dsinclair
https://codereview.chromium.org/2026993003/diff/60001/xfa/fxfa/parser/cxfa_valuearray.h File xfa/fxfa/parser/cxfa_valuearray.h (right): https://codereview.chromium.org/2026993003/diff/60001/xfa/fxfa/parser/cxfa_valuearray.h#newcode20 xfa/fxfa/parser/cxfa_valuearray.h:20: v8::Isolate* m_pIsolate; On 2016/06/02 20:42:18, Tom Sepez wrote: > ...
4 years, 6 months ago (2016-06-03 00:35:16 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2026993003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2026993003/80001
4 years, 6 months ago (2016-06-03 00:35:29 UTC) #15
commit-bot: I haz the power
4 years, 6 months ago (2016-06-03 00:45:34 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://pdfium.googlesource.com/pdfium/+/8f3074bef53ed941daef3f32981b1449db7b...

Powered by Google App Engine
This is Rietveld 408576698