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

Side by Side Diff: core/src/fpdfapi/fpdf_font/fpdf_font.cpp

Issue 1087053002: Merge to XFA: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 8 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/src/fpdfapi/fpdf_font/font_int.h ('k') | core/src/fpdfapi/fpdf_font/ttgsubtable.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 "../../../include/fpdfapi/fpdf_page.h" 7 #include "../../../include/fpdfapi/fpdf_page.h"
8 #include "../../../include/fpdfapi/fpdf_module.h" 8 #include "../../../include/fpdfapi/fpdf_module.h"
9 #include "../../../include/fpdfapi/fpdf_pageobj.h" 9 #include "../../../include/fpdfapi/fpdf_pageobj.h"
10 #include "font_int.h" 10 #include "font_int.h"
(...skipping 17 matching lines...) Expand all
28 FXSYS_memset32(m_EmbeddedToUnicodes, 0, sizeof m_EmbeddedToUnicodes); 28 FXSYS_memset32(m_EmbeddedToUnicodes, 0, sizeof m_EmbeddedToUnicodes);
29 m_pContrastRamps = NULL; 29 m_pContrastRamps = NULL;
30 } 30 }
31 CPDF_FontGlobals::~CPDF_FontGlobals() 31 CPDF_FontGlobals::~CPDF_FontGlobals()
32 { 32 {
33 ClearAll(); 33 ClearAll();
34 if (m_pContrastRamps) { 34 if (m_pContrastRamps) {
35 FX_Free(m_pContrastRamps); 35 FX_Free(m_pContrastRamps);
36 } 36 }
37 } 37 }
38 class CFX_StockFontArray : public CFX_Object 38 class CFX_StockFontArray
39 { 39 {
40 public: 40 public:
41 CFX_StockFontArray() 41 CFX_StockFontArray()
42 { 42 {
43 FXSYS_memset32(m_pStockFonts, 0, sizeof(CPDF_Font*) * 14); 43 FXSYS_memset32(m_pStockFonts, 0, sizeof(CPDF_Font*) * 14);
44 } 44 }
45 CPDF_Font* m_pStockFonts[14]; 45 CPDF_Font* m_pStockFonts[14];
46 }; 46 };
47 CPDF_Font* CPDF_FontGlobals::Find(void* key, int index) 47 CPDF_Font* CPDF_FontGlobals::Find(void* key, int index)
48 { 48 {
(...skipping 1712 matching lines...) Expand 10 before | Expand all | Expand 10 after
1761 } 1761 }
1762 CPDF_Type3Char::~CPDF_Type3Char() 1762 CPDF_Type3Char::~CPDF_Type3Char()
1763 { 1763 {
1764 if (m_pForm) { 1764 if (m_pForm) {
1765 delete m_pForm; 1765 delete m_pForm;
1766 } 1766 }
1767 if (m_pBitmap) { 1767 if (m_pBitmap) {
1768 delete m_pBitmap; 1768 delete m_pBitmap;
1769 } 1769 }
1770 } 1770 }
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_font/font_int.h ('k') | core/src/fpdfapi/fpdf_font/ttgsubtable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698