Merge to XFA: Add type cast definitions for CPDF_Name.
authorDan Sinclair <dsinclair@chromium.org>
Wed, 21 Oct 2015 19:46:10 +0000 (15:46 -0400)
committerDan Sinclair <dsinclair@chromium.org>
Wed, 21 Oct 2015 19:46:10 +0000 (15:46 -0400)
commit710c909117da4297e5a9508bedb306fc5c49eb36
tree53c9bf4471ebe72977773ec8151b4ae44c3975bb
parent316eb864137a0b8eeb0d0d4d698ba83f4946a89c
Merge to XFA: Add type cast definitions for CPDF_Name.

This Cl adds ToName, CPDF_Object::AsName and CPDF_Object::IsName and
updates the src to use them as needed.

BUG=pdfium:201
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1417823005 .

(cherry picked from commit 1c77edb7b34e03787605b7965784cea38ef9f1d7)

Review URL: https://codereview.chromium.org/1417033004 .
22 files changed:
core/include/fpdfapi/fpdf_objects.h
core/src/fpdfapi/fpdf_font/fpdf_font.cpp
core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp
core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp
core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp
core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp
core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp
core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp
core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp
core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp
core/src/fpdfdoc/doc_action.cpp
core/src/fpdfdoc/doc_bookmark.cpp
core/src/fpdfdoc/doc_formfield.cpp
core/src/fpdfdoc/doc_link.cpp
core/src/fpdfdoc/doc_tagged.cpp
fpdfsdk/src/formfiller/FFL_Utils.cpp
fpdfsdk/src/fpdfppo.cpp
fpdfsdk/src/javascript/Document.cpp