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

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

Issue 2287313004: Make CPDF_TextState have a CPDF_TextStateData rather than inheriting one. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@moar_better_constness
Patch Set: Casts, Casts, New -> Emplace. Created 4 years, 3 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 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/fpdf_page_parser.cpp ('k') | core/fpdfapi/fpdf_page/include/cpdf_textstatedata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698