OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "core/fpdfapi/page/cpdf_pageobjectholder.h" | 7 #include "core/fpdfapi/page/cpdf_pageobjectholder.h" |
8 | 8 |
9 #include "core/fpdfapi/page/cpdf_pageobject.h" | 9 #include "core/fpdfapi/page/cpdf_pageobject.h" |
10 #include "core/fpdfapi/page/pageint.h" | 10 #include "core/fpdfapi/page/pageint.h" |
11 #include "core/fpdfapi/parser/cpdf_dictionary.h" | 11 #include "core/fpdfapi/parser/cpdf_dictionary.h" |
12 | 12 |
13 CPDF_PageObjectHolder::CPDF_PageObjectHolder() | 13 CPDF_PageObjectHolder::CPDF_PageObjectHolder() |
14 : m_pFormDict(nullptr), | 14 : m_pFormDict(nullptr), |
15 m_pFormStream(nullptr), | 15 m_pFormStream(nullptr), |
16 m_pDocument(nullptr), | 16 m_pDocument(nullptr), |
17 m_pPageResources(nullptr), | 17 m_pPageResources(nullptr), |
18 m_pResources(nullptr), | 18 m_pResources(nullptr), |
19 m_Transparency(0), | 19 m_Transparency(0), |
20 m_bBackgroundAlphaNeeded(FALSE), | 20 m_bBackgroundAlphaNeeded(false), |
21 m_bHasImageMask(FALSE), | 21 m_bHasImageMask(false), |
22 m_ParseState(CONTENT_NOT_PARSED) {} | 22 m_ParseState(CONTENT_NOT_PARSED) {} |
23 | 23 |
24 CPDF_PageObjectHolder::~CPDF_PageObjectHolder() {} | 24 CPDF_PageObjectHolder::~CPDF_PageObjectHolder() {} |
25 | 25 |
26 void CPDF_PageObjectHolder::ContinueParse(IFX_Pause* pPause) { | 26 void CPDF_PageObjectHolder::ContinueParse(IFX_Pause* pPause) { |
27 if (!m_pParser) { | 27 if (!m_pParser) { |
28 return; | 28 return; |
29 } | 29 } |
30 m_pParser->Continue(pPause); | 30 m_pParser->Continue(pPause); |
31 if (m_pParser->GetStatus() == CPDF_ContentParser::Done) { | 31 if (m_pParser->GetStatus() == CPDF_ContentParser::Done) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 return; | 68 return; |
69 } | 69 } |
70 m_Transparency |= PDFTRANS_GROUP; | 70 m_Transparency |= PDFTRANS_GROUP; |
71 if (pGroup->GetIntegerFor("I")) { | 71 if (pGroup->GetIntegerFor("I")) { |
72 m_Transparency |= PDFTRANS_ISOLATED; | 72 m_Transparency |= PDFTRANS_ISOLATED; |
73 } | 73 } |
74 if (pGroup->GetIntegerFor("K")) { | 74 if (pGroup->GetIntegerFor("K")) { |
75 m_Transparency |= PDFTRANS_KNOCKOUT; | 75 m_Transparency |= PDFTRANS_KNOCKOUT; |
76 } | 76 } |
77 } | 77 } |
OLD | NEW |