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

Issue 1420583003: Revert "Revert "Add type cast definitions for CPDF_Dictionary."" (Closed)

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

Description

Revert "Revert "Add type cast definitions for CPDF_Dictionary."" This reverts commit 937840e1722d1f2b77d80575d6e710d760662c9c. Add type cast definitions for CPDF_Dictionary. This CL adds ToCPDFDictionary type definitions and updates one file to use instead of straight casts. I had to fix two places where we'd casted off the constness of the original pointer. BUG=pdfium:201 R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/39869b641511c882d78e17548293cdb458c36f38

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -261 lines) Patch
M core/include/fpdfapi/fpdf_objects.h View 2 chunks +12 lines, -0 lines 0 comments Download
M core/include/fpdfdoc/fpdf_doc.h View 1 chunk +2 lines, -2 lines 0 comments Download
M core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp View 5 chunks +6 lines, -5 lines 0 comments Download
M core/src/fpdfapi/fpdf_font/fpdf_font.cpp View 2 chunks +5 lines, -3 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp View 4 chunks +8 lines, -6 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_image.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp View 6 chunks +11 lines, -12 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp View 3 chunks +6 lines, -5 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp View 1 chunk +5 lines, -8 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_fdf.cpp View 3 chunks +12 lines, -17 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp View 1 8 chunks +21 lines, -11 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp View 9 chunks +13 lines, -14 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfapi/fpdf_render/fpdf_render.cpp View 1 2 chunks +3 lines, -2 lines 0 comments Download
M core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M core/src/fpdfdoc/doc_action.cpp View 5 chunks +9 lines, -11 lines 0 comments Download
M core/src/fpdfdoc/doc_annot.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M core/src/fpdfdoc/doc_basic.cpp View 9 chunks +19 lines, -30 lines 0 comments Download
M core/src/fpdfdoc/doc_form.cpp View 3 chunks +12 lines, -14 lines 0 comments Download
M core/src/fpdfdoc/doc_formcontrol.cpp View 3 chunks +7 lines, -7 lines 0 comments Download
M core/src/fpdfdoc/doc_ocg.cpp View 3 chunks +6 lines, -9 lines 0 comments Download
M core/src/fpdfdoc/doc_tagged.cpp View 5 chunks +9 lines, -9 lines 0 comments Download
M core/src/fpdfdoc/doc_utils.cpp View 6 chunks +18 lines, -31 lines 0 comments Download
M core/src/fpdftext/fpdf_text_int.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp View 2 chunks +3 lines, -5 lines 0 comments Download
M fpdfsdk/src/formfiller/FFL_Utils.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/src/fpdf_flatten.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M fpdfsdk/src/fpdf_transformpage.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M fpdfsdk/src/fpdfdoc.cpp View 15 chunks +22 lines, -16 lines 0 comments Download
M fpdfsdk/src/fpdfeditpage.cpp View 3 chunks +3 lines, -4 lines 0 comments Download
M fpdfsdk/src/fpdfppo.cpp View 5 chunks +6 lines, -12 lines 0 comments Download
M fpdfsdk/src/fpdfview.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M fpdfsdk/src/fsdk_baseform.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M fpdfsdk/src/fsdk_mgr.cpp View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
dsinclair
PTAL. PS1 is exactly the reverted CL. PS2 shows the changes to fix the crash. ...
5 years, 2 months ago (2015-10-20 18:49:33 UTC) #2
Tom Sepez
lgtm
5 years, 2 months ago (2015-10-20 18:55:23 UTC) #3
dsinclair
5 years, 2 months ago (2015-10-20 18:57:59 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
39869b641511c882d78e17548293cdb458c36f38 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698