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

Side by Side Diff: core/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp

Issue 1923153002: CPDF_Document::LoadPattern() and friends always have a valid matrix. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@clean_doc2
Patch Set: rebase Created 4 years, 7 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
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 #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
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
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 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/fpdf_page_parser.cpp ('k') | core/fpdfapi/fpdf_page/fpdf_page_pattern.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698