Store the address of the page data map's value for proper referencing.
authorBo Xu <bo_xu@foxitsoftware.com>
Wed, 15 Oct 2014 00:10:06 +0000 (17:10 -0700)
committerBo Xu <bo_xu@foxitsoftware.com>
Wed, 15 Oct 2014 00:10:06 +0000 (17:10 -0700)
commite1177425a656f915657f948d965193a019702a52
treeb3213672a9af719ffe6b9b519a828d587886f289
parent35d720aff01c5ea778c16ac1e31c56f68490f10b
Store the address of the page data map's value for proper referencing.

CPDF_Pattern objects are counted and maintained in m_PatternedMap.
When a CPDF_Pattern object "pattern" is deleted, it's address is marked as NULL in m_PatternMap.
This patch stores the address of CPDF_Pattern's adderss in all objects that references "pattern",
to ensure valid referencing after deletion.

BUG=416319, 419976, 418392
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/656753002
core/include/fpdfapi/fpdf_resource.h
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_pattern.cpp
core/src/fpdfapi/fpdf_page/pageint.h