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

Issue 2101403002: Pass element hash and name into CXFA_Object constructor. (Closed)

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

Description

Pass element hash and name into CXFA_Object constructor. Providing the element hash and name in the constructor allows us to remove the calls to XFA_GetElementByID in the get methods. Committed: https://pdfium.googlesource.com/pdfium/+/c1df5d4375027aa9d0b88f456f95177c016e8cad

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove magic numbers #

Patch Set 3 : Rebase to master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -18 lines) Patch
M xfa/fxfa/parser/xfa_document_imp.cpp View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M xfa/fxfa/parser/xfa_object.h View 1 2 3 chunks +7 lines, -2 lines 0 comments Download
M xfa/fxfa/parser/xfa_object_imp.cpp View 1 2 4 chunks +16 lines, -8 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_datawindow.cpp View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_script_eventpseudomodel.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_script_layoutpseudomodel.cpp View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_script_logpseudomodel.cpp View 1 2 1 chunk +8 lines, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_script_signaturepseudomodel.cpp View 1 2 4 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 16 (4 generated)
dsinclair
PTAL.
4 years, 5 months ago (2016-06-28 14:46:20 UTC) #2
Lei Zhang
lgtm https://codereview.chromium.org/2101403002/diff/1/xfa/fxfa/parser/xfa_object.h File xfa/fxfa/parser/xfa_object.h (right): https://codereview.chromium.org/2101403002/diff/1/xfa/fxfa/parser/xfa_object.h#newcode89 xfa/fxfa/parser/xfa_object.h:89: const CFX_WideStringC GetClassName() const; Is the const useful? ...
4 years, 5 months ago (2016-06-28 15:12:03 UTC) #3
dsinclair
PTAL. Changed how the hashes are handled. https://codereview.chromium.org/2101403002/diff/1/xfa/fxfa/parser/xfa_object.h File xfa/fxfa/parser/xfa_object.h (right): https://codereview.chromium.org/2101403002/diff/1/xfa/fxfa/parser/xfa_object.h#newcode89 xfa/fxfa/parser/xfa_object.h:89: const CFX_WideStringC ...
4 years, 5 months ago (2016-06-28 15:42:10 UTC) #4
dsinclair
ping.
4 years, 5 months ago (2016-07-06 20:06:37 UTC) #5
Wei Li
I have a general question: Does this mean we store the name for each object? ...
4 years, 5 months ago (2016-07-06 22:19:28 UTC) #6
dsinclair
On 2016/07/06 22:19:28, Wei Li wrote: > I have a general question: Does this mean ...
4 years, 5 months ago (2016-07-07 01:44:31 UTC) #7
Wei Li
I don't have much experience about XFA files to estimate the cost either. But I ...
4 years, 5 months ago (2016-07-07 21:15:46 UTC) #8
dsinclair
On 2016/07/07 21:15:46, Wei Li wrote: > I don't have much experience about XFA files ...
4 years, 5 months ago (2016-07-14 15:36:56 UTC) #9
Wei Li
On 2016/07/14 15:36:56, dsinclair wrote: > On 2016/07/07 21:15:46, Wei Li wrote: > > I ...
4 years, 5 months ago (2016-07-15 21:47:53 UTC) #10
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/2101403002/40001
4 years, 5 months ago (2016-07-18 13:23:42 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://pdfium.googlesource.com/pdfium/+/c1df5d4375027aa9d0b88f456f95177c016e8cad
4 years, 5 months ago (2016-07-18 13:36:56 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-07-18 13:36:58 UTC) #16
Message was sent while issue was closed.
CQ bit was unchecked.

Powered by Google App Engine
This is Rietveld 408576698