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

Side by Side Diff: core/fpdfapi/font/cpdf_type3font.cpp

Issue 2392603004: Move core/fpdfapi/fpdf_parser to core/fpdfapi/parser (Closed)
Patch Set: Rebase to master 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/cpdf_type1font.cpp ('k') | core/fpdfapi/font/fpdf_font.cpp » ('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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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/font/cpdf_type3font.h" 7 #include "core/fpdfapi/font/cpdf_type3font.h"
8 8
9 #include <utility> 9 #include <utility>
10 10
11 #include "core/fpdfapi/font/cpdf_type3char.h" 11 #include "core/fpdfapi/font/cpdf_type3char.h"
12 #include "core/fpdfapi/fpdf_parser/cpdf_array.h"
13 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h"
14 #include "core/fpdfapi/page/cpdf_form.h" 12 #include "core/fpdfapi/page/cpdf_form.h"
15 #include "core/fpdfapi/page/pageint.h" 13 #include "core/fpdfapi/page/pageint.h"
14 #include "core/fpdfapi/parser/cpdf_array.h"
15 #include "core/fpdfapi/parser/cpdf_dictionary.h"
16 #include "core/fxcrt/fx_system.h" 16 #include "core/fxcrt/fx_system.h"
17 #include "third_party/base/stl_util.h" 17 #include "third_party/base/stl_util.h"
18 18
19 CPDF_Type3Font::CPDF_Type3Font() 19 CPDF_Type3Font::CPDF_Type3Font()
20 : m_pCharProcs(nullptr), 20 : m_pCharProcs(nullptr),
21 m_pPageResources(nullptr), 21 m_pPageResources(nullptr),
22 m_pFontResources(nullptr), 22 m_pFontResources(nullptr),
23 m_CharLoadingDepth(0) { 23 m_CharLoadingDepth(0) {
24 FXSYS_memset(m_CharWidthL, 0, sizeof(m_CharWidthL)); 24 FXSYS_memset(m_CharWidthL, 0, sizeof(m_CharWidthL));
25 } 25 }
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 return m_CharWidthL[charcode]; 150 return m_CharWidthL[charcode];
151 151
152 const CPDF_Type3Char* pChar = LoadChar(charcode); 152 const CPDF_Type3Char* pChar = LoadChar(charcode);
153 return pChar ? pChar->m_Width : 0; 153 return pChar ? pChar->m_Width : 0;
154 } 154 }
155 155
156 FX_RECT CPDF_Type3Font::GetCharBBox(uint32_t charcode) { 156 FX_RECT CPDF_Type3Font::GetCharBBox(uint32_t charcode) {
157 const CPDF_Type3Char* pChar = LoadChar(charcode); 157 const CPDF_Type3Char* pChar = LoadChar(charcode);
158 return pChar ? pChar->m_BBox : FX_RECT(); 158 return pChar ? pChar->m_BBox : FX_RECT();
159 } 159 }
OLDNEW
« no previous file with comments | « core/fpdfapi/font/cpdf_type1font.cpp ('k') | core/fpdfapi/font/fpdf_font.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698