| 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 "core/fpdfapi/fpdf_page/pageint.h" | 7 #include "core/fpdfapi/fpdf_page/pageint.h" |
| 8 | 8 |
| 9 #include <limits.h> | 9 #include <limits.h> |
| 10 | 10 |
| (...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 m_StreamArray.resize(m_nStreams); | 657 m_StreamArray.resize(m_nStreams); |
| 658 else | 658 else |
| 659 m_Status = Done; | 659 m_Status = Done; |
| 660 } else { | 660 } else { |
| 661 m_Status = Done; | 661 m_Status = Done; |
| 662 } | 662 } |
| 663 } | 663 } |
| 664 | 664 |
| 665 void CPDF_ContentParser::Start(CPDF_Form* pForm, | 665 void CPDF_ContentParser::Start(CPDF_Form* pForm, |
| 666 CPDF_AllStates* pGraphicStates, | 666 CPDF_AllStates* pGraphicStates, |
| 667 CFX_Matrix* pParentMatrix, | 667 const CFX_Matrix* pParentMatrix, |
| 668 CPDF_Type3Char* pType3Char, | 668 CPDF_Type3Char* pType3Char, |
| 669 int level) { | 669 int level) { |
| 670 m_pType3Char = pType3Char; | 670 m_pType3Char = pType3Char; |
| 671 m_pObjectHolder = pForm; | 671 m_pObjectHolder = pForm; |
| 672 m_bForm = TRUE; | 672 m_bForm = TRUE; |
| 673 CFX_Matrix form_matrix = pForm->m_pFormDict->GetMatrixBy("Matrix"); | 673 CFX_Matrix form_matrix = pForm->m_pFormDict->GetMatrixBy("Matrix"); |
| 674 if (pGraphicStates) { | 674 if (pGraphicStates) { |
| 675 form_matrix.Concat(pGraphicStates->m_CTM); | 675 form_matrix.Concat(pGraphicStates->m_CTM); |
| 676 } | 676 } |
| 677 CPDF_Array* pBBox = pForm->m_pFormDict->GetArrayBy("BBox"); | 677 CPDF_Array* pBBox = pForm->m_pFormDict->GetArrayBy("BBox"); |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 813 } | 813 } |
| 814 m_Status = Done; | 814 m_Status = Done; |
| 815 return; | 815 return; |
| 816 } | 816 } |
| 817 steps++; | 817 steps++; |
| 818 if (pPause && pPause->NeedToPauseNow()) { | 818 if (pPause && pPause->NeedToPauseNow()) { |
| 819 break; | 819 break; |
| 820 } | 820 } |
| 821 } | 821 } |
| 822 } | 822 } |
| OLD | NEW |