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 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 m_bForm = TRUE; | 681 m_bForm = TRUE; |
682 CFX_Matrix form_matrix = pForm->m_pFormDict->GetMatrixBy("Matrix"); | 682 CFX_Matrix form_matrix = pForm->m_pFormDict->GetMatrixBy("Matrix"); |
683 if (pGraphicStates) { | 683 if (pGraphicStates) { |
684 form_matrix.Concat(pGraphicStates->m_CTM); | 684 form_matrix.Concat(pGraphicStates->m_CTM); |
685 } | 685 } |
686 CPDF_Array* pBBox = pForm->m_pFormDict->GetArrayBy("BBox"); | 686 CPDF_Array* pBBox = pForm->m_pFormDict->GetArrayBy("BBox"); |
687 CFX_FloatRect form_bbox; | 687 CFX_FloatRect form_bbox; |
688 CPDF_Path ClipPath; | 688 CPDF_Path ClipPath; |
689 if (pBBox) { | 689 if (pBBox) { |
690 form_bbox = pBBox->GetRect(); | 690 form_bbox = pBBox->GetRect(); |
691 ClipPath.New(); | 691 ClipPath.Emplace(); |
692 ClipPath.AppendRect(form_bbox.left, form_bbox.bottom, form_bbox.right, | 692 ClipPath.AppendRect(form_bbox.left, form_bbox.bottom, form_bbox.right, |
693 form_bbox.top); | 693 form_bbox.top); |
694 ClipPath.Transform(&form_matrix); | 694 ClipPath.Transform(&form_matrix); |
695 if (pParentMatrix) { | 695 if (pParentMatrix) { |
696 ClipPath.Transform(pParentMatrix); | 696 ClipPath.Transform(pParentMatrix); |
697 } | 697 } |
698 form_bbox.Transform(&form_matrix); | 698 form_bbox.Transform(&form_matrix); |
699 if (pParentMatrix) { | 699 if (pParentMatrix) { |
700 form_bbox.Transform(pParentMatrix); | 700 form_bbox.Transform(pParentMatrix); |
701 } | 701 } |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 } | 818 } |
819 m_Status = Done; | 819 m_Status = Done; |
820 return; | 820 return; |
821 } | 821 } |
822 steps++; | 822 steps++; |
823 if (pPause && pPause->NeedToPauseNow()) { | 823 if (pPause && pPause->NeedToPauseNow()) { |
824 break; | 824 break; |
825 } | 825 } |
826 } | 826 } |
827 } | 827 } |
OLD | NEW |