From 9175beec2686231fe284e8c8095d04668817509b Mon Sep 17 00:00:00 2001 From: Bo Xu Date: Tue, 9 Sep 2014 18:39:30 -0700 Subject: 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 --- core/include/fpdfapi/fpdf_resource.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/include/fpdfapi') 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 -- cgit v1.2.3