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

Issue 2082573007: Update GetClassID to GetElementType (Closed)

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

Description

Update GetClassID to GetElementType The GetClassID method actually returns the XFA_Element, change the name of the method to be more suggestive of the return value. The GetClassID was sort-of polymorphich and would call down to subclasses. This CL changes the data to be stored on the CXFA_Object class and just returns what is set. The values are set in the constructor as needed. Committed: https://pdfium.googlesource.com/pdfium/+/070fcdfeafb17a9d3ada1418f48fd7f19aa4cf83

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+381 lines, -370 lines) Patch
M xfa/fxfa/app/xfa_ffdocview.cpp View 6 chunks +8 lines, -8 lines 0 comments Download
M xfa/fxfa/app/xfa_fffield.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/app/xfa_ffnotify.cpp View 4 chunks +5 lines, -5 lines 0 comments Download
M xfa/fxfa/app/xfa_ffpageview.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M xfa/fxfa/app/xfa_ffwidget.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fxfa/app/xfa_ffwidgetacc.cpp View 8 chunks +8 lines, -8 lines 0 comments Download
M xfa/fxfa/app/xfa_ffwidgethandler.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fxfa/parser/cxfa_box.h View 1 chunk +5 lines, -3 lines 0 comments Download
M xfa/fxfa/parser/cxfa_data.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/cxfa_data.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M xfa/fxfa/parser/cxfa_event.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/cxfa_fill.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/cxfa_stroke.h View 1 chunk +2 lines, -2 lines 0 comments Download
M xfa/fxfa/parser/cxfa_validate.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fxfa/parser/cxfa_value.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/cxfa_widgetdata.cpp View 19 chunks +19 lines, -19 lines 0 comments Download
M xfa/fxfa/parser/xfa_document_datadescription_imp.cpp View 5 chunks +5 lines, -5 lines 0 comments Download
M xfa/fxfa/parser/xfa_document_datamerger_imp.cpp View 22 chunks +25 lines, -25 lines 1 comment Download
M xfa/fxfa/parser/xfa_document_imp.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_document_serialize.cpp View 13 chunks +18 lines, -16 lines 0 comments Download
M xfa/fxfa/parser/xfa_layout_appadapter.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_layout_appadapter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_layout_itemlayout.cpp View 23 chunks +29 lines, -28 lines 2 comments Download
M xfa/fxfa/parser/xfa_layout_pagemgr_new.cpp View 37 chunks +50 lines, -45 lines 0 comments Download
M xfa/fxfa/parser/xfa_object.h View 7 chunks +5 lines, -10 lines 1 comment Download
M xfa/fxfa/parser/xfa_object_imp.cpp View 79 chunks +120 lines, -123 lines 0 comments Download
M xfa/fxfa/parser/xfa_parser_imp.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_imp.cpp View 7 chunks +10 lines, -9 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_layoutpseudomodel.cpp View 7 chunks +9 lines, -7 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_nodehelper.cpp View 9 chunks +16 lines, -14 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_resolveprocessor.cpp View 8 chunks +15 lines, -13 lines 0 comments Download
M xfa/fxfa/parser/xfa_utils_imp.cpp View 7 chunks +10 lines, -9 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 7 (3 generated)
dsinclair
PTAL.
4 years, 6 months ago (2016-06-22 18:03:56 UTC) #2
Lei Zhang
lgtm with nits and commentary on the existing code. https://codereview.chromium.org/2082573007/diff/1/xfa/fxfa/parser/xfa_document_datamerger_imp.cpp File xfa/fxfa/parser/xfa_document_datamerger_imp.cpp (right): https://codereview.chromium.org/2082573007/diff/1/xfa/fxfa/parser/xfa_document_datamerger_imp.cpp#newcode1094 xfa/fxfa/parser/xfa_document_datamerger_imp.cpp:1094: ...
4 years, 6 months ago (2016-06-23 05:04:20 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2082573007/1
4 years, 6 months ago (2016-06-23 05:04:33 UTC) #5
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 05:04:58 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://pdfium.googlesource.com/pdfium/+/070fcdfeafb17a9d3ada1418f48fd7f19aa4...

Powered by Google App Engine
This is Rietveld 408576698