Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Side by Side Diff: core/include/fpdfapi/fpdf_pageobj.h

Issue 560673002: Fix uninitialized value in CPDF_ColorStateData (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef _FPDF_PAGEOBJ_H_ 7 #ifndef _FPDF_PAGEOBJ_H_
8 #define _FPDF_PAGEOBJ_H_ 8 #define _FPDF_PAGEOBJ_H_
9 #ifndef _FPDF_RESOURCE_ 9 #ifndef _FPDF_RESOURCE_
10 #include "fpdf_resource.h" 10 #include "fpdf_resource.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 void DeletePath(int layer_index); 158 void DeletePath(int layer_index);
159 159
160 void AppendTexts(CPDF_TextObject** pTexts, in t count); 160 void AppendTexts(CPDF_TextObject** pTexts, in t count);
161 161
162 void Transform(const CFX_AffineMatrix& matrix ); 162 void Transform(const CFX_AffineMatrix& matrix );
163 }; 163 };
164 class CPDF_ColorStateData : public CFX_Object 164 class CPDF_ColorStateData : public CFX_Object
165 { 165 {
166 public: 166 public:
167 167
168 CPDF_ColorStateData() {} 168 CPDF_ColorStateData(): m_FillRGB(0), m_StrokeRGB(0) {}
169 169
170 CPDF_ColorStateData(const CPDF_ColorStateData& src); 170 CPDF_ColorStateData(const CPDF_ColorStateData& src);
171 171
172 void Default(); 172 void Default();
173 173
174 CPDF_Color m_FillColor; 174 CPDF_Color m_FillColor;
175 175
176 FX_DWORD m_FillRGB; 176 FX_DWORD m_FillRGB;
177 177
178 CPDF_Color m_StrokeColor; 178 CPDF_Color m_StrokeColor;
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 CFX_DIBitmap* m_pBitmap; 714 CFX_DIBitmap* m_pBitmap;
715 715
716 CFX_ArrayTemplate<CFX_AffineMatrix> m_Matrices; 716 CFX_ArrayTemplate<CFX_AffineMatrix> m_Matrices;
717 717
718 void AddMatrix(CFX_AffineMatrix& matrix); 718 void AddMatrix(CFX_AffineMatrix& matrix);
719 protected: 719 protected:
720 virtual void Transform(const CFX_AffineMatrix& matrix) {} 720 virtual void Transform(const CFX_AffineMatrix& matrix) {}
721 virtual void CopyData(const CPDF_PageObject* pSrcObjet) {} 721 virtual void CopyData(const CPDF_PageObject* pSrcObjet) {}
722 }; 722 };
723 #endif 723 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698