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

Side by Side Diff: core/fpdfapi/page/fpdf_page_parser.cpp

Issue 2395803002: Remove FX_BOOL from core/fpdfapi/font (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « core/fpdfapi/font/ttgsubtable.cpp ('k') | core/fpdfapi/page/pageint.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/page/pageint.h" 7 #include "core/fpdfapi/page/pageint.h"
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 m_pPathPoints(nullptr), 216 m_pPathPoints(nullptr),
217 m_PathPointCount(0), 217 m_PathPointCount(0),
218 m_PathAllocSize(0), 218 m_PathAllocSize(0),
219 m_PathCurrentX(0.0f), 219 m_PathCurrentX(0.0f),
220 m_PathCurrentY(0.0f), 220 m_PathCurrentY(0.0f),
221 m_PathClipType(0), 221 m_PathClipType(0),
222 m_pLastImage(nullptr), 222 m_pLastImage(nullptr),
223 m_pLastImageDict(nullptr), 223 m_pLastImageDict(nullptr),
224 m_pLastCloneImageDict(nullptr), 224 m_pLastCloneImageDict(nullptr),
225 m_bReleaseLastDict(TRUE), 225 m_bReleaseLastDict(TRUE),
226 m_bColored(FALSE), 226 m_bColored(false),
227 m_bResourceMissing(FALSE) { 227 m_bResourceMissing(FALSE) {
228 if (pmtContentToUser) 228 if (pmtContentToUser)
229 m_mtContentToUser = *pmtContentToUser; 229 m_mtContentToUser = *pmtContentToUser;
230 if (!m_pResources) 230 if (!m_pResources)
231 m_pResources = m_pParentResources; 231 m_pResources = m_pParentResources;
232 if (!m_pResources) 232 if (!m_pResources)
233 m_pResources = m_pPageResources; 233 m_pResources = m_pPageResources;
234 if (pBBox) 234 if (pBBox)
235 m_BBox = *pBBox; 235 m_BBox = *pBBox;
236 if (pStates) { 236 if (pStates) {
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 CPDF_Array* pArray = ToArray(GetObject(1)); 707 CPDF_Array* pArray = ToArray(GetObject(1));
708 if (!pArray) 708 if (!pArray)
709 return; 709 return;
710 710
711 m_pCurStates->SetLineDash(pArray, GetNumber(0), 1.0f); 711 m_pCurStates->SetLineDash(pArray, GetNumber(0), 1.0f);
712 } 712 }
713 713
714 void CPDF_StreamContentParser::Handle_SetCharWidth() { 714 void CPDF_StreamContentParser::Handle_SetCharWidth() {
715 m_Type3Data[0] = GetNumber(1); 715 m_Type3Data[0] = GetNumber(1);
716 m_Type3Data[1] = GetNumber(0); 716 m_Type3Data[1] = GetNumber(0);
717 m_bColored = TRUE; 717 m_bColored = true;
718 } 718 }
719 719
720 void CPDF_StreamContentParser::Handle_SetCachedDevice() { 720 void CPDF_StreamContentParser::Handle_SetCachedDevice() {
721 for (int i = 0; i < 6; i++) { 721 for (int i = 0; i < 6; i++) {
722 m_Type3Data[i] = GetNumber(5 - i); 722 m_Type3Data[i] = GetNumber(5 - i);
723 } 723 }
724 m_bColored = FALSE; 724 m_bColored = false;
725 } 725 }
726 726
727 void CPDF_StreamContentParser::Handle_ExecuteXObject() { 727 void CPDF_StreamContentParser::Handle_ExecuteXObject() {
728 CFX_ByteString name = GetString(0); 728 CFX_ByteString name = GetString(0);
729 if (name == m_LastImageName && m_pLastImage && m_pLastImage->GetStream() && 729 if (name == m_LastImageName && m_pLastImage && m_pLastImage->GetStream() &&
730 m_pLastImage->GetStream()->GetObjNum()) { 730 m_pLastImage->GetStream()->GetObjNum()) {
731 AddImage(nullptr, m_pLastImage, false); 731 AddImage(nullptr, m_pLastImage, false);
732 return; 732 return;
733 } 733 }
734 734
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after
1674 } else { 1674 } else {
1675 PDF_ReplaceAbbr(pElement); 1675 PDF_ReplaceAbbr(pElement);
1676 } 1676 }
1677 } 1677 }
1678 break; 1678 break;
1679 } 1679 }
1680 default: 1680 default:
1681 break; 1681 break;
1682 } 1682 }
1683 } 1683 }
OLDNEW
« no previous file with comments | « core/fpdfapi/font/ttgsubtable.cpp ('k') | core/fpdfapi/page/pageint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698