Merge to XFA: Add type cast definitions for CPDF_Number.
authorDan Sinclair <dsinclair@chromium.org>
Wed, 21 Oct 2015 15:07:42 +0000 (11:07 -0400)
committerDan Sinclair <dsinclair@chromium.org>
Wed, 21 Oct 2015 15:07:42 +0000 (11:07 -0400)
commit43ce9035a026c7b4f15aa938dc39444d9253ea9f
tree8f18c1508dfd0db47d9dec1dbc708fd018349b3f
parent1edb860fd465879311ec85c5c6385067b7985013
Merge to XFA: Add type cast definitions for CPDF_Number.

This Cl adds ToNumber, CPDF_Object::AsNumber and CPDF_Object::IsNumber and
updates the src to use them as needed.

BUG=pdfium:201
TBR=thestig@chromium.org

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

(cherry picked from commit 83bf02dfb860a66d756434d194118dae572d04d3)

Review URL: https://codereview.chromium.org/1422583002 .
core/include/fpdfapi/fpdf_objects.h
core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
core/src/fpdfdoc/doc_basic.cpp
core/src/fpdfdoc/doc_formfield.cpp
core/src/fpdfdoc/doc_tagged.cpp
fpdfsdk/src/javascript/Document.cpp