summaryrefslogtreecommitdiff
path: root/core/include/fpdfapi/fpdf_resource.h
diff options
context:
space:
mode:
authorBo Xu <bo_xu@foxitsoftware.com>2014-09-09 18:39:30 -0700
committerBo Xu <bo_xu@foxitsoftware.com>2014-09-09 18:39:30 -0700
commit9175beec2686231fe284e8c8095d04668817509b (patch)
treee8956fbb7dd070c405a4586ca54b69d6c2caf6ef /core/include/fpdfapi/fpdf_resource.h
parent663af999d721f86e828a87354c380b76d146cedf (diff)
downloadpdfium-9175beec2686231fe284e8c8095d04668817509b.tar.xz
Change the forced clear order of CPDF_DocPageData::Clear, and remove m_pDocument in CPDF_Color
If not forced clear, the counter of CPDF_Pattern will take care the count of referenced instance. When forced clear, clear color first to make sure pattern still exists when referencing it. BUG=411154 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/554913003
Diffstat (limited to 'core/include/fpdfapi/fpdf_resource.h')
-rw-r--r--core/include/fpdfapi/fpdf_resource.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/include/fpdfapi/fpdf_resource.h b/core/include/fpdfapi/fpdf_resource.h
index 92c4872537..a7a644435e 100644
--- a/core/include/fpdfapi/fpdf_resource.h
+++ b/core/include/fpdfapi/fpdf_resource.h
@@ -680,7 +680,7 @@ class CPDF_Color : public CFX_Object
{
public:
- CPDF_Color() :m_pCS(NULL), m_pBuffer(NULL), m_pDocument(NULL)
+ CPDF_Color() :m_pCS(NULL), m_pBuffer(NULL)
{
}
@@ -722,7 +722,6 @@ protected:
void ReleaseBuffer();
void ReleaseColorSpace();
FX_FLOAT* m_pBuffer;
- CPDF_Document* m_pDocument;
};
#define PATTERN_TILING 1
#define PATTERN_SHADING 2