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

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

Issue 1551563002: Fix partial information printed with blank window covering the center (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 11 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 | core/src/fpdfapi/fpdf_page/fpdf_page.cpp » ('j') | 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 CORE_INCLUDE_FPDFAPI_FPDF_PAGE_H_ 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_PAGE_H_
8 #define CORE_INCLUDE_FPDFAPI_FPDF_PAGE_H_ 8 #define CORE_INCLUDE_FPDFAPI_FPDF_PAGE_H_
9 9
10 #include "core/include/fxge/fx_dib.h" 10 #include "core/include/fxge/fx_dib.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 CPDF_PageObject* GetObjectByIndex(int index) const; 61 CPDF_PageObject* GetObjectByIndex(int index) const;
62 62
63 FX_POSITION InsertObject(FX_POSITION posInsertAfter, 63 FX_POSITION InsertObject(FX_POSITION posInsertAfter,
64 CPDF_PageObject* pNewObject); 64 CPDF_PageObject* pNewObject);
65 65
66 void Transform(const CFX_Matrix& matrix); 66 void Transform(const CFX_Matrix& matrix);
67 67
68 FX_BOOL BackgroundAlphaNeeded() const { return m_bBackgroundAlphaNeeded; } 68 FX_BOOL BackgroundAlphaNeeded() const { return m_bBackgroundAlphaNeeded; }
69 69
70 FX_BOOL HasImageMask() const { return m_bHasImageMask; }
71
70 CFX_FloatRect CalcBoundingBox() const; 72 CFX_FloatRect CalcBoundingBox() const;
71 73
72 CPDF_Dictionary* m_pFormDict; 74 CPDF_Dictionary* m_pFormDict;
73 CPDF_Stream* m_pFormStream; 75 CPDF_Stream* m_pFormStream;
74 CPDF_Document* m_pDocument; 76 CPDF_Document* m_pDocument;
75 CPDF_Dictionary* m_pPageResources; 77 CPDF_Dictionary* m_pPageResources;
76 CPDF_Dictionary* m_pResources; 78 CPDF_Dictionary* m_pResources;
77 CFX_FloatRect m_BBox; 79 CFX_FloatRect m_BBox;
78 int m_Transparency; 80 int m_Transparency;
79 81
80 protected: 82 protected:
81 friend class CPDF_ContentParser; 83 friend class CPDF_ContentParser;
82 friend class CPDF_StreamContentParser; 84 friend class CPDF_StreamContentParser;
83 friend class CPDF_AllStates; 85 friend class CPDF_AllStates;
84 86
85 enum ParseState { CONTENT_NOT_PARSED, CONTENT_PARSING, CONTENT_PARSED }; 87 enum ParseState { CONTENT_NOT_PARSED, CONTENT_PARSING, CONTENT_PARSED };
86 88
87 void LoadTransInfo(); 89 void LoadTransInfo();
88 void ClearCacheObjects(); 90 void ClearCacheObjects();
89 91
90 CFX_PtrList m_ObjectList; 92 CFX_PtrList m_ObjectList;
91 FX_BOOL m_bBackgroundAlphaNeeded; 93 FX_BOOL m_bBackgroundAlphaNeeded;
94 FX_BOOL m_bHasImageMask;
92 FX_BOOL m_bReleaseMembers; 95 FX_BOOL m_bReleaseMembers;
93 CPDF_ContentParser* m_pParser; 96 CPDF_ContentParser* m_pParser;
94 ParseState m_ParseState; 97 ParseState m_ParseState;
95 }; 98 };
96 99
97 class CPDF_Page : public CPDF_PageObjects, public CFX_PrivateData { 100 class CPDF_Page : public CPDF_PageObjects, public CFX_PrivateData {
98 public: 101 public:
99 CPDF_Page(); 102 CPDF_Page();
100 ~CPDF_Page(); 103 ~CPDF_Page();
101 104
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 CFX_ByteString RealizeResource(CPDF_Object* pResourceObj, 183 CFX_ByteString RealizeResource(CPDF_Object* pResourceObj,
181 const FX_CHAR* szType); 184 const FX_CHAR* szType);
182 185
183 private: 186 private:
184 CPDF_Page* m_pPage; 187 CPDF_Page* m_pPage;
185 CPDF_Document* m_pDocument; 188 CPDF_Document* m_pDocument;
186 CFX_ArrayTemplate<CPDF_PageObject*> m_pageObjects; 189 CFX_ArrayTemplate<CPDF_PageObject*> m_pageObjects;
187 }; 190 };
188 191
189 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PAGE_H_ 192 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PAGE_H_
OLDNEW
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_page/fpdf_page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698