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

Side by Side Diff: core/src/fpdfapi/fpdf_page/pageint.h

Issue 1365253003: Merge to XFA: Fix the issue that pdfium swallows 'fi' or 'ff' in some pdf files (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 2 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
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 CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ 7 #ifndef CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_
8 #define CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ 8 #define CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 CPDF_Dictionary* pParentResources, 155 CPDF_Dictionary* pParentResources,
156 CFX_AffineMatrix* pmtContentToUser, 156 CFX_AffineMatrix* pmtContentToUser,
157 CPDF_PageObjects* pObjList, 157 CPDF_PageObjects* pObjList,
158 CPDF_Dictionary* pResources, 158 CPDF_Dictionary* pResources,
159 CFX_FloatRect* pBBox, 159 CFX_FloatRect* pBBox,
160 CPDF_ParseOptions* pOptions, 160 CPDF_ParseOptions* pOptions,
161 CPDF_AllStates* pAllStates, 161 CPDF_AllStates* pAllStates,
162 int level); 162 int level);
163 ~CPDF_StreamContentParser(); 163 ~CPDF_StreamContentParser();
164 164
165 FX_BOOL ShouldAbort() const { return m_bAbort; }
166 CPDF_PageObjects* GetObjectList() const { return m_pObjectList; } 165 CPDF_PageObjects* GetObjectList() const { return m_pObjectList; }
167 CPDF_AllStates* GetCurStates() const { return m_pCurStates.get(); } 166 CPDF_AllStates* GetCurStates() const { return m_pCurStates.get(); }
168 FX_BOOL IsColored() const { return m_bColored; } 167 FX_BOOL IsColored() const { return m_bColored; }
169 const FX_FLOAT* GetType3Data() const { return m_Type3Data; } 168 const FX_FLOAT* GetType3Data() const { return m_Type3Data; }
170 169
171 void AddNumberParam(const FX_CHAR* str, int len); 170 void AddNumberParam(const FX_CHAR* str, int len);
172 void AddObjectParam(CPDF_Object* pObj); 171 void AddObjectParam(CPDF_Object* pObj);
173 void AddNameParam(const FX_CHAR* name, int size); 172 void AddNameParam(const FX_CHAR* name, int size);
174 int GetNextParamPos(); 173 int GetNextParamPos();
175 void ClearAllParams(); 174 void ClearAllParams();
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 CPDF_Dictionary* m_pParentResources; 297 CPDF_Dictionary* m_pParentResources;
299 CPDF_Dictionary* m_pResources; 298 CPDF_Dictionary* m_pResources;
300 CPDF_PageObjects* m_pObjectList; 299 CPDF_PageObjects* m_pObjectList;
301 int m_Level; 300 int m_Level;
302 CFX_AffineMatrix m_mtContentToUser; 301 CFX_AffineMatrix m_mtContentToUser;
303 CFX_FloatRect m_BBox; 302 CFX_FloatRect m_BBox;
304 CPDF_ParseOptions m_Options; 303 CPDF_ParseOptions m_Options;
305 _ContentParam m_ParamBuf1[PARAM_BUF_SIZE]; 304 _ContentParam m_ParamBuf1[PARAM_BUF_SIZE];
306 FX_DWORD m_ParamStartPos; 305 FX_DWORD m_ParamStartPos;
307 FX_DWORD m_ParamCount; 306 FX_DWORD m_ParamCount;
308 FX_BOOL m_bAbort;
309 CPDF_StreamParser* m_pSyntax; 307 CPDF_StreamParser* m_pSyntax;
310 nonstd::unique_ptr<CPDF_AllStates> m_pCurStates; 308 nonstd::unique_ptr<CPDF_AllStates> m_pCurStates;
311 CPDF_ContentMark m_CurContentMark; 309 CPDF_ContentMark m_CurContentMark;
312 CFX_PtrArray m_ClipTextList; 310 CFX_PtrArray m_ClipTextList;
313 CPDF_TextObject* m_pLastTextObject; 311 CPDF_TextObject* m_pLastTextObject;
314 FX_FLOAT m_DefFontSize; 312 FX_FLOAT m_DefFontSize;
315 int m_CompatCount; 313 int m_CompatCount;
316 FX_PATHPOINT* m_pPathPoints; 314 FX_PATHPOINT* m_pPathPoints;
317 int m_PathPointCount; 315 int m_PathPointCount;
318 int m_PathAllocSize; 316 int m_PathAllocSize;
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 FX_FLOAT& G, 506 FX_FLOAT& G,
509 FX_FLOAT& B) const override; 507 FX_FLOAT& B) const override;
510 CPDF_ColorSpace* GetBaseCS() const override; 508 CPDF_ColorSpace* GetBaseCS() const override;
511 509
512 private: 510 private:
513 CPDF_ColorSpace* m_pBaseCS; 511 CPDF_ColorSpace* m_pBaseCS;
514 CPDF_CountedColorSpace* m_pCountedBaseCS; 512 CPDF_CountedColorSpace* m_pCountedBaseCS;
515 }; 513 };
516 514
517 #endif // CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ 515 #endif // CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp ('k') | core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698