OLD | NEW |
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 #include "pageint.h" | 7 #include "pageint.h" |
8 | 8 |
9 #include "core/include/fpdfapi/fpdf_module.h" | 9 #include "core/include/fpdfapi/fpdf_module.h" |
10 #include "core/include/fpdfapi/fpdf_page.h" | 10 #include "core/include/fpdfapi/fpdf_page.h" |
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 } | 668 } |
669 CPDF_PageObjects::CPDF_PageObjects(FX_BOOL bReleaseMembers) | 669 CPDF_PageObjects::CPDF_PageObjects(FX_BOOL bReleaseMembers) |
670 : m_pFormDict(nullptr), | 670 : m_pFormDict(nullptr), |
671 m_pFormStream(nullptr), | 671 m_pFormStream(nullptr), |
672 m_pDocument(nullptr), | 672 m_pDocument(nullptr), |
673 m_pPageResources(nullptr), | 673 m_pPageResources(nullptr), |
674 m_pResources(nullptr), | 674 m_pResources(nullptr), |
675 m_Transparency(0), | 675 m_Transparency(0), |
676 m_ObjectList(128), | 676 m_ObjectList(128), |
677 m_bBackgroundAlphaNeeded(FALSE), | 677 m_bBackgroundAlphaNeeded(FALSE), |
| 678 m_bHasImageMask(FALSE), |
678 m_bReleaseMembers(bReleaseMembers), | 679 m_bReleaseMembers(bReleaseMembers), |
679 m_pParser(nullptr), | 680 m_pParser(nullptr), |
680 m_ParseState(CONTENT_NOT_PARSED) {} | 681 m_ParseState(CONTENT_NOT_PARSED) {} |
681 CPDF_PageObjects::~CPDF_PageObjects() { | 682 CPDF_PageObjects::~CPDF_PageObjects() { |
682 delete m_pParser; | 683 delete m_pParser; |
683 if (!m_bReleaseMembers) { | 684 if (!m_bReleaseMembers) { |
684 return; | 685 return; |
685 } | 686 } |
686 FX_POSITION pos = m_ObjectList.GetHeadPosition(); | 687 FX_POSITION pos = m_ObjectList.GetHeadPosition(); |
687 while (pos) { | 688 while (pos) { |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1003 (FX_FLOAT)y0); | 1004 (FX_FLOAT)y0); |
1004 matrix = m_PageMatrix; | 1005 matrix = m_PageMatrix; |
1005 matrix.Concat(display_matrix); | 1006 matrix.Concat(display_matrix); |
1006 } | 1007 } |
1007 CPDF_ParseOptions::CPDF_ParseOptions() { | 1008 CPDF_ParseOptions::CPDF_ParseOptions() { |
1008 m_bTextOnly = FALSE; | 1009 m_bTextOnly = FALSE; |
1009 m_bMarkedContent = TRUE; | 1010 m_bMarkedContent = TRUE; |
1010 m_bSeparateForm = TRUE; | 1011 m_bSeparateForm = TRUE; |
1011 m_bDecodeInlineImage = FALSE; | 1012 m_bDecodeInlineImage = FALSE; |
1012 } | 1013 } |
OLD | NEW |