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

Side by Side Diff: core/fpdfapi/fpdf_parser/cpdf_document.cpp

Issue 2178613002: Remove CFX_Deletable (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@fix3
Patch Set: address comments Created 4 years, 5 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 | « BUILD.gn ('k') | core/fpdfapi/fpdf_parser/include/cpdf_document.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/fpdf_parser/include/cpdf_document.h" 7 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
8 8
9 #include <set> 9 #include <set>
10 10
11 #include "core/fpdfapi/fpdf_font/include/cpdf_fontencoding.h" 11 #include "core/fpdfapi/fpdf_font/include/cpdf_fontencoding.h"
12 #include "core/fpdfapi/fpdf_page/cpdf_pagemodule.h" 12 #include "core/fpdfapi/fpdf_page/cpdf_pagemodule.h"
13 #include "core/fpdfapi/fpdf_page/pageint.h" 13 #include "core/fpdfapi/fpdf_page/pageint.h"
14 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" 14 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h"
15 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" 15 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h"
16 #include "core/fpdfapi/fpdf_parser/include/cpdf_parser.h" 16 #include "core/fpdfapi/fpdf_parser/include/cpdf_parser.h"
17 #include "core/fpdfapi/fpdf_parser/include/cpdf_reference.h" 17 #include "core/fpdfapi/fpdf_parser/include/cpdf_reference.h"
18 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h" 18 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h"
19 #include "core/fpdfapi/fpdf_render/render_int.h" 19 #include "core/fpdfapi/fpdf_render/render_int.h"
20 #include "core/fpdfapi/include/cpdf_modulemgr.h" 20 #include "core/fpdfapi/include/cpdf_modulemgr.h"
21 #include "core/fxcodec/include/JBig2_DocumentContext.h"
21 #include "core/fxge/include/fx_font.h" 22 #include "core/fxge/include/fx_font.h"
22 #include "third_party/base/stl_util.h" 23 #include "third_party/base/stl_util.h"
23 24
24 namespace { 25 namespace {
25 26
26 const int FX_MAX_PAGE_LEVEL = 1024; 27 const int FX_MAX_PAGE_LEVEL = 1024;
27 28
28 const uint16_t g_FX_CP874Unicodes[128] = { 29 const uint16_t g_FX_CP874Unicodes[128] = {
29 0x20AC, 0x0000, 0x0000, 0x0000, 0x0000, 0x2026, 0x0000, 0x0000, 0x0000, 30 0x20AC, 0x0000, 0x0000, 0x0000, 0x0000, 0x2026, 0x0000, 0x0000, 0x0000,
30 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x2018, 31 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x2018,
(...skipping 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1447 } 1448 }
1448 } 1449 }
1449 pFontDesc->SetAtInteger("StemV", fStemV); 1450 pFontDesc->SetAtInteger("StemV", fStemV);
1450 AddIndirectObject(pFontDesc); 1451 AddIndirectObject(pFontDesc);
1451 pFontDict->SetAtReference("FontDescriptor", this, pFontDesc); 1452 pFontDict->SetAtReference("FontDescriptor", this, pFontDesc);
1452 CFRelease(traits); 1453 CFRelease(traits);
1453 CFRelease(languages); 1454 CFRelease(languages);
1454 return LoadFont(pBaseDict); 1455 return LoadFont(pBaseDict);
1455 } 1456 }
1456 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ 1457 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | core/fpdfapi/fpdf_parser/include/cpdf_document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698