From d5b88a1916f34e72cefbbfa582e040d7423e1798 Mon Sep 17 00:00:00 2001 From: xiepengfei Date: Tue, 24 Nov 2026 16:06:26 +0800 Subject: [PATCH] feat: switch PDF engine to system libdeepin-pdfium MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Remove bundled 3rdparty/deepin-pdfium sources and link the system library via pkg-config in cmake and qmake builds 2. Require libdeepin-pdfium (>= 2.0) providing the fileIdentifier and imageObjectRects APIs 3. Update debian/control and linglong.yaml to depend on libdeepin-pdfium Influence: 1. Open, render, zoom, annotate and save PDF documents, verify content is identical to previous version 2. Toggle night mode on PDF pages and verify reading history still matches a PDF after renaming or moving the file 3. Build the deb and linglong packages, verify ldd of the binaries resolves libdeepin-pdfium and batch print / html to pdf work feat: PDF 引擎切换为系统库 libdeepin-pdfium 1. 删除内嵌的 3rdparty/deepin-pdfium 源码,cmake 与 qmake 构建改为 pkg-config 链接系统库 2. 依赖 libdeepin-pdfium (>= 2.0) 提供的 fileIdentifier/imageObjectRects 接口 3. 更新 debian/control 与 linglong.yaml,依赖系统 libdeepin-pdfium Influence: 1. 打开、渲染、缩放、批注并保存 PDF 文档,确认内容与旧版本一致 2. PDF 页面开启夜间模式;重命名或移动 PDF 后验证阅读记录仍能匹配 3. 构建 deb 与玲珑包,验证二进制 ldd 解析到 libdeepin-pdfium, 批量打印与 html 转 pdf 功能正常 Log: PDF rendering now links the system libdeepin-pdfium library and the package depends on libdeepin-pdfium instead of a bundled copy PMS: TASK-398545 --- .reuse/dep5 | 14 +- 3rdparty/deepin-pdfium/CMakeLists.txt | 153 - 3rdparty/deepin-pdfium/LICENSE | 165 - 3rdparty/deepin-pdfium/deepin-pdfium.pc.in | 10 - 3rdparty/deepin-pdfium/deepin-pdfium.pro | 11 - 3rdparty/deepin-pdfium/include/dpdfannot.h | 214 - 3rdparty/deepin-pdfium/include/dpdfdoc.h | 157 - 3rdparty/deepin-pdfium/include/dpdfglobal.h | 70 - 3rdparty/deepin-pdfium/include/dpdfpage.h | 221 - .../misc/deepin-pdfiumConfig.cmake.in | 11 - .../src/3rdparty/pdfium/CMakeLists.txt | 152 - .../src/3rdparty/pdfium/core.cmake | 633 - .../src/3rdparty/pdfium/core.pri | 633 - .../src/3rdparty/pdfium/fpdfsdk.cmake | 119 - .../src/3rdparty/pdfium/fpdfsdk.pri | 118 - .../src/3rdparty/pdfium/fx_agg.cmake | 33 - .../src/3rdparty/pdfium/fx_agg.pri | 35 - .../src/3rdparty/pdfium/fx_base.cmake | 62 - .../src/3rdparty/pdfium/fx_base.pri | 62 - .../src/3rdparty/pdfium/fx_freetype.pri | 16 - .../src/3rdparty/pdfium/fx_lcms2.pri | 39 - .../src/3rdparty/pdfium/fx_libopenjpeg.pri | 59 - .../src/3rdparty/pdfium/fx_skia.cmake | 8 - .../src/3rdparty/pdfium/fx_skia.pri | 9 - .../src/3rdparty/pdfium/fx_zlib.pri | 71 - .../src/3rdparty/pdfium/fxjs.cmake | 13 - .../src/3rdparty/pdfium/fxjs.pri | 14 - .../src/3rdparty/pdfium/pdfium.pri | 80 - .../src/3rdparty/pdfium/pdfium/LICENSE | 230 - .../base/allocator/partition_allocator/OWNERS | 8 - .../address_space_randomization.cc | 70 - .../address_space_randomization.h | 203 - .../base/allocator/partition_allocator/oom.h | 40 - .../partition_allocator/oom_callback.cc | 29 - .../partition_allocator/oom_callback.h | 26 - .../partition_allocator/page_allocator.cc | 259 - .../partition_allocator/page_allocator.h | 197 - .../page_allocator_constants.h | 66 - .../page_allocator_internal.h | 20 - .../page_allocator_internals_posix.h | 218 - .../page_allocator_internals_win.h | 145 - .../partition_allocator/partition_alloc.cc | 852 - .../partition_allocator/partition_alloc.h | 532 - .../partition_alloc_constants.h | 200 - .../partition_allocator/partition_bucket.cc | 566 - .../partition_allocator/partition_bucket.h | 130 - .../partition_allocator/partition_cookie.h | 72 - .../partition_direct_map_extent.h | 35 - .../partition_freelist_entry.h | 73 - .../partition_allocator/partition_oom.cc | 26 - .../partition_allocator/partition_oom.h | 30 - .../partition_allocator/partition_page.cc | 168 - .../partition_allocator/partition_page.h | 316 - .../partition_root_base.cc | 42 - .../partition_allocator/partition_root_base.h | 201 - .../allocator/partition_allocator/random.cc | 96 - .../allocator/partition_allocator/random.h | 29 - .../partition_allocator/spin_lock.cc | 109 - .../allocator/partition_allocator/spin_lock.h | 52 - .../3rdparty/pdfium/pdfium/base/base_export.h | 3 - .../src/3rdparty/pdfium/pdfium/base/bits.h | 187 - .../pdfium/pdfium/base/compiler_specific.h | 183 - .../pdfium/pdfium/base/containers/adapters.h | 54 - .../pdfium/pdfium/base/debug/alias.cc | 30 - .../3rdparty/pdfium/pdfium/base/debug/alias.h | 34 - .../pdfium/pdfium/base/immediate_crash.h | 168 - .../src/3rdparty/pdfium/pdfium/base/logging.h | 42 - .../pdfium/base/memory/aligned_memory.cc | 50 - .../pdfium/base/memory/aligned_memory.h | 84 - .../pdfium/pdfium/base/no_destructor.h | 100 - .../pdfium/pdfium/base/numerics/OWNERS | 3 - .../pdfium/base/numerics/checked_math.h | 395 - .../pdfium/base/numerics/checked_math_impl.h | 579 - .../pdfium/base/numerics/clamped_math.h | 266 - .../pdfium/base/numerics/clamped_math_impl.h | 343 - .../pdfium/base/numerics/safe_conversions.h | 360 - .../base/numerics/safe_conversions_arm_impl.h | 53 - .../base/numerics/safe_conversions_impl.h | 853 - .../pdfium/pdfium/base/numerics/safe_math.h | 12 - .../pdfium/base/numerics/safe_math_arm_impl.h | 124 - .../base/numerics/safe_math_clang_gcc_impl.h | 159 - .../base/numerics/safe_math_shared_impl.h | 242 - .../3rdparty/pdfium/pdfium/base/optional.h | 958 - .../3rdparty/pdfium/pdfium/base/ptr_util.h | 22 - .../src/3rdparty/pdfium/pdfium/base/span.h | 352 - .../3rdparty/pdfium/pdfium/base/stl_util.h | 169 - .../pdfium/pdfium/base/sys_byteorder.h | 141 - .../pdfium/pdfium/base/template_util.h | 177 - .../pdfium/pdfium/base/test/scoped_locale.cc | 25 - .../pdfium/pdfium/base/test/scoped_locale.h | 30 - .../pdfium/pdfium/build/build_config.h | 258 - .../pdfium/constants/access_permissions.h | 21 - .../pdfium/constants/annotation_common.h | 32 - .../pdfium/constants/annotation_flags.h | 26 - .../pdfium/pdfium/constants/form_fields.h | 33 - .../pdfium/pdfium/constants/form_flags.h | 46 - .../pdfium/pdfium/constants/page_object.h | 28 - .../pdfium/constants/stream_dict_common.h | 27 - .../pdfium/pdfium/constants/transparency.h | 55 - .../pdfium/pdfium/core/fdrm/fx_crypt.cpp | 231 - .../pdfium/pdfium/core/fdrm/fx_crypt.h | 109 - .../pdfium/pdfium/core/fdrm/fx_crypt_aes.cpp | 655 - .../pdfium/pdfium/core/fdrm/fx_crypt_sha.cpp | 607 - .../fpdfapi/cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp | 2131 - .../core/fpdfapi/cmaps/CNS1/B5pc-H_0.cpp | 93 - .../core/fpdfapi/cmaps/CNS1/B5pc-V_0.cpp | 14 - .../core/fpdfapi/cmaps/CNS1/CNS-EUC-H_0.cpp | 185 - .../core/fpdfapi/cmaps/CNS1/CNS-EUC-V_0.cpp | 204 - .../core/fpdfapi/cmaps/CNS1/ETen-B5-H_0.cpp | 95 - .../core/fpdfapi/cmaps/CNS1/ETen-B5-V_0.cpp | 15 - .../core/fpdfapi/cmaps/CNS1/ETenms-B5-H_0.cpp | 13 - .../core/fpdfapi/cmaps/CNS1/ETenms-B5-V_0.cpp | 16 - .../core/fpdfapi/cmaps/CNS1/HKscs-B5-H_5.cpp | 414 - .../core/fpdfapi/cmaps/CNS1/HKscs-B5-V_5.cpp | 15 - .../fpdfapi/cmaps/CNS1/UniCNS-UCS2-H_3.cpp | 5483 -- .../fpdfapi/cmaps/CNS1/UniCNS-UCS2-V_3.cpp | 15 - .../fpdfapi/cmaps/CNS1/UniCNS-UTF16-H_0.cpp | 3245 - .../core/fpdfapi/cmaps/CNS1/cmaps_cns1.cpp | 38 - .../core/fpdfapi/cmaps/CNS1/cmaps_cns1.h | 31 - .../fpdfapi/cmaps/GB1/Adobe-GB1-UCS2_5.cpp | 3375 - .../core/fpdfapi/cmaps/GB1/GB-EUC-H_0.cpp | 40 - .../core/fpdfapi/cmaps/GB1/GB-EUC-V_0.cpp | 17 - .../core/fpdfapi/cmaps/GB1/GBK-EUC-H_2.cpp | 1367 - .../core/fpdfapi/cmaps/GB1/GBK-EUC-V_2.cpp | 17 - .../core/fpdfapi/cmaps/GB1/GBK2K-H_5.cpp | 1879 - .../core/fpdfapi/cmaps/GB1/GBK2K-V_5.cpp | 24 - .../core/fpdfapi/cmaps/GB1/GBKp-EUC-H_2.cpp | 1367 - .../core/fpdfapi/cmaps/GB1/GBKp-EUC-V_2.cpp | 17 - .../core/fpdfapi/cmaps/GB1/GBpc-EUC-H_0.cpp | 41 - .../core/fpdfapi/cmaps/GB1/GBpc-EUC-V_0.cpp | 17 - .../core/fpdfapi/cmaps/GB1/UniGB-UCS2-H_4.cpp | 4619 -- .../core/fpdfapi/cmaps/GB1/UniGB-UCS2-V_4.cpp | 18 - .../core/fpdfapi/cmaps/GB1/cmaps_gb1.cpp | 38 - .../pdfium/core/fpdfapi/cmaps/GB1/cmaps_gb1.h | 29 - .../fpdfapi/cmaps/Japan1/83pv-RKSJ-H_1.cpp | 84 - .../fpdfapi/cmaps/Japan1/90ms-RKSJ-H_2.cpp | 67 - .../fpdfapi/cmaps/Japan1/90ms-RKSJ-V_2.cpp | 36 - .../fpdfapi/cmaps/Japan1/90msp-RKSJ-H_2.cpp | 67 - .../fpdfapi/cmaps/Japan1/90msp-RKSJ-V_2.cpp | 36 - .../fpdfapi/cmaps/Japan1/90pv-RKSJ-H_1.cpp | 98 - .../fpdfapi/cmaps/Japan1/Add-RKSJ-H_1.cpp | 222 - .../fpdfapi/cmaps/Japan1/Add-RKSJ-V_1.cpp | 29 - .../cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp | 1726 - .../core/fpdfapi/cmaps/Japan1/EUC-H_1.cpp | 50 - .../core/fpdfapi/cmaps/Japan1/EUC-V_1.cpp | 19 - .../fpdfapi/cmaps/Japan1/Ext-RKSJ-H_2.cpp | 232 - .../fpdfapi/cmaps/Japan1/Ext-RKSJ-V_2.cpp | 23 - .../pdfium/core/fpdfapi/cmaps/Japan1/H_1.cpp | 50 - .../cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp | 12 - .../cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp | 77 - .../fpdfapi/cmaps/Japan1/UniJIS-UCS2-H_4.cpp | 2182 - .../fpdfapi/cmaps/Japan1/UniJIS-UCS2-V_4.cpp | 66 - .../pdfium/core/fpdfapi/cmaps/Japan1/V_1.cpp | 19 - .../fpdfapi/cmaps/Japan1/cmaps_japan1.cpp | 50 - .../core/fpdfapi/cmaps/Japan1/cmaps_japan1.h | 37 - .../cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp | 2050 - .../core/fpdfapi/cmaps/Korea1/KSC-EUC-H_0.cpp | 166 - .../core/fpdfapi/cmaps/Korea1/KSC-EUC-V_0.cpp | 16 - .../fpdfapi/cmaps/Korea1/KSCms-UHC-HW-H_1.cpp | 235 - .../fpdfapi/cmaps/Korea1/KSCms-UHC-HW-V_1.cpp | 16 - .../fpdfapi/cmaps/Korea1/KSCms-UHC-H_1.cpp | 235 - .../fpdfapi/cmaps/Korea1/KSCms-UHC-V_1.cpp | 16 - .../fpdfapi/cmaps/Korea1/KSCpc-EUC-H_0.cpp | 180 - .../fpdfapi/cmaps/Korea1/UniKS-UCS2-H_1.cpp | 2808 - .../fpdfapi/cmaps/Korea1/UniKS-UCS2-V_1.cpp | 16 - .../fpdfapi/cmaps/Korea1/UniKS-UTF16-H_0.cpp | 46 - .../fpdfapi/cmaps/Korea1/cmaps_korea1.cpp | 34 - .../core/fpdfapi/cmaps/Korea1/cmaps_korea1.h | 26 - .../pdfium/core/fpdfapi/cmaps/fpdf_cmaps.cpp | 140 - .../pdfium/core/fpdfapi/cmaps/fpdf_cmaps.h | 39 - .../edit/cpdf_contentstream_write_utils.cpp | 30 - .../edit/cpdf_contentstream_write_utils.h | 16 - .../pdfium/core/fpdfapi/edit/cpdf_creator.cpp | 684 - .../pdfium/core/fpdfapi/edit/cpdf_creator.h | 96 - .../edit/cpdf_pagecontentgenerator.cpp | 577 - .../fpdfapi/edit/cpdf_pagecontentgenerator.h | 75 - .../fpdfapi/edit/cpdf_pagecontentmanager.cpp | 151 - .../fpdfapi/edit/cpdf_pagecontentmanager.h | 50 - .../fpdfapi/edit/cpdf_stringarchivestream.cpp | 35 - .../fpdfapi/edit/cpdf_stringarchivestream.h | 26 - .../core/fpdfapi/font/cfx_cttgsubtable.cpp | 367 - .../core/fpdfapi/font/cfx_cttgsubtable.h | 157 - .../core/fpdfapi/font/cfx_stockfontarray.cpp | 36 - .../core/fpdfapi/font/cfx_stockfontarray.h | 28 - .../core/fpdfapi/font/cpdf_cid2unicodemap.cpp | 26 - .../core/fpdfapi/font/cpdf_cid2unicodemap.h | 26 - .../pdfium/core/fpdfapi/font/cpdf_cidfont.cpp | 850 - .../pdfium/core/fpdfapi/font/cpdf_cidfont.h | 91 - .../pdfium/core/fpdfapi/font/cpdf_cmap.cpp | 483 - .../pdfium/core/fpdfapi/font/cpdf_cmap.h | 97 - .../core/fpdfapi/font/cpdf_cmapmanager.cpp | 46 - .../core/fpdfapi/font/cpdf_cmapmanager.h | 30 - .../core/fpdfapi/font/cpdf_cmapparser.cpp | 213 - .../core/fpdfapi/font/cpdf_cmapparser.h | 59 - .../pdfium/core/fpdfapi/font/cpdf_font.cpp | 445 - .../pdfium/core/fpdfapi/font/cpdf_font.h | 161 - .../core/fpdfapi/font/cpdf_fontencoding.cpp | 1814 - .../core/fpdfapi/font/cpdf_fontencoding.h | 55 - .../core/fpdfapi/font/cpdf_fontglobals.cpp | 102 - .../core/fpdfapi/font/cpdf_fontglobals.h | 68 - .../core/fpdfapi/font/cpdf_simplefont.cpp | 295 - .../core/fpdfapi/font/cpdf_simplefont.h | 52 - .../core/fpdfapi/font/cpdf_tounicodemap.cpp | 225 - .../core/fpdfapi/font/cpdf_tounicodemap.h | 45 - .../core/fpdfapi/font/cpdf_truetypefont.cpp | 217 - .../core/fpdfapi/font/cpdf_truetypefont.h | 33 - .../core/fpdfapi/font/cpdf_type1font.cpp | 353 - .../pdfium/core/fpdfapi/font/cpdf_type1font.h | 52 - .../core/fpdfapi/font/cpdf_type3char.cpp | 90 - .../pdfium/core/fpdfapi/font/cpdf_type3char.h | 54 - .../core/fpdfapi/font/cpdf_type3font.cpp | 167 - .../pdfium/core/fpdfapi/font/cpdf_type3font.h | 66 - .../core/fpdfapi/page/cpdf_allstates.cpp | 176 - .../pdfium/core/fpdfapi/page/cpdf_allstates.h | 37 - .../core/fpdfapi/page/cpdf_annotcontext.cpp | 36 - .../core/fpdfapi/page/cpdf_annotcontext.h | 41 - .../core/fpdfapi/page/cpdf_clippath.cpp | 142 - .../pdfium/core/fpdfapi/page/cpdf_clippath.h | 72 - .../pdfium/core/fpdfapi/page/cpdf_color.cpp | 102 - .../pdfium/core/fpdfapi/page/cpdf_color.h | 50 - .../core/fpdfapi/page/cpdf_colorspace.cpp | 1339 - .../core/fpdfapi/page/cpdf_colorspace.h | 140 - .../core/fpdfapi/page/cpdf_colorstate.cpp | 161 - .../core/fpdfapi/page/cpdf_colorstate.h | 88 - .../fpdfapi/page/cpdf_contentmarkitem.cpp | 51 - .../core/fpdfapi/page/cpdf_contentmarkitem.h | 42 - .../core/fpdfapi/page/cpdf_contentmarks.cpp | 171 - .../core/fpdfapi/page/cpdf_contentmarks.h | 72 - .../core/fpdfapi/page/cpdf_contentparser.cpp | 249 - .../core/fpdfapi/page/cpdf_contentparser.h | 82 - .../core/fpdfapi/page/cpdf_devicecs.cpp | 127 - .../pdfium/core/fpdfapi/page/cpdf_devicecs.h | 36 - .../pdfium/core/fpdfapi/page/cpdf_dib.cpp | 1470 - .../pdfium/core/fpdfapi/page/cpdf_dib.h | 168 - .../core/fpdfapi/page/cpdf_docpagedata.cpp | 712 - .../core/fpdfapi/page/cpdf_docpagedata.h | 117 - .../core/fpdfapi/page/cpdf_expintfunc.cpp | 65 - .../core/fpdfapi/page/cpdf_expintfunc.h | 31 - .../pdfium/core/fpdfapi/page/cpdf_form.cpp | 122 - .../pdfium/core/fpdfapi/page/cpdf_form.h | 66 - .../core/fpdfapi/page/cpdf_formobject.cpp | 45 - .../core/fpdfapi/page/cpdf_formobject.h | 40 - .../core/fpdfapi/page/cpdf_function.cpp | 179 - .../pdfium/core/fpdfapi/page/cpdf_function.h | 70 - .../core/fpdfapi/page/cpdf_generalstate.cpp | 289 - .../core/fpdfapi/page/cpdf_generalstate.h | 118 - .../core/fpdfapi/page/cpdf_graphicstates.cpp | 24 - .../core/fpdfapi/page/cpdf_graphicstates.h | 31 - .../core/fpdfapi/page/cpdf_iccprofile.cpp | 34 - .../core/fpdfapi/page/cpdf_iccprofile.h | 43 - .../pdfium/core/fpdfapi/page/cpdf_image.cpp | 397 - .../pdfium/core/fpdfapi/page/cpdf_image.h | 91 - .../core/fpdfapi/page/cpdf_imageobject.cpp | 89 - .../core/fpdfapi/page/cpdf_imageobject.h | 45 - .../core/fpdfapi/page/cpdf_meshstream.cpp | 252 - .../core/fpdfapi/page/cpdf_meshstream.h | 89 - .../core/fpdfapi/page/cpdf_occontext.cpp | 287 - .../pdfium/core/fpdfapi/page/cpdf_occontext.h | 45 - .../pdfium/core/fpdfapi/page/cpdf_page.cpp | 217 - .../pdfium/core/fpdfapi/page/cpdf_page.h | 110 - .../core/fpdfapi/page/cpdf_pagemodule.cpp | 67 - .../core/fpdfapi/page/cpdf_pagemodule.h | 37 - .../core/fpdfapi/page/cpdf_pageobject.cpp | 100 - .../core/fpdfapi/page/cpdf_pageobject.h | 90 - .../fpdfapi/page/cpdf_pageobjectholder.cpp | 135 - .../core/fpdfapi/page/cpdf_pageobjectholder.h | 124 - .../pdfium/core/fpdfapi/page/cpdf_path.cpp | 66 - .../pdfium/core/fpdfapi/page/cpdf_path.h | 48 - .../core/fpdfapi/page/cpdf_pathobject.cpp | 53 - .../core/fpdfapi/page/cpdf_pathobject.h | 73 - .../pdfium/core/fpdfapi/page/cpdf_pattern.cpp | 32 - .../pdfium/core/fpdfapi/page/cpdf_pattern.h | 51 - .../core/fpdfapi/page/cpdf_patterncs.cpp | 70 - .../pdfium/core/fpdfapi/page/cpdf_patterncs.h | 44 - .../core/fpdfapi/page/cpdf_psengine.cpp | 442 - .../pdfium/core/fpdfapi/page/cpdf_psengine.h | 130 - .../pdfium/core/fpdfapi/page/cpdf_psfunc.cpp | 33 - .../pdfium/core/fpdfapi/page/cpdf_psfunc.h | 31 - .../core/fpdfapi/page/cpdf_sampledfunc.cpp | 181 - .../core/fpdfapi/page/cpdf_sampledfunc.h | 56 - .../core/fpdfapi/page/cpdf_shadingobject.cpp | 51 - .../core/fpdfapi/page/cpdf_shadingobject.h | 40 - .../core/fpdfapi/page/cpdf_shadingpattern.cpp | 169 - .../core/fpdfapi/page/cpdf_shadingpattern.h | 82 - .../core/fpdfapi/page/cpdf_stitchfunc.cpp | 121 - .../core/fpdfapi/page/cpdf_stitchfunc.h | 38 - .../fpdfapi/page/cpdf_streamcontentparser.cpp | 1633 - .../fpdfapi/page/cpdf_streamcontentparser.h | 244 - .../core/fpdfapi/page/cpdf_streamparser.cpp | 593 - .../core/fpdfapi/page/cpdf_streamparser.h | 60 - .../core/fpdfapi/page/cpdf_textobject.cpp | 335 - .../core/fpdfapi/page/cpdf_textobject.h | 80 - .../core/fpdfapi/page/cpdf_textstate.cpp | 145 - .../pdfium/core/fpdfapi/page/cpdf_textstate.h | 94 - .../core/fpdfapi/page/cpdf_tilingpattern.cpp | 52 - .../core/fpdfapi/page/cpdf_tilingpattern.h | 49 - .../core/fpdfapi/page/cpdf_transferfunc.cpp | 55 - .../core/fpdfapi/page/cpdf_transferfunc.h | 55 - .../fpdfapi/page/cpdf_transferfuncdib.cpp | 205 - .../core/fpdfapi/page/cpdf_transferfuncdib.h | 55 - .../core/fpdfapi/page/cpdf_transparency.cpp | 9 - .../core/fpdfapi/page/cpdf_transparency.h | 25 - .../pdfium/core/fpdfapi/page/ipdf_page.h | 57 - .../core/fpdfapi/parser/cfdf_document.cpp | 92 - .../core/fpdfapi/parser/cfdf_document.h | 38 - .../pdfium/core/fpdfapi/parser/cpdf_array.cpp | 261 - .../pdfium/core/fpdfapi/parser/cpdf_array.h | 161 - .../core/fpdfapi/parser/cpdf_boolean.cpp | 53 - .../pdfium/core/fpdfapi/parser/cpdf_boolean.h | 46 - .../fpdfapi/parser/cpdf_cross_ref_avail.cpp | 209 - .../fpdfapi/parser/cpdf_cross_ref_avail.h | 55 - .../fpdfapi/parser/cpdf_cross_ref_table.cpp | 157 - .../fpdfapi/parser/cpdf_cross_ref_table.h | 75 - .../fpdfapi/parser/cpdf_crypto_handler.cpp | 407 - .../core/fpdfapi/parser/cpdf_crypto_handler.h | 69 - .../core/fpdfapi/parser/cpdf_data_avail.cpp | 1031 - .../core/fpdfapi/parser/cpdf_data_avail.h | 201 - .../core/fpdfapi/parser/cpdf_dictionary.cpp | 317 - .../core/fpdfapi/parser/cpdf_dictionary.h | 169 - .../core/fpdfapi/parser/cpdf_document.cpp | 513 - .../core/fpdfapi/parser/cpdf_document.h | 202 - .../core/fpdfapi/parser/cpdf_encryptor.cpp | 30 - .../core/fpdfapi/parser/cpdf_encryptor.h | 33 - .../core/fpdfapi/parser/cpdf_flateencoder.cpp | 82 - .../core/fpdfapi/parser/cpdf_flateencoder.h | 45 - .../core/fpdfapi/parser/cpdf_hint_tables.cpp | 495 - .../core/fpdfapi/parser/cpdf_hint_tables.h | 115 - .../parser/cpdf_indirect_object_holder.cpp | 99 - .../parser/cpdf_indirect_object_holder.h | 83 - .../fpdfapi/parser/cpdf_linearized_header.cpp | 110 - .../fpdfapi/parser/cpdf_linearized_header.h | 60 - .../pdfium/core/fpdfapi/parser/cpdf_name.cpp | 57 - .../pdfium/core/fpdfapi/parser/cpdf_name.h | 45 - .../pdfium/core/fpdfapi/parser/cpdf_null.cpp | 28 - .../pdfium/core/fpdfapi/parser/cpdf_null.h | 27 - .../core/fpdfapi/parser/cpdf_number.cpp | 64 - .../pdfium/core/fpdfapi/parser/cpdf_number.h | 52 - .../core/fpdfapi/parser/cpdf_object.cpp | 179 - .../pdfium/core/fpdfapi/parser/cpdf_object.h | 134 - .../core/fpdfapi/parser/cpdf_object_avail.cpp | 152 - .../core/fpdfapi/parser/cpdf_object_avail.h | 51 - .../fpdfapi/parser/cpdf_object_stream.cpp | 134 - .../core/fpdfapi/parser/cpdf_object_stream.h | 54 - .../fpdfapi/parser/cpdf_object_walker.cpp | 168 - .../core/fpdfapi/parser/cpdf_object_walker.h | 70 - .../fpdfapi/parser/cpdf_page_object_avail.cpp | 17 - .../fpdfapi/parser/cpdf_page_object_avail.h | 21 - .../core/fpdfapi/parser/cpdf_parser.cpp | 1093 - .../pdfium/core/fpdfapi/parser/cpdf_parser.h | 209 - .../fpdfapi/parser/cpdf_read_validator.cpp | 164 - .../core/fpdfapi/parser/cpdf_read_validator.h | 68 - .../core/fpdfapi/parser/cpdf_reference.cpp | 113 - .../core/fpdfapi/parser/cpdf_reference.h | 66 - .../fpdfapi/parser/cpdf_security_handler.cpp | 722 - .../fpdfapi/parser/cpdf_security_handler.h | 100 - .../fpdfapi/parser/cpdf_simple_parser.cpp | 130 - .../core/fpdfapi/parser/cpdf_simple_parser.h | 29 - .../core/fpdfapi/parser/cpdf_stream.cpp | 213 - .../pdfium/core/fpdfapi/parser/cpdf_stream.h | 93 - .../core/fpdfapi/parser/cpdf_stream_acc.cpp | 170 - .../core/fpdfapi/parser/cpdf_stream_acc.h | 64 - .../core/fpdfapi/parser/cpdf_string.cpp | 80 - .../pdfium/core/fpdfapi/parser/cpdf_string.h | 52 - .../fpdfapi/parser/cpdf_syntax_parser.cpp | 903 - .../core/fpdfapi/parser/cpdf_syntax_parser.h | 128 - .../fpdfapi/parser/fpdf_parser_decode.cpp | 606 - .../core/fpdfapi/parser/fpdf_parser_decode.h | 94 - .../fpdfapi/parser/fpdf_parser_utility.cpp | 255 - .../core/fpdfapi/parser/fpdf_parser_utility.h | 71 - .../core/fpdfapi/render/charposlist.cpp | 145 - .../pdfium/core/fpdfapi/render/charposlist.h | 23 - .../core/fpdfapi/render/cpdf_devicebuffer.cpp | 91 - .../core/fpdfapi/render/cpdf_devicebuffer.h | 47 - .../fpdfapi/render/cpdf_docrenderdata.cpp | 123 - .../core/fpdfapi/render/cpdf_docrenderdata.h | 46 - .../fpdfapi/render/cpdf_imagecacheentry.cpp | 121 - .../fpdfapi/render/cpdf_imagecacheentry.h | 59 - .../core/fpdfapi/render/cpdf_imageloader.cpp | 77 - .../core/fpdfapi/render/cpdf_imageloader.h | 48 - .../fpdfapi/render/cpdf_imagerenderer.cpp | 640 - .../core/fpdfapi/render/cpdf_imagerenderer.h | 105 - .../fpdfapi/render/cpdf_pagerendercache.cpp | 129 - .../fpdfapi/render/cpdf_pagerendercache.h | 58 - .../fpdfapi/render/cpdf_pagerendercontext.cpp | 17 - .../fpdfapi/render/cpdf_pagerendercontext.h | 39 - .../render/cpdf_progressiverenderer.cpp | 131 - .../fpdfapi/render/cpdf_progressiverenderer.h | 58 - .../fpdfapi/render/cpdf_rendercontext.cpp | 89 - .../core/fpdfapi/render/cpdf_rendercontext.h | 74 - .../fpdfapi/render/cpdf_renderoptions.cpp | 66 - .../core/fpdfapi/render/cpdf_renderoptions.h | 82 - .../fpdfapi/render/cpdf_rendershading.cpp | 956 - .../core/fpdfapi/render/cpdf_rendershading.h | 34 - .../core/fpdfapi/render/cpdf_renderstatus.cpp | 1516 - .../core/fpdfapi/render/cpdf_renderstatus.h | 211 - .../core/fpdfapi/render/cpdf_rendertiling.cpp | 248 - .../core/fpdfapi/render/cpdf_rendertiling.h | 34 - .../render/cpdf_scaledrenderbuffer.cpp | 75 - .../fpdfapi/render/cpdf_scaledrenderbuffer.h | 46 - .../core/fpdfapi/render/cpdf_textrenderer.cpp | 172 - .../core/fpdfapi/render/cpdf_textrenderer.h | 62 - .../core/fpdfapi/render/cpdf_type3cache.cpp | 164 - .../core/fpdfapi/render/cpdf_type3cache.h | 42 - .../fpdfapi/render/cpdf_type3glyphmap.cpp | 56 - .../core/fpdfapi/render/cpdf_type3glyphmap.h | 36 - .../pdfium/core/fpdfdoc/cba_fontmap.cpp | 489 - .../pdfium/pdfium/core/fpdfdoc/cba_fontmap.h | 96 - .../pdfium/pdfium/core/fpdfdoc/cline.cpp | 38 - .../pdfium/pdfium/core/fpdfdoc/cline.h | 26 - .../pdfium/core/fpdfdoc/cpdf_aaction.cpp | 69 - .../pdfium/pdfium/core/fpdfdoc/cpdf_aaction.h | 57 - .../pdfium/core/fpdfdoc/cpdf_action.cpp | 185 - .../pdfium/pdfium/core/fpdfdoc/cpdf_action.h | 76 - .../pdfium/pdfium/core/fpdfdoc/cpdf_annot.cpp | 523 - .../pdfium/pdfium/core/fpdfdoc/cpdf_annot.h | 136 - .../pdfium/core/fpdfdoc/cpdf_annotlist.cpp | 302 - .../pdfium/core/fpdfdoc/cpdf_annotlist.h | 70 - .../pdfium/core/fpdfdoc/cpdf_apsettings.cpp | 124 - .../pdfium/core/fpdfdoc/cpdf_apsettings.h | 86 - .../pdfium/core/fpdfdoc/cpdf_bookmark.cpp | 54 - .../pdfium/core/fpdfdoc/cpdf_bookmark.h | 35 - .../pdfium/core/fpdfdoc/cpdf_bookmarktree.cpp | 37 - .../pdfium/core/fpdfdoc/cpdf_bookmarktree.h | 28 - .../pdfium/core/fpdfdoc/cpdf_color_utils.cpp | 53 - .../pdfium/core/fpdfdoc/cpdf_color_utils.h | 25 - .../core/fpdfdoc/cpdf_defaultappearance.cpp | 134 - .../core/fpdfdoc/cpdf_defaultappearance.h | 38 - .../pdfium/pdfium/core/fpdfdoc/cpdf_dest.cpp | 143 - .../pdfium/pdfium/core/fpdfdoc/cpdf_dest.h | 46 - .../pdfium/core/fpdfdoc/cpdf_filespec.cpp | 214 - .../pdfium/core/fpdfdoc/cpdf_filespec.h | 47 - .../pdfium/core/fpdfdoc/cpdf_formcontrol.cpp | 254 - .../pdfium/core/fpdfdoc/cpdf_formcontrol.h | 115 - .../pdfium/core/fpdfdoc/cpdf_formfield.cpp | 1011 - .../pdfium/core/fpdfdoc/cpdf_formfield.h | 196 - .../pdfium/pdfium/core/fpdfdoc/cpdf_icon.cpp | 39 - .../pdfium/pdfium/core/fpdfdoc/cpdf_icon.h | 29 - .../pdfium/core/fpdfdoc/cpdf_iconfit.cpp | 76 - .../pdfium/pdfium/core/fpdfdoc/cpdf_iconfit.h | 34 - .../core/fpdfdoc/cpdf_interactiveform.cpp | 1021 - .../core/fpdfdoc/cpdf_interactiveform.h | 124 - .../pdfium/pdfium/core/fpdfdoc/cpdf_link.cpp | 29 - .../pdfium/pdfium/core/fpdfdoc/cpdf_link.h | 33 - .../pdfium/core/fpdfdoc/cpdf_linklist.cpp | 69 - .../pdfium/core/fpdfdoc/cpdf_linklist.h | 36 - .../pdfium/core/fpdfdoc/cpdf_metadata.cpp | 82 - .../pdfium/core/fpdfdoc/cpdf_metadata.h | 46 - .../pdfium/core/fpdfdoc/cpdf_nametree.cpp | 487 - .../pdfium/core/fpdfdoc/cpdf_nametree.h | 59 - .../pdfium/core/fpdfdoc/cpdf_numbertree.cpp | 57 - .../pdfium/core/fpdfdoc/cpdf_numbertree.h | 26 - .../pdfium/core/fpdfdoc/cpdf_pagelabel.cpp | 122 - .../pdfium/core/fpdfdoc/cpdf_pagelabel.h | 26 - .../core/fpdfdoc/cpdf_structelement.cpp | 142 - .../pdfium/core/fpdfdoc/cpdf_structelement.h | 70 - .../pdfium/core/fpdfdoc/cpdf_structtree.cpp | 148 - .../pdfium/core/fpdfdoc/cpdf_structtree.h | 52 - .../pdfium/core/fpdfdoc/cpdf_variabletext.cpp | 936 - .../pdfium/core/fpdfdoc/cpdf_variabletext.h | 212 - .../core/fpdfdoc/cpdf_viewerpreferences.cpp | 59 - .../core/fpdfdoc/cpdf_viewerpreferences.h | 39 - .../pdfium/core/fpdfdoc/cpvt_floatrect.h | 32 - .../pdfium/core/fpdfdoc/cpvt_fontmap.cpp | 99 - .../pdfium/pdfium/core/fpdfdoc/cpvt_fontmap.h | 51 - .../pdfium/core/fpdfdoc/cpvt_generateap.cpp | 1387 - .../pdfium/core/fpdfdoc/cpvt_generateap.h | 35 - .../pdfium/pdfium/core/fpdfdoc/cpvt_line.h | 29 - .../pdfium/core/fpdfdoc/cpvt_lineinfo.h | 36 - .../pdfium/pdfium/core/fpdfdoc/cpvt_word.h | 37 - .../pdfium/core/fpdfdoc/cpvt_wordinfo.cpp | 50 - .../pdfium/core/fpdfdoc/cpvt_wordinfo.h | 28 - .../pdfium/core/fpdfdoc/cpvt_wordplace.h | 73 - .../pdfium/core/fpdfdoc/cpvt_wordrange.h | 41 - .../pdfium/pdfium/core/fpdfdoc/csection.cpp | 251 - .../pdfium/pdfium/core/fpdfdoc/csection.h | 63 - .../pdfium/pdfium/core/fpdfdoc/ctypeset.cpp | 489 - .../pdfium/pdfium/core/fpdfdoc/ctypeset.h | 35 - .../pdfium/pdfium/core/fpdfdoc/ipvt_fontmap.h | 30 - .../pdfium/core/fpdftext/cpdf_linkextract.cpp | 320 - .../pdfium/core/fpdftext/cpdf_linkextract.h | 44 - .../pdfium/core/fpdftext/cpdf_textpage.cpp | 1472 - .../pdfium/core/fpdftext/cpdf_textpage.h | 154 - .../core/fpdftext/cpdf_textpagefind.cpp | 342 - .../pdfium/core/fpdftext/cpdf_textpagefind.h | 63 - .../fpdftext/unicodenormalizationdata.cpp | 8275 -- .../core/fpdftext/unicodenormalizationdata.h | 18 - .../pdfium/core/fxcodec/basic/basicmodule.cpp | 375 - .../pdfium/core/fxcodec/basic/basicmodule.h | 46 - .../pdfium/core/fxcodec/cfx_codec_memory.cpp | 47 - .../pdfium/core/fxcodec/cfx_codec_memory.h | 43 - .../pdfium/core/fxcodec/fax/faxmodule.cpp | 816 - .../pdfium/core/fxcodec/fax/faxmodule.h | 61 - .../pdfium/core/fxcodec/flate/flatemodule.cpp | 861 - .../pdfium/core/fxcodec/flate/flatemodule.h | 59 - .../pdfium/pdfium/core/fxcodec/fx_codec.cpp | 58 - .../pdfium/pdfium/core/fxcodec/fx_codec.h | 40 - .../pdfium/pdfium/core/fxcodec/fx_codec_def.h | 53 - .../pdfium/core/fxcodec/icc/iccmodule.cpp | 150 - .../pdfium/core/fxcodec/icc/iccmodule.h | 63 - .../core/fxcodec/jbig2/JBig2_ArithDecoder.cpp | 134 - .../core/fxcodec/jbig2/JBig2_ArithDecoder.h | 67 - .../fxcodec/jbig2/JBig2_ArithIntDecoder.cpp | 104 - .../fxcodec/jbig2/JBig2_ArithIntDecoder.h | 41 - .../core/fxcodec/jbig2/JBig2_BitStream.cpp | 193 - .../core/fxcodec/jbig2/JBig2_BitStream.h | 55 - .../core/fxcodec/jbig2/JBig2_Context.cpp | 1233 - .../pdfium/core/fxcodec/jbig2/JBig2_Context.h | 109 - .../pdfium/core/fxcodec/jbig2/JBig2_Define.h | 33 - .../fxcodec/jbig2/JBig2_DocumentContext.cpp | 14 - .../fxcodec/jbig2/JBig2_DocumentContext.h | 34 - .../core/fxcodec/jbig2/JBig2_GrdProc.cpp | 1089 - .../pdfium/core/fxcodec/jbig2/JBig2_GrdProc.h | 103 - .../core/fxcodec/jbig2/JBig2_GrrdProc.cpp | 515 - .../core/fxcodec/jbig2/JBig2_GrrdProc.h | 63 - .../core/fxcodec/jbig2/JBig2_HtrdProc.cpp | 135 - .../core/fxcodec/jbig2/JBig2_HtrdProc.h | 53 - .../fxcodec/jbig2/JBig2_HuffmanDecoder.cpp | 53 - .../core/fxcodec/jbig2/JBig2_HuffmanDecoder.h | 25 - .../core/fxcodec/jbig2/JBig2_HuffmanTable.cpp | 240 - .../core/fxcodec/jbig2/JBig2_HuffmanTable.h | 45 - .../pdfium/core/fxcodec/jbig2/JBig2_Image.cpp | 674 - .../pdfium/core/fxcodec/jbig2/JBig2_Image.h | 95 - .../pdfium/core/fxcodec/jbig2/JBig2_Page.h | 22 - .../core/fxcodec/jbig2/JBig2_PatternDict.cpp | 12 - .../core/fxcodec/jbig2/JBig2_PatternDict.h | 25 - .../core/fxcodec/jbig2/JBig2_PddProc.cpp | 85 - .../pdfium/core/fxcodec/jbig2/JBig2_PddProc.h | 40 - .../core/fxcodec/jbig2/JBig2_SddProc.cpp | 528 - .../pdfium/core/fxcodec/jbig2/JBig2_SddProc.h | 53 - .../core/fxcodec/jbig2/JBig2_Segment.cpp | 22 - .../pdfium/core/fxcodec/jbig2/JBig2_Segment.h | 64 - .../core/fxcodec/jbig2/JBig2_SymbolDict.cpp | 24 - .../core/fxcodec/jbig2/JBig2_SymbolDict.h | 48 - .../core/fxcodec/jbig2/JBig2_TrdProc.cpp | 444 - .../pdfium/core/fxcodec/jbig2/JBig2_TrdProc.h | 98 - .../core/fxcodec/jbig2/jbig2_decoder.cpp | 86 - .../pdfium/core/fxcodec/jbig2/jbig2_decoder.h | 66 - .../pdfium/core/fxcodec/jpeg/jpeg_common.cpp | 27 - .../pdfium/core/fxcodec/jpeg/jpeg_common.h | 29 - .../pdfium/core/fxcodec/jpeg/jpegmodule.cpp | 507 - .../pdfium/core/fxcodec/jpeg/jpegmodule.h | 60 - .../pdfium/core/fxcodec/jpx/cjpx_decoder.cpp | 577 - .../pdfium/core/fxcodec/jpx/cjpx_decoder.h | 69 - .../core/fxcodec/jpx/jpx_decode_utils.cpp | 91 - .../core/fxcodec/jpx/jpx_decode_utils.h | 34 - .../pdfium/core/fxcodec/scanlinedecoder.cpp | 73 - .../pdfium/core/fxcodec/scanlinedecoder.h | 59 - .../pdfium/pdfium/core/fxcrt/autonuller.h | 28 - .../pdfium/pdfium/core/fxcrt/autorestorer.h | 30 - .../pdfium/pdfium/core/fxcrt/byteorder.h | 43 - .../pdfium/pdfium/core/fxcrt/bytestring.cpp | 799 - .../pdfium/pdfium/core/fxcrt/bytestring.h | 296 - .../pdfium/core/fxcrt/cfx_binarybuf.cpp | 111 - .../pdfium/pdfium/core/fxcrt/cfx_binarybuf.h | 61 - .../pdfium/core/fxcrt/cfx_bitstream.cpp | 63 - .../pdfium/pdfium/core/fxcrt/cfx_bitstream.h | 39 - .../pdfium/pdfium/core/fxcrt/cfx_datetime.cpp | 139 - .../pdfium/pdfium/core/fxcrt/cfx_datetime.h | 99 - .../core/fxcrt/cfx_fileaccess_posix.cpp | 149 - .../pdfium/core/fxcrt/cfx_fileaccess_posix.h | 43 - .../pdfium/core/fxcrt/cfx_fixedbufgrow.h | 31 - .../pdfium/core/fxcrt/cfx_memorystream.cpp | 109 - .../pdfium/core/fxcrt/cfx_memorystream.h | 47 - .../core/fxcrt/cfx_readonlymemorystream.cpp | 42 - .../core/fxcrt/cfx_readonlymemorystream.h | 37 - .../core/fxcrt/cfx_seekablestreamproxy.cpp | 226 - .../core/fxcrt/cfx_seekablestreamproxy.h | 47 - .../pdfium/pdfium/core/fxcrt/cfx_timer.cpp | 46 - .../pdfium/pdfium/core/fxcrt/cfx_timer.h | 40 - .../pdfium/core/fxcrt/cfx_utf8decoder.cpp | 48 - .../pdfium/core/fxcrt/cfx_utf8decoder.h | 28 - .../pdfium/core/fxcrt/cfx_utf8encoder.cpp | 43 - .../pdfium/core/fxcrt/cfx_utf8encoder.h | 32 - .../pdfium/core/fxcrt/cfx_widetextbuf.cpp | 96 - .../pdfium/core/fxcrt/cfx_widetextbuf.h | 41 - .../pdfium/core/fxcrt/fileaccess_iface.h | 35 - .../pdfium/pdfium/core/fxcrt/fx_bidi.cpp | 89 - .../pdfium/pdfium/core/fxcrt/fx_bidi.h | 70 - .../pdfium/pdfium/core/fxcrt/fx_codepage.cpp | 237 - .../pdfium/pdfium/core/fxcrt/fx_codepage.h | 105 - .../pdfium/core/fxcrt/fx_coordinates.cpp | 424 - .../pdfium/pdfium/core/fxcrt/fx_coordinates.h | 587 - .../pdfium/pdfium/core/fxcrt/fx_extension.cpp | 187 - .../pdfium/pdfium/core/fxcrt/fx_extension.h | 141 - .../pdfium/pdfium/core/fxcrt/fx_memory.cpp | 165 - .../pdfium/pdfium/core/fxcrt/fx_memory.h | 86 - .../pdfium/core/fxcrt/fx_memory_wrappers.h | 76 - .../pdfium/pdfium/core/fxcrt/fx_number.cpp | 98 - .../pdfium/pdfium/core/fxcrt/fx_number.h | 38 - .../pdfium/pdfium/core/fxcrt/fx_random.cpp | 133 - .../pdfium/pdfium/core/fxcrt/fx_random.h | 18 - .../pdfium/pdfium/core/fxcrt/fx_safe_types.h | 18 - .../pdfium/pdfium/core/fxcrt/fx_stream.cpp | 184 - .../pdfium/pdfium/core/fxcrt/fx_stream.h | 99 - .../pdfium/pdfium/core/fxcrt/fx_string.cpp | 162 - .../pdfium/pdfium/core/fxcrt/fx_string.h | 51 - .../pdfium/pdfium/core/fxcrt/fx_system.cpp | 267 - .../pdfium/pdfium/core/fxcrt/fx_system.h | 173 - .../pdfium/pdfium/core/fxcrt/fx_ucddata.inc | 65536 ---------------- .../pdfium/pdfium/core/fxcrt/fx_unicode.cpp | 167 - .../pdfium/pdfium/core/fxcrt/fx_unicode.h | 105 - .../pdfium/pdfium/core/fxcrt/maybe_owned.h | 110 - .../pdfium/pdfium/core/fxcrt/observed_ptr.cpp | 33 - .../pdfium/pdfium/core/fxcrt/observed_ptr.h | 108 - .../pdfium/core/fxcrt/pauseindicator_iface.h | 16 - .../pdfium/pdfium/core/fxcrt/retain_ptr.h | 179 - .../pdfium/core/fxcrt/retained_tree_node.h | 81 - .../pdfium/core/fxcrt/shared_copy_on_write.h | 68 - .../core/fxcrt/string_data_template.cpp | 101 - .../pdfium/core/fxcrt/string_data_template.h | 56 - .../pdfium/core/fxcrt/string_pool_template.h | 36 - .../pdfium/core/fxcrt/string_view_template.h | 292 - .../pdfium/core/fxcrt/timerhandler_iface.h | 29 - .../pdfium/pdfium/core/fxcrt/tree_node.h | 162 - .../pdfium/pdfium/core/fxcrt/unowned_ptr.h | 131 - .../pdfium/pdfium/core/fxcrt/weak_ptr.h | 92 - .../pdfium/pdfium/core/fxcrt/widestring.cpp | 1133 - .../pdfium/pdfium/core/fxcrt/widestring.h | 316 - .../pdfium/core/fxcrt/xml/cfx_xmlchardata.cpp | 29 - .../pdfium/core/fxcrt/xml/cfx_xmlchardata.h | 32 - .../pdfium/core/fxcrt/xml/cfx_xmldocument.cpp | 22 - .../pdfium/core/fxcrt/xml/cfx_xmldocument.h | 41 - .../pdfium/core/fxcrt/xml/cfx_xmlelement.cpp | 154 - .../pdfium/core/fxcrt/xml/cfx_xmlelement.h | 66 - .../core/fxcrt/xml/cfx_xmlinstruction.cpp | 57 - .../core/fxcrt/xml/cfx_xmlinstruction.h | 44 - .../pdfium/core/fxcrt/xml/cfx_xmlnode.cpp | 23 - .../pdfium/core/fxcrt/xml/cfx_xmlnode.h | 37 - .../pdfium/core/fxcrt/xml/cfx_xmlparser.cpp | 541 - .../pdfium/core/fxcrt/xml/cfx_xmlparser.h | 64 - .../pdfium/core/fxcrt/xml/cfx_xmltext.cpp | 25 - .../pdfium/core/fxcrt/xml/cfx_xmltext.h | 47 - .../pdfium/core/fxge/agg/fx_agg_driver.cpp | 1542 - .../pdfium/core/fxge/agg/fx_agg_driver.h | 127 - .../pdfium/pdfium/core/fxge/cfx_cliprgn.cpp | 96 - .../pdfium/pdfium/core/fxge/cfx_cliprgn.h | 40 - .../pdfium/pdfium/core/fxge/cfx_color.cpp | 185 - .../pdfium/pdfium/core/fxge/cfx_color.h | 75 - .../core/fxge/cfx_defaultrenderdevice.h | 43 - .../pdfium/pdfium/core/fxge/cfx_drawutils.cpp | 40 - .../pdfium/pdfium/core/fxge/cfx_drawutils.h | 24 - .../pdfium/pdfium/core/fxge/cfx_face.cpp | 36 - .../pdfium/pdfium/core/fxge/cfx_face.h | 35 - .../pdfium/core/fxge/cfx_fillrenderoptions.h | 77 - .../pdfium/core/fxge/cfx_folderfontinfo.cpp | 407 - .../pdfium/core/fxge/cfx_folderfontinfo.h | 79 - .../pdfium/pdfium/core/fxge/cfx_font.cpp | 740 - .../pdfium/pdfium/core/fxge/cfx_font.h | 156 - .../pdfium/pdfium/core/fxge/cfx_fontcache.cpp | 35 - .../pdfium/pdfium/core/fxge/cfx_fontcache.h | 34 - .../pdfium/core/fxge/cfx_fontmapper.cpp | 808 - .../pdfium/pdfium/core/fxge/cfx_fontmapper.h | 113 - .../pdfium/pdfium/core/fxge/cfx_fontmgr.cpp | 190 - .../pdfium/pdfium/core/fxge/cfx_fontmgr.h | 99 - .../pdfium/pdfium/core/fxge/cfx_gemodule.cpp | 47 - .../pdfium/pdfium/core/fxge/cfx_gemodule.h | 47 - .../pdfium/core/fxge/cfx_glyphbitmap.cpp | 12 - .../pdfium/pdfium/core/fxge/cfx_glyphbitmap.h | 32 - .../pdfium/core/fxge/cfx_glyphcache.cpp | 360 - .../pdfium/pdfium/core/fxge/cfx_glyphcache.h | 90 - .../pdfium/core/fxge/cfx_graphstate.cpp | 63 - .../pdfium/pdfium/core/fxge/cfx_graphstate.h | 44 - .../pdfium/core/fxge/cfx_graphstatedata.cpp | 40 - .../pdfium/core/fxge/cfx_graphstatedata.h | 58 - .../pdfium/pdfium/core/fxge/cfx_pathdata.cpp | 514 - .../pdfium/pdfium/core/fxge/cfx_pathdata.h | 89 - .../pdfium/core/fxge/cfx_renderdevice.cpp | 1302 - .../pdfium/core/fxge/cfx_renderdevice.h | 259 - .../pdfium/pdfium/core/fxge/cfx_substfont.cpp | 26 - .../pdfium/pdfium/core/fxge/cfx_substfont.h | 31 - .../pdfium/core/fxge/cfx_textrenderoptions.h | 55 - .../pdfium/core/fxge/cfx_unicodeencoding.cpp | 36 - .../pdfium/core/fxge/cfx_unicodeencoding.h | 27 - .../core/fxge/cfx_unicodeencodingex.cpp | 114 - .../pdfium/core/fxge/cfx_unicodeencodingex.h | 34 - .../core/fxge/cfx_windowsrenderdevice.h | 49 - .../core/fxge/dib/cfx_bitmapcomposer.cpp | 196 - .../pdfium/core/fxge/dib/cfx_bitmapcomposer.h | 81 - .../pdfium/core/fxge/dib/cfx_bitmapstorer.cpp | 55 - .../pdfium/core/fxge/dib/cfx_bitmapstorer.h | 38 - .../pdfium/core/fxge/dib/cfx_cmyk_to_srgb.cpp | 1760 - .../pdfium/core/fxge/dib/cfx_cmyk_to_srgb.h | 30 - .../pdfium/core/fxge/dib/cfx_dibbase.cpp | 1274 - .../pdfium/pdfium/core/fxge/dib/cfx_dibbase.h | 135 - .../pdfium/core/fxge/dib/cfx_dibextractor.cpp | 28 - .../pdfium/core/fxge/dib/cfx_dibextractor.h | 26 - .../pdfium/core/fxge/dib/cfx_dibitmap.cpp | 1282 - .../pdfium/core/fxge/dib/cfx_dibitmap.h | 166 - .../core/fxge/dib/cfx_imagerenderer.cpp | 115 - .../pdfium/core/fxge/dib/cfx_imagerenderer.h | 51 - .../core/fxge/dib/cfx_imagestretcher.cpp | 145 - .../pdfium/core/fxge/dib/cfx_imagestretcher.h | 55 - .../core/fxge/dib/cfx_imagetransformer.cpp | 602 - .../core/fxge/dib/cfx_imagetransformer.h | 99 - .../core/fxge/dib/cfx_scanlinecompositor.cpp | 3208 - .../core/fxge/dib/cfx_scanlinecompositor.h | 76 - .../pdfium/core/fxge/dib/cstretchengine.cpp | 747 - .../pdfium/core/fxge/dib/cstretchengine.h | 107 - .../pdfium/core/fxge/dib/fx_dib_main.cpp | 158 - .../core/fxge/dib/scanlinecomposer_iface.h | 26 - .../fontdata/chromefontdata/FoxitDingbats.cpp | 2469 - .../fontdata/chromefontdata/FoxitFixed.cpp | 1476 - .../chromefontdata/FoxitFixedBold.cpp | 1514 - .../chromefontdata/FoxitFixedBoldItalic.cpp | 1605 - .../chromefontdata/FoxitFixedItalic.cpp | 1572 - .../fontdata/chromefontdata/FoxitSans.cpp | 1262 - .../fontdata/chromefontdata/FoxitSansBold.cpp | 1371 - .../chromefontdata/FoxitSansBoldItalic.cpp | 1378 - .../chromefontdata/FoxitSansItalic.cpp | 1371 - .../fontdata/chromefontdata/FoxitSansMM.cpp | 5587 -- .../fontdata/chromefontdata/FoxitSerif.cpp | 1632 - .../chromefontdata/FoxitSerifBold.cpp | 1626 - .../chromefontdata/FoxitSerifBoldItalic.cpp | 1737 - .../chromefontdata/FoxitSerifItalic.cpp | 1778 - .../fontdata/chromefontdata/FoxitSerifMM.cpp | 9462 --- .../fontdata/chromefontdata/FoxitSymbol.cpp | 1404 - .../fontdata/chromefontdata/chromefontdata.h | 27 - .../pdfium/core/fxge/freetype/fx_freetype.cpp | 177 - .../3rdparty/pdfium/pdfium/core/fxge/fx_dib.h | 194 - .../pdfium/pdfium/core/fxge/fx_font.cpp | 147 - .../pdfium/pdfium/core/fxge/fx_font.h | 98 - .../pdfium/pdfium/core/fxge/fx_freetype.h | 99 - .../pdfium/pdfium/core/fxge/fx_ge_linux.cpp | 181 - .../pdfium/pdfium/core/fxge/render_defines.h | 31 - .../core/fxge/renderdevicedriver_iface.cpp | 89 - .../core/fxge/renderdevicedriver_iface.h | 123 - .../core/fxge/scoped_font_transform.cpp | 32 - .../pdfium/core/fxge/scoped_font_transform.h | 24 - .../pdfium/core/fxge/systemfontinfo_iface.h | 35 - .../pdfium/pdfium/core/fxge/text_char_pos.cpp | 13 - .../pdfium/pdfium/core/fxge/text_char_pos.h | 31 - .../pdfium/core/fxge/text_glyph_pos.cpp | 32 - .../pdfium/pdfium/core/fxge/text_glyph_pos.h | 30 - .../pdfium/fpdfsdk/cpdfsdk_actionhandler.cpp | 466 - .../pdfium/fpdfsdk/cpdfsdk_actionhandler.h | 112 - .../pdfium/pdfium/fpdfsdk/cpdfsdk_annot.cpp | 67 - .../pdfium/pdfium/fpdfsdk/cpdfsdk_annot.h | 56 - .../fpdfsdk/cpdfsdk_annothandlermgr.cpp | 371 - .../pdfium/fpdfsdk/cpdfsdk_annothandlermgr.h | 140 - .../pdfium/fpdfsdk/cpdfsdk_annotiteration.cpp | 40 - .../pdfium/fpdfsdk/cpdfsdk_annotiteration.h | 31 - .../pdfium/fpdfsdk/cpdfsdk_annotiterator.cpp | 186 - .../pdfium/fpdfsdk/cpdfsdk_annotiterator.h | 50 - .../pdfium/fpdfsdk/cpdfsdk_appstream.cpp | 1966 - .../pdfium/pdfium/fpdfsdk/cpdfsdk_appstream.h | 44 - .../pdfium/pdfium/fpdfsdk/cpdfsdk_baannot.cpp | 239 - .../pdfium/pdfium/fpdfsdk/cpdfsdk_baannot.h | 77 - .../pdfium/fpdfsdk/cpdfsdk_baannothandler.cpp | 303 - .../pdfium/fpdfsdk/cpdfsdk_baannothandler.h | 112 - .../pdfium/fpdfsdk/cpdfsdk_customaccess.cpp | 34 - .../pdfium/fpdfsdk/cpdfsdk_customaccess.h | 30 - .../pdfium/fpdfsdk/cpdfsdk_fieldaction.cpp | 11 - .../pdfium/fpdfsdk/cpdfsdk_fieldaction.h | 30 - .../fpdfsdk/cpdfsdk_filewriteadapter.cpp | 22 - .../pdfium/fpdfsdk/cpdfsdk_filewriteadapter.h | 30 - .../fpdfsdk/cpdfsdk_formfillenvironment.cpp | 790 - .../fpdfsdk/cpdfsdk_formfillenvironment.h | 245 - .../pdfium/pdfium/fpdfsdk/cpdfsdk_helpers.cpp | 460 - .../pdfium/pdfium/fpdfsdk/cpdfsdk_helpers.h | 289 - .../fpdfsdk/cpdfsdk_interactiveform.cpp | 640 - .../pdfium/fpdfsdk/cpdfsdk_interactiveform.h | 121 - .../pdfium/fpdfsdk/cpdfsdk_pageview.cpp | 586 - .../pdfium/pdfium/fpdfsdk/cpdfsdk_pageview.h | 123 - .../pdfium/fpdfsdk/cpdfsdk_pauseadapter.cpp | 16 - .../pdfium/fpdfsdk/cpdfsdk_pauseadapter.h | 26 - .../pdfium/fpdfsdk/cpdfsdk_renderpage.cpp | 117 - .../pdfium/fpdfsdk/cpdfsdk_renderpage.h | 41 - .../pdfium/pdfium/fpdfsdk/cpdfsdk_widget.cpp | 867 - .../pdfium/pdfium/fpdfsdk/cpdfsdk_widget.h | 157 - .../pdfium/fpdfsdk/cpdfsdk_widgethandler.cpp | 313 - .../pdfium/fpdfsdk/cpdfsdk_widgethandler.h | 111 - .../pdfium/fpdfsdk/formfiller/cffl_button.cpp | 103 - .../pdfium/fpdfsdk/formfiller/cffl_button.h | 54 - .../fpdfsdk/formfiller/cffl_checkbox.cpp | 133 - .../pdfium/fpdfsdk/formfiller/cffl_checkbox.h | 39 - .../fpdfsdk/formfiller/cffl_combobox.cpp | 273 - .../pdfium/fpdfsdk/formfiller/cffl_combobox.h | 63 - .../fpdfsdk/formfiller/cffl_formfiller.cpp | 548 - .../fpdfsdk/formfiller/cffl_formfiller.h | 156 - .../formfiller/cffl_interactiveformfiller.cpp | 985 - .../formfiller/cffl_interactiveformfiller.h | 191 - .../fpdfsdk/formfiller/cffl_listbox.cpp | 228 - .../pdfium/fpdfsdk/formfiller/cffl_listbox.h | 47 - .../fpdfsdk/formfiller/cffl_pushbutton.cpp | 26 - .../fpdfsdk/formfiller/cffl_pushbutton.h | 26 - .../fpdfsdk/formfiller/cffl_radiobutton.cpp | 122 - .../fpdfsdk/formfiller/cffl_radiobutton.h | 39 - .../fpdfsdk/formfiller/cffl_textfield.cpp | 255 - .../fpdfsdk/formfiller/cffl_textfield.h | 58 - .../fpdfsdk/formfiller/cffl_textobject.cpp | 43 - .../fpdfsdk/formfiller/cffl_textobject.h | 34 - .../pdfium/pdfium/fpdfsdk/fpdf_annot.cpp | 1313 - .../pdfium/pdfium/fpdfsdk/fpdf_attachment.cpp | 269 - .../pdfium/pdfium/fpdfsdk/fpdf_catalog.cpp | 23 - .../pdfium/pdfium/fpdfsdk/fpdf_dataavail.cpp | 212 - .../pdfium/pdfium/fpdfsdk/fpdf_doc.cpp | 499 - .../pdfium/pdfium/fpdfsdk/fpdf_editimg.cpp | 401 - .../pdfium/pdfium/fpdfsdk/fpdf_editpage.cpp | 866 - .../pdfium/pdfium/fpdfsdk/fpdf_editpath.cpp | 233 - .../pdfium/pdfium/fpdfsdk/fpdf_edittext.cpp | 612 - .../pdfium/pdfium/fpdfsdk/fpdf_ext.cpp | 112 - .../pdfium/pdfium/fpdfsdk/fpdf_flatten.cpp | 425 - .../pdfium/pdfium/fpdfsdk/fpdf_formfill.cpp | 828 - .../pdfium/pdfium/fpdfsdk/fpdf_javascript.cpp | 88 - .../pdfium/pdfium/fpdfsdk/fpdf_ppo.cpp | 823 - .../pdfium/fpdfsdk/fpdf_progressive.cpp | 145 - .../pdfium/pdfium/fpdfsdk/fpdf_save.cpp | 211 - .../pdfium/pdfium/fpdfsdk/fpdf_searchex.cpp | 26 - .../pdfium/pdfium/fpdfsdk/fpdf_signature.cpp | 159 - .../pdfium/pdfium/fpdfsdk/fpdf_structtree.cpp | 184 - .../pdfium/fpdfsdk/fpdf_sysfontinfo.cpp | 236 - .../pdfium/pdfium/fpdfsdk/fpdf_text.cpp | 567 - .../pdfium/pdfium/fpdfsdk/fpdf_thumbnail.cpp | 74 - .../pdfium/fpdfsdk/fpdf_transformpage.cpp | 427 - .../pdfium/pdfium/fpdfsdk/fpdf_view.cpp | 1399 - .../pdfium/fpdfsdk/fpdf_view_c_api_test.c | 494 - .../pdfium/fpdfsdk/fpdf_view_c_api_test.h | 20 - .../pdfium/fpdfsdk/ipdfsdk_annothandler.h | 107 - .../pdfium/pdfium/fpdfsdk/pwl/cpwl_button.cpp | 32 - .../pdfium/pdfium/fpdfsdk/pwl/cpwl_button.h | 29 - .../pdfium/pdfium/fpdfsdk/pwl/cpwl_caret.cpp | 129 - .../pdfium/pdfium/fpdfsdk/pwl/cpwl_caret.h | 46 - .../pdfium/fpdfsdk/pwl/cpwl_combo_box.cpp | 617 - .../pdfium/fpdfsdk/pwl/cpwl_combo_box.h | 111 - .../pdfium/pdfium/fpdfsdk/pwl/cpwl_edit.cpp | 637 - .../pdfium/pdfium/fpdfsdk/pwl/cpwl_edit.h | 135 - .../pdfium/fpdfsdk/pwl/cpwl_edit_ctrl.cpp | 415 - .../pdfium/fpdfsdk/pwl/cpwl_edit_ctrl.h | 94 - .../pdfium/fpdfsdk/pwl/cpwl_edit_impl.cpp | 1919 - .../pdfium/fpdfsdk/pwl/cpwl_edit_impl.h | 464 - .../pdfium/pdfium/fpdfsdk/pwl/cpwl_icon.cpp | 110 - .../pdfium/pdfium/fpdfsdk/pwl/cpwl_icon.h | 44 - .../pdfium/fpdfsdk/pwl/cpwl_list_box.cpp | 378 - .../pdfium/pdfium/fpdfsdk/pwl/cpwl_list_box.h | 108 - .../pdfium/fpdfsdk/pwl/cpwl_list_impl.cpp | 629 - .../pdfium/fpdfsdk/pwl/cpwl_list_impl.h | 175 - .../pdfium/fpdfsdk/pwl/cpwl_scroll_bar.cpp | 901 - .../pdfium/fpdfsdk/pwl/cpwl_scroll_bar.h | 188 - .../fpdfsdk/pwl/cpwl_special_button.cpp | 70 - .../pdfium/fpdfsdk/pwl/cpwl_special_button.h | 61 - .../pdfium/pdfium/fpdfsdk/pwl/cpwl_wnd.cpp | 763 - .../pdfium/pdfium/fpdfsdk/pwl/cpwl_wnd.h | 332 - .../pdfium/fpdfsdk/pwl/ipwl_systemhandler.h | 35 - .../src/3rdparty/pdfium/pdfium/fxjs/DEPS | 10 - .../pdfium/pdfium/fxjs/cfx_globaldata.cpp | 398 - .../pdfium/pdfium/fxjs/cfx_globaldata.h | 84 - .../pdfium/pdfium/fxjs/cfx_keyvalue.cpp | 15 - .../pdfium/pdfium/fxjs/cfx_keyvalue.h | 45 - .../3rdparty/pdfium/pdfium/fxjs/cfx_v8.cpp | 148 - .../src/3rdparty/pdfium/pdfium/fxjs/cfx_v8.h | 79 - .../pdfium/pdfium/fxjs/cfxjs_engine.cpp | 657 - .../pdfium/pdfium/fxjs/cfxjs_engine.h | 143 - .../3rdparty/pdfium/pdfium/fxjs/cjs_annot.cpp | 114 - .../3rdparty/pdfium/pdfium/fxjs/cjs_annot.h | 46 - .../3rdparty/pdfium/pdfium/fxjs/cjs_app.cpp | 570 - .../src/3rdparty/pdfium/pdfium/fxjs/cjs_app.h | 163 - .../pdfium/pdfium/fxjs/cjs_border.cpp | 23 - .../3rdparty/pdfium/pdfium/fxjs/cjs_border.h | 23 - .../3rdparty/pdfium/pdfium/fxjs/cjs_color.cpp | 319 - .../3rdparty/pdfium/pdfium/fxjs/cjs_color.h | 110 - .../pdfium/pdfium/fxjs/cjs_console.cpp | 60 - .../3rdparty/pdfium/pdfium/fxjs/cjs_console.h | 43 - .../pdfium/pdfium/fxjs/cjs_delaydata.cpp | 12 - .../pdfium/pdfium/fxjs/cjs_delaydata.h | 34 - .../pdfium/pdfium/fxjs/cjs_display.cpp | 22 - .../3rdparty/pdfium/pdfium/fxjs/cjs_display.h | 23 - .../pdfium/pdfium/fxjs/cjs_document.cpp | 1439 - .../pdfium/pdfium/fxjs/cjs_document.h | 321 - .../3rdparty/pdfium/pdfium/fxjs/cjs_event.cpp | 323 - .../3rdparty/pdfium/pdfium/fxjs/cjs_event.h | 108 - .../pdfium/pdfium/fxjs/cjs_event_context.cpp | 325 - .../pdfium/pdfium/fxjs/cjs_event_context.h | 136 - .../pdfium/fxjs/cjs_event_context_stub.cpp | 12 - .../pdfium/fxjs/cjs_event_context_stub.h | 116 - .../pdfium/pdfium/fxjs/cjs_eventrecorder.cpp | 558 - .../pdfium/pdfium/fxjs/cjs_eventrecorder.h | 201 - .../3rdparty/pdfium/pdfium/fxjs/cjs_field.cpp | 2658 - .../3rdparty/pdfium/pdfium/fxjs/cjs_field.h | 375 - .../3rdparty/pdfium/pdfium/fxjs/cjs_font.cpp | 31 - .../3rdparty/pdfium/pdfium/fxjs/cjs_font.h | 23 - .../pdfium/pdfium/fxjs/cjs_global.cpp | 565 - .../3rdparty/pdfium/pdfium/fxjs/cjs_global.h | 98 - .../pdfium/pdfium/fxjs/cjs_globalarrays.cpp | 77 - .../pdfium/pdfium/fxjs/cjs_globalarrays.h | 17 - .../pdfium/pdfium/fxjs/cjs_globalconsts.cpp | 48 - .../pdfium/pdfium/fxjs/cjs_globalconsts.h | 17 - .../pdfium/pdfium/fxjs/cjs_highlight.cpp | 22 - .../pdfium/pdfium/fxjs/cjs_highlight.h | 23 - .../3rdparty/pdfium/pdfium/fxjs/cjs_icon.cpp | 38 - .../3rdparty/pdfium/pdfium/fxjs/cjs_icon.h | 37 - .../pdfium/pdfium/fxjs/cjs_object.cpp | 45 - .../3rdparty/pdfium/pdfium/fxjs/cjs_object.h | 61 - .../pdfium/pdfium/fxjs/cjs_position.cpp | 25 - .../pdfium/pdfium/fxjs/cjs_position.h | 23 - .../pdfium/pdfium/fxjs/cjs_publicmethods.cpp | 1453 - .../pdfium/pdfium/fxjs/cjs_publicmethods.h | 151 - .../pdfium/pdfium/fxjs/cjs_result.cpp | 19 - .../3rdparty/pdfium/pdfium/fxjs/cjs_result.h | 57 - .../pdfium/pdfium/fxjs/cjs_runtime.cpp | 233 - .../3rdparty/pdfium/pdfium/fxjs/cjs_runtime.h | 72 - .../pdfium/pdfium/fxjs/cjs_runtimestub.cpp | 35 - .../pdfium/pdfium/fxjs/cjs_runtimestub.h | 38 - .../pdfium/pdfium/fxjs/cjs_scalehow.cpp | 20 - .../pdfium/pdfium/fxjs/cjs_scalehow.h | 23 - .../pdfium/pdfium/fxjs/cjs_scalewhen.cpp | 22 - .../pdfium/pdfium/fxjs/cjs_scalewhen.h | 23 - .../3rdparty/pdfium/pdfium/fxjs/cjs_style.cpp | 23 - .../3rdparty/pdfium/pdfium/fxjs/cjs_style.h | 23 - .../pdfium/pdfium/fxjs/cjs_timerobj.cpp | 32 - .../pdfium/pdfium/fxjs/cjs_timerobj.h | 31 - .../3rdparty/pdfium/pdfium/fxjs/cjs_util.cpp | 475 - .../3rdparty/pdfium/pdfium/fxjs/cjs_util.h | 65 - .../pdfium/pdfium/fxjs/cjs_zoomtype.cpp | 25 - .../pdfium/pdfium/fxjs/cjs_zoomtype.h | 23 - .../pdfium/pdfium/fxjs/fx_date_helpers.cpp | 552 - .../pdfium/pdfium/fxjs/fx_date_helpers.h | 68 - .../src/3rdparty/pdfium/pdfium/fxjs/fxv8.cpp | 225 - .../src/3rdparty/pdfium/pdfium/fxjs/fxv8.h | 71 - .../pdfium/pdfium/fxjs/global_timer.cpp | 92 - .../pdfium/pdfium/fxjs/global_timer.h | 50 - .../pdfium/pdfium/fxjs/ijs_event_context.h | 132 - .../pdfium/pdfium/fxjs/ijs_runtime.cpp | 60 - .../3rdparty/pdfium/pdfium/fxjs/ijs_runtime.h | 64 - .../3rdparty/pdfium/pdfium/fxjs/js_define.cpp | 95 - .../3rdparty/pdfium/pdfium/fxjs/js_define.h | 160 - .../pdfium/pdfium/fxjs/js_resources.cpp | 108 - .../pdfium/pdfium/fxjs/js_resources.h | 45 - .../pdfium/pdfium/public/cpp/fpdf_deleters.h | 86 - .../pdfium/pdfium/public/cpp/fpdf_scopers.h | 67 - .../pdfium/pdfium/public/fpdf_annot.h | 828 - .../pdfium/pdfium/public/fpdf_attachment.h | 179 - .../pdfium/pdfium/public/fpdf_catalog.h | 34 - .../pdfium/pdfium/public/fpdf_dataavail.h | 205 - .../3rdparty/pdfium/pdfium/public/fpdf_doc.h | 415 - .../3rdparty/pdfium/pdfium/public/fpdf_edit.h | 1251 - .../3rdparty/pdfium/pdfium/public/fpdf_ext.h | 119 - .../pdfium/pdfium/public/fpdf_flatten.h | 44 - .../pdfium/pdfium/public/fpdf_formfill.h | 1974 - .../pdfium/pdfium/public/fpdf_fwlevent.h | 207 - .../pdfium/pdfium/public/fpdf_javascript.h | 77 - .../3rdparty/pdfium/pdfium/public/fpdf_ppo.h | 68 - .../pdfium/pdfium/public/fpdf_progressive.h | 159 - .../3rdparty/pdfium/pdfium/public/fpdf_save.h | 85 - .../pdfium/pdfium/public/fpdf_searchex.h | 39 - .../pdfium/pdfium/public/fpdf_signature.h | 144 - .../pdfium/pdfium/public/fpdf_structtree.h | 220 - .../pdfium/pdfium/public/fpdf_sysfontinfo.h | 313 - .../3rdparty/pdfium/pdfium/public/fpdf_text.h | 636 - .../pdfium/pdfium/public/fpdf_thumbnail.h | 59 - .../pdfium/pdfium/public/fpdf_transformpage.h | 308 - .../3rdparty/pdfium/pdfium/public/fpdfview.h | 1428 - .../pdfium/third_party/agg23/README.pdfium | 26 - .../pdfium/third_party/agg23/agg_array.h | 502 - .../pdfium/third_party/agg23/agg_basics.h | 277 - .../third_party/agg23/agg_clip_liang_barsky.h | 136 - .../pdfium/third_party/agg23/agg_color_gray.h | 50 - .../agg23/agg_conv_adaptor_vcgen.h | 138 - .../pdfium/third_party/agg23/agg_conv_dash.h | 61 - .../third_party/agg23/agg_conv_stroke.h | 110 - .../pdfium/third_party/agg23/agg_curves.cpp | 109 - .../pdfium/third_party/agg23/agg_curves.h | 188 - .../pdfium/third_party/agg23/agg_math.h | 63 - .../third_party/agg23/agg_math_stroke.h | 273 - .../third_party/agg23/agg_path_storage.cpp | 97 - .../third_party/agg23/agg_path_storage.h | 172 - .../third_party/agg23/agg_pixfmt_gray.h | 177 - .../agg23/agg_rasterizer_scanline_aa.cpp | 517 - .../agg23/agg_rasterizer_scanline_aa.h | 498 - .../third_party/agg23/agg_render_scanlines.h | 50 - .../third_party/agg23/agg_renderer_base.h | 163 - .../third_party/agg23/agg_renderer_scanline.h | 93 - .../third_party/agg23/agg_rendering_buffer.h | 145 - .../pdfium/third_party/agg23/agg_scanline_u.h | 150 - .../third_party/agg23/agg_shorten_path.h | 57 - .../third_party/agg23/agg_vcgen_dash.cpp | 177 - .../pdfium/third_party/agg23/agg_vcgen_dash.h | 75 - .../third_party/agg23/agg_vcgen_stroke.cpp | 214 - .../third_party/agg23/agg_vcgen_stroke.h | 120 - .../third_party/agg23/agg_vertex_sequence.h | 100 - .../base/allocator/partition_allocator/OWNERS | 8 - .../address_space_randomization.cc | 70 - .../address_space_randomization.h | 203 - .../base/allocator/partition_allocator/oom.h | 40 - .../partition_allocator/oom_callback.cc | 29 - .../partition_allocator/oom_callback.h | 26 - .../partition_allocator/page_allocator.cc | 259 - .../partition_allocator/page_allocator.h | 197 - .../page_allocator_constants.h | 66 - .../page_allocator_internal.h | 20 - .../page_allocator_internals_posix.h | 218 - .../page_allocator_internals_win.h | 145 - .../partition_allocator/partition_alloc.cc | 852 - .../partition_allocator/partition_alloc.h | 532 - .../partition_alloc_constants.h | 200 - .../partition_allocator/partition_bucket.cc | 566 - .../partition_allocator/partition_bucket.h | 130 - .../partition_allocator/partition_cookie.h | 72 - .../partition_direct_map_extent.h | 35 - .../partition_freelist_entry.h | 73 - .../partition_allocator/partition_oom.cc | 26 - .../partition_allocator/partition_oom.h | 30 - .../partition_allocator/partition_page.cc | 168 - .../partition_allocator/partition_page.h | 316 - .../partition_root_base.cc | 42 - .../partition_allocator/partition_root_base.h | 201 - .../allocator/partition_allocator/random.cc | 96 - .../allocator/partition_allocator/random.h | 29 - .../partition_allocator/spin_lock.cc | 109 - .../allocator/partition_allocator/spin_lock.h | 52 - .../pdfium/third_party/base/base_export.h | 3 - .../pdfium/pdfium/third_party/base/bits.h | 187 - .../third_party/base/compiler_specific.h | 183 - .../third_party/base/containers/adapters.h | 54 - .../pdfium/third_party/base/debug/alias.cc | 30 - .../pdfium/third_party/base/debug/alias.h | 34 - .../pdfium/third_party/base/immediate_crash.h | 168 - .../pdfium/pdfium/third_party/base/logging.h | 42 - .../third_party/base/memory/aligned_memory.cc | 50 - .../third_party/base/memory/aligned_memory.h | 84 - .../pdfium/third_party/base/no_destructor.h | 100 - .../pdfium/third_party/base/numerics/OWNERS | 3 - .../third_party/base/numerics/checked_math.h | 395 - .../base/numerics/checked_math_impl.h | 579 - .../third_party/base/numerics/clamped_math.h | 266 - .../base/numerics/clamped_math_impl.h | 343 - .../base/numerics/safe_conversions.h | 360 - .../base/numerics/safe_conversions_arm_impl.h | 53 - .../base/numerics/safe_conversions_impl.h | 853 - .../third_party/base/numerics/safe_math.h | 12 - .../base/numerics/safe_math_arm_impl.h | 124 - .../base/numerics/safe_math_clang_gcc_impl.h | 159 - .../base/numerics/safe_math_shared_impl.h | 242 - .../pdfium/pdfium/third_party/base/optional.h | 958 - .../pdfium/pdfium/third_party/base/ptr_util.h | 22 - .../pdfium/pdfium/third_party/base/span.h | 352 - .../pdfium/pdfium/third_party/base/stl_util.h | 169 - .../pdfium/third_party/base/sys_byteorder.h | 141 - .../pdfium/third_party/base/template_util.h | 177 - .../third_party/base/test/scoped_locale.cc | 25 - .../third_party/base/test/scoped_locale.h | 30 - .../include/freetype-custom-config/ftmodule.h | 30 - .../include/freetype-custom-config/ftoption.h | 966 - .../third_party/freetype/include/pstables.h | 4225 - .../third_party/freetype/src/devel/ft2build.h | 41 - .../third_party/freetype/src/devel/ftoption.h | 998 - .../freetype/src/src/base/ftadvanc.c | 174 - .../freetype/src/src/base/ftbbox.c | 530 - .../third_party/freetype/src/src/base/ftbdf.c | 90 - .../freetype/src/src/base/ftcalc.c | 1088 - .../third_party/freetype/src/src/base/ftcid.c | 117 - .../freetype/src/src/base/ftcolor.c | 156 - .../freetype/src/src/base/ftdbgmem.c | 1001 - .../freetype/src/src/base/fterrors.c | 45 - .../freetype/src/src/base/ftfntfmt.c | 54 - .../freetype/src/src/base/ftgasp.c | 60 - .../freetype/src/src/base/ftgloadr.c | 376 - .../freetype/src/src/base/ftgxval.c | 141 - .../freetype/src/src/base/fthash.c | 338 - .../freetype/src/src/base/ftlcdfil.c | 437 - .../third_party/freetype/src/src/base/ftmac.c | 1089 - .../freetype/src/src/base/ftobjs.c | 5551 -- .../freetype/src/src/base/ftotval.c | 90 - .../freetype/src/src/base/ftoutln.c | 1110 - .../freetype/src/src/base/ftpatent.c | 50 - .../third_party/freetype/src/src/base/ftpfr.c | 152 - .../freetype/src/src/base/ftpsprop.c | 284 - .../freetype/src/src/base/ftrfork.c | 942 - .../freetype/src/src/base/ftsnames.c | 185 - .../freetype/src/src/base/ftstream.c | 867 - .../freetype/src/src/base/ftstroke.c | 2427 - .../freetype/src/src/base/ftsynth.c | 162 - .../freetype/src/src/base/fttrigon.c | 517 - .../freetype/src/src/base/ftutil.c | 442 - .../freetype/src/src/base/ftver.rc | 61 - .../freetype/src/src/base/ftwinfnt.c | 52 - .../third_party/freetype/src/src/base/md5.c | 291 - .../third_party/freetype/src/src/base/md5.h | 45 - .../freetype/src/src/base/rules.mk | 108 - .../freetype/src/src/bzip2/ftbzip2.c | 520 - .../freetype/src/src/bzip2/rules.mk | 64 - .../freetype/src/src/cache/ftcache.c | 31 - .../freetype/src/src/cache/ftcbasic.c | 633 - .../freetype/src/src/cache/ftccache.c | 620 - .../freetype/src/src/cache/ftccache.h | 352 - .../freetype/src/src/cache/ftccback.h | 93 - .../freetype/src/src/cache/ftccmap.c | 326 - .../freetype/src/src/cache/ftcerror.h | 42 - .../freetype/src/src/cache/ftcglyph.c | 218 - .../freetype/src/src/cache/ftcglyph.h | 328 - .../freetype/src/src/cache/ftcimage.c | 163 - .../freetype/src/src/cache/ftcimage.h | 106 - .../freetype/src/src/cache/ftcmanag.c | 699 - .../freetype/src/src/cache/ftcmanag.h | 175 - .../freetype/src/src/cache/ftcmru.c | 356 - .../freetype/src/src/cache/ftcmru.h | 248 - .../freetype/src/src/cache/ftcsbits.c | 422 - .../freetype/src/src/cache/ftcsbits.h | 102 - .../freetype/src/src/cache/rules.mk | 85 - .../freetype/src/src/cff/cffcmap.c | 231 - .../freetype/src/src/cff/cffcmap.h | 67 - .../freetype/src/src/cff/cffdrivr.c | 1164 - .../freetype/src/src/cff/cffdrivr.h | 35 - .../freetype/src/src/cff/cfferrs.h | 42 - .../freetype/src/src/cff/cffgload.c | 682 - .../freetype/src/src/cff/cffgload.h | 62 - .../freetype/src/src/cff/cffload.c | 2577 - .../freetype/src/src/cff/cffload.h | 124 - .../freetype/src/src/cff/cffobjs.h | 84 - .../freetype/src/src/cff/cffparse.c | 1619 - .../freetype/src/src/cff/cffparse.h | 148 - .../freetype/src/src/cff/cfftoken.h | 150 - .../freetype/src/src/cff/module.mk | 23 - .../third_party/freetype/src/src/cff/rules.mk | 75 - .../freetype/src/src/cid/ciderrs.h | 41 - .../freetype/src/src/cid/cidgload.c | 529 - .../freetype/src/src/cid/cidgload.h | 50 - .../freetype/src/src/cid/cidload.c | 941 - .../freetype/src/src/cid/cidload.h | 52 - .../freetype/src/src/cid/cidobjs.c | 534 - .../freetype/src/src/cid/cidobjs.h | 154 - .../freetype/src/src/cid/cidparse.c | 276 - .../freetype/src/src/cid/cidparse.h | 130 - .../freetype/src/src/cid/cidriver.c | 255 - .../freetype/src/src/cid/cidriver.h | 36 - .../freetype/src/src/cid/cidtoken.h | 115 - .../freetype/src/src/gxvalid/README | 532 - .../freetype/src/src/gxvalid/gxvalid.c | 46 - .../freetype/src/src/gxvalid/gxvalid.h | 107 - .../freetype/src/src/gxvalid/gxvbsln.c | 334 - .../freetype/src/src/gxvalid/gxvcommn.c | 1746 - .../freetype/src/src/gxvalid/gxvcommn.h | 581 - .../freetype/src/src/gxvalid/gxverror.h | 51 - .../freetype/src/src/gxvalid/gxvfeat.c | 339 - .../freetype/src/src/gxvalid/gxvfeat.h | 173 - .../freetype/src/src/gxvalid/gxvfgen.c | 483 - .../freetype/src/src/gxvalid/gxvjust.c | 721 - .../freetype/src/src/gxvalid/gxvkern.c | 920 - .../freetype/src/src/gxvalid/gxvlcar.c | 224 - .../freetype/src/src/gxvalid/gxvmod.c | 284 - .../freetype/src/src/gxvalid/gxvmod.h | 46 - .../freetype/src/src/gxvalid/gxvmort.c | 301 - .../freetype/src/src/gxvalid/gxvmort.h | 99 - .../freetype/src/src/gxvalid/gxvmort0.c | 152 - .../freetype/src/src/gxvalid/gxvmort1.c | 260 - .../freetype/src/src/gxvalid/gxvmort2.c | 312 - .../freetype/src/src/gxvalid/gxvmort4.c | 126 - .../freetype/src/src/gxvalid/gxvmort5.c | 234 - .../freetype/src/src/gxvalid/gxvmorx.c | 199 - .../freetype/src/src/gxvalid/gxvmorx.h | 73 - .../freetype/src/src/gxvalid/gxvmorx0.c | 112 - .../freetype/src/src/gxvalid/gxvmorx1.c | 278 - .../freetype/src/src/gxvalid/gxvmorx2.c | 331 - .../freetype/src/src/gxvalid/gxvmorx4.c | 56 - .../freetype/src/src/gxvalid/gxvmorx5.c | 226 - .../freetype/src/src/gxvalid/gxvopbd.c | 218 - .../freetype/src/src/gxvalid/gxvprop.c | 330 - .../freetype/src/src/gxvalid/gxvtrak.c | 288 - .../freetype/src/src/gxvalid/module.mk | 23 - .../freetype/src/src/gxvalid/rules.mk | 98 - .../freetype/src/src/gzip/adler32.c | 48 - .../freetype/src/src/gzip/ftgzip.c | 821 - .../freetype/src/src/gzip/ftzconf.h | 284 - .../freetype/src/src/gzip/infblock.c | 392 - .../freetype/src/src/gzip/infblock.h | 36 - .../freetype/src/src/gzip/infcodes.c | 254 - .../freetype/src/src/gzip/infcodes.h | 31 - .../freetype/src/src/gzip/inffixed.h | 151 - .../freetype/src/src/gzip/inflate.c | 283 - .../freetype/src/src/gzip/inftrees.c | 468 - .../freetype/src/src/gzip/inftrees.h | 63 - .../freetype/src/src/gzip/infutil.c | 86 - .../freetype/src/src/gzip/infutil.h | 98 - .../freetype/src/src/gzip/rules.mk | 83 - .../third_party/freetype/src/src/gzip/zlib.h | 830 - .../third_party/freetype/src/src/gzip/zutil.c | 181 - .../third_party/freetype/src/src/gzip/zutil.h | 215 - .../third_party/freetype/src/src/lzw/ftlzw.c | 415 - .../freetype/src/src/lzw/ftzopen.c | 424 - .../freetype/src/src/lzw/ftzopen.h | 174 - .../third_party/freetype/src/src/lzw/rules.mk | 72 - .../freetype/src/src/otvalid/module.mk | 23 - .../freetype/src/src/otvalid/otvalid.c | 31 - .../freetype/src/src/otvalid/otvalid.h | 77 - .../freetype/src/src/otvalid/otvbase.c | 345 - .../freetype/src/src/otvalid/otvcommn.c | 1099 - .../freetype/src/src/otvalid/otvcommn.h | 466 - .../freetype/src/src/otvalid/otverror.h | 42 - .../freetype/src/src/otvalid/otvgdef.c | 303 - .../freetype/src/src/otvalid/otvgpos.c | 1051 - .../freetype/src/src/otvalid/otvgpos.h | 36 - .../freetype/src/src/otvalid/otvgsub.c | 617 - .../freetype/src/src/otvalid/otvjstf.c | 259 - .../freetype/src/src/otvalid/otvmath.c | 453 - .../freetype/src/src/otvalid/otvmod.c | 281 - .../freetype/src/src/otvalid/otvmod.h | 38 - .../freetype/src/src/otvalid/rules.mk | 81 - .../freetype/src/src/psaux/afmparse.c | 986 - .../freetype/src/src/psaux/afmparse.h | 88 - .../freetype/src/src/psaux/cffdecode.c | 2422 - .../freetype/src/src/psaux/cffdecode.h | 63 - .../freetype/src/src/psaux/module.mk | 23 - .../freetype/src/src/psaux/psarrst.c | 241 - .../freetype/src/src/psaux/psarrst.h | 100 - .../freetype/src/src/psaux/psaux.c | 40 - .../freetype/src/src/psaux/psauxerr.h | 42 - .../freetype/src/src/psaux/psauxmod.c | 190 - .../freetype/src/src/psaux/psauxmod.h | 60 - .../freetype/src/src/psaux/psblues.c | 582 - .../freetype/src/src/psaux/psblues.h | 185 - .../freetype/src/src/psaux/psconv.c | 610 - .../freetype/src/src/psaux/psconv.h | 70 - .../freetype/src/src/psaux/pserror.c | 52 - .../freetype/src/src/psaux/pserror.h | 120 - .../freetype/src/src/psaux/psfixed.h | 94 - .../freetype/src/src/psaux/psfont.c | 566 - .../freetype/src/src/psaux/psfont.h | 134 - .../third_party/freetype/src/src/psaux/psft.c | 897 - .../third_party/freetype/src/src/psaux/psft.h | 167 - .../freetype/src/src/psaux/psglue.h | 144 - .../freetype/src/src/psaux/pshints.c | 1936 - .../freetype/src/src/psaux/pshints.h | 288 - .../freetype/src/src/psaux/psintrp.c | 3054 - .../freetype/src/src/psaux/psintrp.h | 83 - .../freetype/src/src/psaux/psobjs.c | 2598 - .../freetype/src/src/psaux/psobjs.h | 312 - .../freetype/src/src/psaux/psread.c | 112 - .../freetype/src/src/psaux/psread.h | 68 - .../freetype/src/src/psaux/psstack.c | 331 - .../freetype/src/src/psaux/psstack.h | 122 - .../freetype/src/src/psaux/pstypes.h | 77 - .../freetype/src/src/psaux/rules.mk | 89 - .../freetype/src/src/psaux/t1cmap.c | 374 - .../freetype/src/src/psaux/t1cmap.h | 104 - .../freetype/src/src/psaux/t1decode.c | 2154 - .../freetype/src/src/psaux/t1decode.h | 73 - .../freetype/src/src/pshinter/module.mk | 23 - .../freetype/src/src/pshinter/pshalgo.c | 2194 - .../freetype/src/src/pshinter/pshalgo.h | 241 - .../freetype/src/src/pshinter/pshglob.c | 795 - .../freetype/src/src/pshinter/pshglob.h | 196 - .../freetype/src/src/pshinter/pshmod.c | 120 - .../freetype/src/src/pshinter/pshmod.h | 38 - .../freetype/src/src/pshinter/pshnterr.h | 41 - .../freetype/src/src/pshinter/pshrec.c | 1219 - .../freetype/src/src/pshinter/pshrec.h | 171 - .../freetype/src/src/pshinter/rules.mk | 75 - .../freetype/src/src/psnames/module.mk | 23 - .../freetype/src/src/psnames/psmodule.h | 37 - .../freetype/src/src/psnames/psnamerr.h | 42 - .../freetype/src/src/psnames/psnames.c | 24 - .../freetype/src/src/raster/ftmisc.h | 142 - .../freetype/src/src/raster/ftraster.c | 3327 - .../freetype/src/src/raster/ftraster.h | 47 - .../freetype/src/src/raster/ftrend1.c | 206 - .../freetype/src/src/raster/ftrend1.h | 37 - .../freetype/src/src/raster/module.mk | 23 - .../freetype/src/src/raster/rasterrs.h | 42 - .../freetype/src/src/raster/rules.mk | 72 - .../freetype/src/src/sfnt/module.mk | 23 - .../freetype/src/src/sfnt/pngshim.c | 461 - .../freetype/src/src/sfnt/pngshim.h | 50 - .../freetype/src/src/sfnt/rules.mk | 85 - .../freetype/src/src/sfnt/sfdriver.c | 1318 - .../freetype/src/src/sfnt/sfdriver.h | 35 - .../freetype/src/src/sfnt/sferrors.h | 41 - .../third_party/freetype/src/src/sfnt/sfnt.c | 39 - .../freetype/src/src/sfnt/sfobjs.c | 1475 - .../freetype/src/src/sfnt/sfobjs.h | 58 - .../freetype/src/src/sfnt/sfwoff.c | 437 - .../freetype/src/src/sfnt/sfwoff.h | 40 - .../freetype/src/src/sfnt/sfwoff2.c | 2337 - .../freetype/src/src/sfnt/sfwoff2.h | 75 - .../third_party/freetype/src/src/sfnt/ttbdf.c | 256 - .../third_party/freetype/src/src/sfnt/ttbdf.h | 49 - .../freetype/src/src/sfnt/ttcmap.c | 3886 - .../freetype/src/src/sfnt/ttcmap.h | 126 - .../freetype/src/src/sfnt/ttcmapc.h | 56 - .../freetype/src/src/sfnt/ttcolr.c | 450 - .../freetype/src/src/sfnt/ttcolr.h | 57 - .../freetype/src/src/sfnt/ttcpal.c | 310 - .../freetype/src/src/sfnt/ttcpal.h | 48 - .../freetype/src/src/sfnt/ttkern.c | 310 - .../freetype/src/src/sfnt/ttkern.h | 51 - .../freetype/src/src/sfnt/ttload.c | 1465 - .../freetype/src/src/sfnt/ttload.h | 111 - .../third_party/freetype/src/src/sfnt/ttmtx.c | 338 - .../third_party/freetype/src/src/sfnt/ttmtx.h | 54 - .../freetype/src/src/sfnt/ttpost.c | 577 - .../freetype/src/src/sfnt/ttpost.h | 46 - .../freetype/src/src/sfnt/ttsbit.c | 1681 - .../freetype/src/src/sfnt/ttsbit.h | 62 - .../freetype/src/src/sfnt/woff2tags.c | 109 - .../freetype/src/src/sfnt/woff2tags.h | 39 - .../freetype/src/src/smooth/ftgrays.c | 1947 - .../freetype/src/src/smooth/ftgrays.h | 57 - .../freetype/src/src/smooth/ftsmerrs.h | 42 - .../freetype/src/src/smooth/ftsmooth.h | 37 - .../freetype/src/src/smooth/module.mk | 23 - .../freetype/src/src/smooth/rules.mk | 73 - .../freetype/src/src/smooth/smooth.c | 25 - .../freetype/src/src/tools/afblue.pl | 551 - .../freetype/src/src/tools/apinames.c | 514 - .../freetype/src/src/tools/chktrcmp.py | 114 - .../freetype/src/src/tools/cordic.py | 33 - .../freetype/src/src/tools/ftrandom/README | 69 - .../src/src/tools/ftrandom/ftrandom.c | 720 - .../freetype/src/src/tools/glnames.py | 5540 -- .../freetype/src/src/tools/no-copyright | 65 - .../freetype/src/src/tools/test_afm.c | 156 - .../freetype/src/src/tools/test_bbox.c | 187 - .../freetype/src/src/tools/test_trig.c | 257 - .../freetype/src/src/tools/update-copyright | 14 - .../src/src/tools/update-copyright-year | 138 - .../freetype/src/src/truetype/module.mk | 23 - .../freetype/src/src/truetype/rules.mk | 76 - .../freetype/src/src/truetype/ttdriver.c | 663 - .../freetype/src/src/truetype/ttdriver.h | 35 - .../freetype/src/src/truetype/tterrors.h | 42 - .../freetype/src/src/truetype/ttgload.c | 3026 - .../freetype/src/src/truetype/ttgload.h | 61 - .../freetype/src/src/truetype/ttgxvar.c | 4327 - .../freetype/src/src/truetype/ttgxvar.h | 453 - .../freetype/src/src/truetype/ttinterp.c | 8672 -- .../freetype/src/src/truetype/ttinterp.h | 540 - .../freetype/src/src/truetype/ttobjs.c | 1476 - .../freetype/src/src/truetype/ttobjs.h | 424 - .../freetype/src/src/truetype/ttpload.c | 651 - .../freetype/src/src/truetype/ttpload.h | 74 - .../freetype/src/src/truetype/ttsubpix.c | 1013 - .../freetype/src/src/truetype/ttsubpix.h | 110 - .../freetype/src/src/type1/module.mk | 23 - .../freetype/src/src/type1/rules.mk | 76 - .../freetype/src/src/type1/t1afm.c | 414 - .../freetype/src/src/type1/t1afm.h | 53 - .../freetype/src/src/type1/t1driver.c | 797 - .../freetype/src/src/type1/t1driver.h | 35 - .../freetype/src/src/type1/t1errors.h | 41 - .../freetype/src/src/type1/t1gload.c | 606 - .../freetype/src/src/type1/t1gload.h | 52 - .../freetype/src/src/type1/t1load.c | 2729 - .../freetype/src/src/type1/t1load.h | 126 - .../freetype/src/src/type1/t1objs.c | 653 - .../freetype/src/src/type1/t1objs.h | 160 - .../freetype/src/src/type1/t1parse.c | 524 - .../freetype/src/src/type1/t1parse.h | 137 - .../freetype/src/src/type1/t1tokens.h | 143 - .../skia_shared/SkFloatToDecimal.cpp | 182 - .../skia_shared/SkFloatToDecimal.h | 40 - 3rdparty/deepin-pdfium/src/dpdfannot.cpp | 266 - 3rdparty/deepin-pdfium/src/dpdfdoc.cpp | 486 - 3rdparty/deepin-pdfium/src/dpdfglobal.cpp | 73 - 3rdparty/deepin-pdfium/src/dpdflog.h | 14 - 3rdparty/deepin-pdfium/src/dpdfpage.cpp | 1177 - 3rdparty/deepin-pdfium/src/src.pro | 58 - CMakeLists.txt | 11 +- LICENSES/BSD-3-Clause.txt | 11 - batch-print/CMakeLists.txt | 14 +- debian/control | 1 + deepin_reader.pro | 1 - linglong.yaml | 10 +- reader/CMakeLists.txt | 14 +- reader/src.pri | 6 +- tests/CMakeLists.txt | 21 +- tests/ofd-model/CMakeLists.txt | 2 +- tests/test-prj-running.sh | 1 - tests/tests.pro | 1 - 1366 files changed, 32 insertions(+), 480760 deletions(-) delete mode 100644 3rdparty/deepin-pdfium/CMakeLists.txt delete mode 100644 3rdparty/deepin-pdfium/LICENSE delete mode 100644 3rdparty/deepin-pdfium/deepin-pdfium.pc.in delete mode 100644 3rdparty/deepin-pdfium/deepin-pdfium.pro delete mode 100644 3rdparty/deepin-pdfium/include/dpdfannot.h delete mode 100755 3rdparty/deepin-pdfium/include/dpdfdoc.h delete mode 100755 3rdparty/deepin-pdfium/include/dpdfglobal.h delete mode 100755 3rdparty/deepin-pdfium/include/dpdfpage.h delete mode 100644 3rdparty/deepin-pdfium/misc/deepin-pdfiumConfig.cmake.in delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/CMakeLists.txt delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/core.cmake delete mode 100755 3rdparty/deepin-pdfium/src/3rdparty/pdfium/core.pri delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/fpdfsdk.cmake delete mode 100755 3rdparty/deepin-pdfium/src/3rdparty/pdfium/fpdfsdk.pri delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_agg.cmake delete mode 100755 3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_agg.pri delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_base.cmake delete mode 100755 3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_base.pri delete mode 100755 3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_freetype.pri delete mode 100755 3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_lcms2.pri delete mode 100755 3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_libopenjpeg.pri delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_skia.cmake delete mode 100755 3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_skia.pri delete mode 100755 3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_zlib.pri delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/fxjs.cmake delete mode 100755 3rdparty/deepin-pdfium/src/3rdparty/pdfium/fxjs.pri delete mode 100755 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium.pri delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/LICENSE delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/OWNERS delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/address_space_randomization.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/address_space_randomization.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/oom.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/oom_callback.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/oom_callback.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator_constants.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator_internal.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator_internals_posix.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator_internals_win.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_alloc.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_alloc.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_alloc_constants.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_bucket.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_bucket.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_cookie.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_direct_map_extent.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_freelist_entry.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_oom.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_oom.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_page.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_page.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_root_base.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_root_base.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/random.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/random.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/spin_lock.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/spin_lock.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/base_export.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/bits.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/compiler_specific.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/containers/adapters.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/debug/alias.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/debug/alias.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/immediate_crash.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/logging.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/memory/aligned_memory.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/memory/aligned_memory.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/no_destructor.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/numerics/OWNERS delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/numerics/checked_math.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/numerics/checked_math_impl.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/numerics/clamped_math.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/numerics/clamped_math_impl.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/numerics/safe_conversions.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/numerics/safe_conversions_arm_impl.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/numerics/safe_conversions_impl.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/numerics/safe_math.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/numerics/safe_math_arm_impl.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/numerics/safe_math_clang_gcc_impl.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/numerics/safe_math_shared_impl.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/optional.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/ptr_util.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/span.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/stl_util.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/sys_byteorder.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/template_util.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/test/scoped_locale.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/test/scoped_locale.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/build/build_config.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/constants/access_permissions.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/constants/annotation_common.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/constants/annotation_flags.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/constants/form_fields.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/constants/form_flags.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/constants/page_object.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/constants/stream_dict_common.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/constants/transparency.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fdrm/fx_crypt.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fdrm/fx_crypt.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fdrm/fx_crypt_aes.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fdrm/fx_crypt_sha.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/CNS1/B5pc-H_0.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/CNS1/B5pc-V_0.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/CNS1/CNS-EUC-H_0.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/CNS1/CNS-EUC-V_0.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/CNS1/ETen-B5-H_0.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/CNS1/ETen-B5-V_0.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/CNS1/ETenms-B5-H_0.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/CNS1/ETenms-B5-V_0.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/CNS1/HKscs-B5-H_5.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/CNS1/HKscs-B5-V_5.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/CNS1/UniCNS-UCS2-H_3.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/CNS1/UniCNS-UCS2-V_3.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/CNS1/UniCNS-UTF16-H_0.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/CNS1/cmaps_cns1.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/CNS1/cmaps_cns1.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/GB1/Adobe-GB1-UCS2_5.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/GB1/GB-EUC-H_0.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/GB1/GB-EUC-V_0.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/GB1/GBK-EUC-H_2.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/GB1/GBK-EUC-V_2.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/GB1/GBK2K-H_5.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/GB1/GBK2K-V_5.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/GB1/GBKp-EUC-H_2.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/GB1/GBKp-EUC-V_2.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/GB1/GBpc-EUC-H_0.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/GB1/GBpc-EUC-V_0.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/GB1/UniGB-UCS2-H_4.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/GB1/UniGB-UCS2-V_4.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/GB1/cmaps_gb1.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/GB1/cmaps_gb1.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/83pv-RKSJ-H_1.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/90ms-RKSJ-H_2.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/90ms-RKSJ-V_2.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/90msp-RKSJ-H_2.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/90msp-RKSJ-V_2.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/90pv-RKSJ-H_1.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/Add-RKSJ-H_1.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/Add-RKSJ-V_1.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/EUC-H_1.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/EUC-V_1.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/Ext-RKSJ-H_2.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/Ext-RKSJ-V_2.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/H_1.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-H_4.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-V_4.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/V_1.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/cmaps_japan1.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Japan1/cmaps_japan1.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Korea1/KSC-EUC-H_0.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Korea1/KSC-EUC-V_0.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Korea1/KSCms-UHC-HW-H_1.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Korea1/KSCms-UHC-HW-V_1.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Korea1/KSCms-UHC-H_1.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Korea1/KSCms-UHC-V_1.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Korea1/KSCpc-EUC-H_0.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Korea1/UniKS-UCS2-H_1.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Korea1/UniKS-UCS2-V_1.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Korea1/UniKS-UTF16-H_0.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Korea1/cmaps_korea1.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/Korea1/cmaps_korea1.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/fpdf_cmaps.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/cmaps/fpdf_cmaps.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/edit/cpdf_contentstream_write_utils.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/edit/cpdf_contentstream_write_utils.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/edit/cpdf_creator.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/edit/cpdf_creator.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/edit/cpdf_pagecontentgenerator.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/edit/cpdf_pagecontentmanager.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/edit/cpdf_pagecontentmanager.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/edit/cpdf_stringarchivestream.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/edit/cpdf_stringarchivestream.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cfx_cttgsubtable.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cfx_cttgsubtable.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cfx_stockfontarray.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cfx_stockfontarray.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_cid2unicodemap.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_cid2unicodemap.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_cidfont.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_cidfont.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_cmap.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_cmap.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_cmapmanager.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_cmapmanager.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_cmapparser.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_cmapparser.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_font.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_font.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_fontencoding.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_fontencoding.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_fontglobals.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_fontglobals.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_simplefont.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_simplefont.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_tounicodemap.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_tounicodemap.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_truetypefont.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_truetypefont.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_type1font.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_type1font.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_type3char.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_type3char.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_type3font.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/font/cpdf_type3font.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_allstates.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_allstates.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_annotcontext.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_annotcontext.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_clippath.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_clippath.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_color.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_color.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_colorspace.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_colorspace.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_colorstate.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_colorstate.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_contentmarkitem.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_contentmarkitem.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_contentmarks.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_contentmarks.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_contentparser.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_contentparser.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_devicecs.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_devicecs.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_dib.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_dib.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_docpagedata.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_docpagedata.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_expintfunc.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_expintfunc.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_form.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_form.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_formobject.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_formobject.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_function.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_function.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_generalstate.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_generalstate.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_graphicstates.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_graphicstates.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_iccprofile.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_iccprofile.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_image.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_image.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_imageobject.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_imageobject.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_meshstream.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_meshstream.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_occontext.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_occontext.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_page.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_page.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_pagemodule.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_pagemodule.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_pageobject.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_pageobject.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_pageobjectholder.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_pageobjectholder.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_path.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_path.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_pathobject.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_pathobject.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_pattern.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_pattern.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_patterncs.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_patterncs.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_psengine.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_psengine.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_psfunc.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_psfunc.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_sampledfunc.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_sampledfunc.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_shadingobject.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_shadingobject.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_shadingpattern.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_shadingpattern.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_stitchfunc.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_stitchfunc.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_streamcontentparser.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_streamcontentparser.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_streamparser.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_streamparser.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_textobject.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_textobject.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_textstate.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_textstate.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_tilingpattern.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_tilingpattern.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_transferfunc.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_transferfunc.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_transferfuncdib.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_transferfuncdib.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_transparency.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/cpdf_transparency.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/page/ipdf_page.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cfdf_document.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cfdf_document.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_array.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_array.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_boolean.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_boolean.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_cross_ref_avail.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_cross_ref_avail.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_cross_ref_table.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_cross_ref_table.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_crypto_handler.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_crypto_handler.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_data_avail.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_data_avail.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_dictionary.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_dictionary.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_document.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_document.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_encryptor.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_encryptor.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_flateencoder.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_flateencoder.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_hint_tables.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_hint_tables.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_indirect_object_holder.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_indirect_object_holder.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_linearized_header.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_linearized_header.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_name.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_name.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_null.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_null.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_number.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_number.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_object.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_object.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_object_avail.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_object_avail.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_object_stream.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_object_stream.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_object_walker.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_object_walker.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_page_object_avail.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_page_object_avail.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_parser.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_parser.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_read_validator.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_read_validator.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_reference.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_reference.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_security_handler.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_security_handler.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_simple_parser.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_simple_parser.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_stream.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_stream.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_stream_acc.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_stream_acc.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_string.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_string.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_syntax_parser.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/cpdf_syntax_parser.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/fpdf_parser_decode.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/fpdf_parser_decode.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/fpdf_parser_utility.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/parser/fpdf_parser_utility.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/charposlist.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/charposlist.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_devicebuffer.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_devicebuffer.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_docrenderdata.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_docrenderdata.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_imagecacheentry.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_imagecacheentry.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_imageloader.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_imageloader.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_imagerenderer.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_imagerenderer.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_pagerendercache.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_pagerendercache.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_pagerendercontext.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_pagerendercontext.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_progressiverenderer.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_progressiverenderer.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_rendercontext.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_rendercontext.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_renderoptions.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_renderoptions.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_rendershading.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_rendershading.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_renderstatus.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_renderstatus.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_rendertiling.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_rendertiling.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_scaledrenderbuffer.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_scaledrenderbuffer.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_textrenderer.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_textrenderer.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_type3cache.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_type3cache.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_type3glyphmap.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfapi/render/cpdf_type3glyphmap.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cba_fontmap.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cba_fontmap.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cline.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cline.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_aaction.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_aaction.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_action.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_action.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_annot.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_annot.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_annotlist.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_annotlist.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_apsettings.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_apsettings.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_bookmark.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_bookmark.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_bookmarktree.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_bookmarktree.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_color_utils.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_color_utils.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_defaultappearance.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_defaultappearance.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_dest.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_dest.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_filespec.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_filespec.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_formcontrol.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_formcontrol.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_formfield.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_formfield.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_icon.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_icon.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_iconfit.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_iconfit.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_interactiveform.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_interactiveform.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_link.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_link.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_linklist.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_linklist.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_metadata.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_metadata.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_nametree.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_nametree.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_numbertree.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_numbertree.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_pagelabel.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_pagelabel.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_structelement.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_structelement.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_structtree.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_structtree.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_variabletext.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_variabletext.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_viewerpreferences.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpdf_viewerpreferences.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpvt_floatrect.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpvt_fontmap.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpvt_fontmap.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpvt_generateap.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpvt_generateap.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpvt_line.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpvt_lineinfo.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpvt_word.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpvt_wordinfo.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpvt_wordinfo.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpvt_wordplace.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/cpvt_wordrange.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/csection.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/csection.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/ctypeset.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/ctypeset.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdfdoc/ipvt_fontmap.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdftext/cpdf_linkextract.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdftext/cpdf_linkextract.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdftext/cpdf_textpage.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdftext/cpdf_textpage.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdftext/cpdf_textpagefind.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdftext/cpdf_textpagefind.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdftext/unicodenormalizationdata.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fpdftext/unicodenormalizationdata.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/basic/basicmodule.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/basic/basicmodule.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/cfx_codec_memory.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/cfx_codec_memory.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/fax/faxmodule.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/fax/faxmodule.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/flate/flatemodule.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/flate/flatemodule.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/fx_codec.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/fx_codec.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/fx_codec_def.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/icc/iccmodule.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/icc/iccmodule.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_ArithDecoder.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_ArithDecoder.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_ArithIntDecoder.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_BitStream.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_BitStream.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_Context.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_Context.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_Define.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_DocumentContext.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_DocumentContext.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_GrdProc.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_GrdProc.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_GrrdProc.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_GrrdProc.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_HtrdProc.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_HtrdProc.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_HuffmanDecoder.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_HuffmanTable.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_HuffmanTable.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_Image.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_Image.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_Page.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_PatternDict.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_PatternDict.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_PddProc.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_PddProc.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_SddProc.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_SddProc.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_Segment.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_Segment.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_SymbolDict.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_SymbolDict.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_TrdProc.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/JBig2_TrdProc.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/jbig2_decoder.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jbig2/jbig2_decoder.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jpeg/jpeg_common.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jpeg/jpeg_common.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jpeg/jpegmodule.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jpeg/jpegmodule.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jpx/cjpx_decoder.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jpx/cjpx_decoder.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jpx/jpx_decode_utils.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/jpx/jpx_decode_utils.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/scanlinedecoder.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcodec/scanlinedecoder.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/autonuller.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/autorestorer.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/byteorder.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/bytestring.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/bytestring.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_binarybuf.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_binarybuf.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_bitstream.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_bitstream.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_datetime.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_datetime.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_fileaccess_posix.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_fileaccess_posix.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_fixedbufgrow.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_memorystream.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_memorystream.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_readonlymemorystream.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_readonlymemorystream.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_seekablestreamproxy.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_seekablestreamproxy.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_timer.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_timer.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_utf8decoder.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_utf8decoder.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_utf8encoder.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_utf8encoder.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_widetextbuf.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/cfx_widetextbuf.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fileaccess_iface.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_bidi.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_bidi.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_codepage.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_codepage.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_coordinates.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_coordinates.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_extension.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_extension.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_memory.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_memory.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_memory_wrappers.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_number.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_number.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_random.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_random.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_safe_types.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_stream.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_stream.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_string.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_string.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_system.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_system.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_ucddata.inc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_unicode.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/fx_unicode.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/maybe_owned.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/observed_ptr.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/observed_ptr.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/pauseindicator_iface.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/retain_ptr.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/retained_tree_node.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/shared_copy_on_write.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/string_data_template.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/string_data_template.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/string_pool_template.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/string_view_template.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/timerhandler_iface.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/tree_node.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/unowned_ptr.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/weak_ptr.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/widestring.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/widestring.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/xml/cfx_xmlchardata.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/xml/cfx_xmlchardata.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/xml/cfx_xmldocument.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/xml/cfx_xmldocument.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/xml/cfx_xmlelement.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/xml/cfx_xmlelement.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/xml/cfx_xmlinstruction.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/xml/cfx_xmlinstruction.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/xml/cfx_xmlnode.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/xml/cfx_xmlnode.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/xml/cfx_xmlparser.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/xml/cfx_xmlparser.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/xml/cfx_xmltext.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxcrt/xml/cfx_xmltext.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/agg/fx_agg_driver.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/agg/fx_agg_driver.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_cliprgn.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_cliprgn.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_color.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_color.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_defaultrenderdevice.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_drawutils.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_drawutils.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_face.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_face.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_fillrenderoptions.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_folderfontinfo.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_folderfontinfo.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_font.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_font.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_fontcache.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_fontcache.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_fontmapper.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_fontmapper.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_fontmgr.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_fontmgr.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_gemodule.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_gemodule.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_glyphbitmap.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_glyphbitmap.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_glyphcache.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_glyphcache.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_graphstate.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_graphstate.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_graphstatedata.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_graphstatedata.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_pathdata.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_pathdata.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_renderdevice.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_renderdevice.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_substfont.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_substfont.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_textrenderoptions.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_unicodeencoding.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_unicodeencoding.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_unicodeencodingex.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_unicodeencodingex.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/cfx_windowsrenderdevice.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cfx_bitmapcomposer.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cfx_bitmapcomposer.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cfx_bitmapstorer.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cfx_bitmapstorer.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cfx_cmyk_to_srgb.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cfx_cmyk_to_srgb.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cfx_dibbase.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cfx_dibbase.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cfx_dibextractor.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cfx_dibextractor.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cfx_dibitmap.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cfx_dibitmap.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cfx_imagerenderer.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cfx_imagerenderer.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cfx_imagestretcher.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cfx_imagestretcher.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cfx_imagetransformer.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cfx_imagetransformer.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cfx_scanlinecompositor.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cfx_scanlinecompositor.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cstretchengine.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/cstretchengine.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/fx_dib_main.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/dib/scanlinecomposer_iface.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fontdata/chromefontdata/FoxitDingbats.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fontdata/chromefontdata/FoxitFixed.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fontdata/chromefontdata/FoxitFixedBold.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fontdata/chromefontdata/FoxitFixedBoldItalic.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fontdata/chromefontdata/FoxitFixedItalic.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fontdata/chromefontdata/FoxitSans.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fontdata/chromefontdata/FoxitSansBold.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fontdata/chromefontdata/FoxitSansItalic.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fontdata/chromefontdata/FoxitSansMM.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fontdata/chromefontdata/FoxitSerif.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fontdata/chromefontdata/FoxitSerifBold.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fontdata/chromefontdata/FoxitSerifItalic.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fontdata/chromefontdata/FoxitSerifMM.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fontdata/chromefontdata/FoxitSymbol.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fontdata/chromefontdata/chromefontdata.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/freetype/fx_freetype.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fx_dib.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fx_font.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fx_font.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fx_freetype.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/fx_ge_linux.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/render_defines.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/renderdevicedriver_iface.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/renderdevicedriver_iface.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/scoped_font_transform.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/scoped_font_transform.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/systemfontinfo_iface.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/text_char_pos.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/text_char_pos.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/text_glyph_pos.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/core/fxge/text_glyph_pos.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_actionhandler.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_actionhandler.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_annot.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_annot.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_annothandlermgr.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_annothandlermgr.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_annotiteration.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_annotiteration.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_annotiterator.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_annotiterator.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_appstream.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_appstream.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_baannot.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_baannot.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_baannothandler.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_baannothandler.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_customaccess.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_customaccess.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_fieldaction.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_fieldaction.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_filewriteadapter.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_filewriteadapter.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_formfillenvironment.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_formfillenvironment.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_helpers.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_helpers.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_interactiveform.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_interactiveform.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_pageview.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_pageview.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_pauseadapter.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_pauseadapter.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_renderpage.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_renderpage.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_widget.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_widget.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_widgethandler.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/cpdfsdk_widgethandler.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/formfiller/cffl_button.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/formfiller/cffl_button.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/formfiller/cffl_checkbox.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/formfiller/cffl_checkbox.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/formfiller/cffl_combobox.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/formfiller/cffl_combobox.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/formfiller/cffl_formfiller.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/formfiller/cffl_formfiller.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/formfiller/cffl_interactiveformfiller.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/formfiller/cffl_interactiveformfiller.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/formfiller/cffl_listbox.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/formfiller/cffl_listbox.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/formfiller/cffl_pushbutton.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/formfiller/cffl_pushbutton.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/formfiller/cffl_radiobutton.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/formfiller/cffl_radiobutton.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/formfiller/cffl_textfield.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/formfiller/cffl_textfield.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/formfiller/cffl_textobject.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/formfiller/cffl_textobject.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_annot.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_attachment.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_catalog.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_dataavail.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_doc.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_editimg.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_editpage.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_editpath.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_edittext.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_ext.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_flatten.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_formfill.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_javascript.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_ppo.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_progressive.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_save.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_searchex.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_signature.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_structtree.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_sysfontinfo.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_text.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_thumbnail.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_transformpage.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_view.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_view_c_api_test.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/fpdf_view_c_api_test.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/ipdfsdk_annothandler.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_button.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_button.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_caret.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_caret.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_combo_box.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_combo_box.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_edit.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_edit.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_edit_ctrl.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_edit_ctrl.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_edit_impl.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_edit_impl.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_icon.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_icon.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_list_box.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_list_box.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_list_impl.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_list_impl.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_scroll_bar.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_scroll_bar.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_special_button.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_special_button.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_wnd.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/cpwl_wnd.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fpdfsdk/pwl/ipwl_systemhandler.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/DEPS delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cfx_globaldata.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cfx_globaldata.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cfx_keyvalue.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cfx_keyvalue.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cfx_v8.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cfx_v8.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cfxjs_engine.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cfxjs_engine.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_annot.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_annot.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_app.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_app.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_border.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_border.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_color.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_color.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_console.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_console.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_delaydata.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_delaydata.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_display.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_display.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_document.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_document.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_event.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_event.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_event_context.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_event_context.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_event_context_stub.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_event_context_stub.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_eventrecorder.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_eventrecorder.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_field.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_field.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_font.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_font.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_global.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_global.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_globalarrays.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_globalarrays.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_globalconsts.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_globalconsts.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_highlight.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_highlight.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_icon.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_icon.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_object.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_object.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_position.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_position.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_publicmethods.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_publicmethods.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_result.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_result.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_runtime.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_runtime.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_runtimestub.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_runtimestub.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_scalehow.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_scalehow.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_scalewhen.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_scalewhen.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_style.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_style.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_timerobj.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_timerobj.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_util.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_util.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_zoomtype.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/cjs_zoomtype.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/fx_date_helpers.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/fx_date_helpers.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/fxv8.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/fxv8.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/global_timer.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/global_timer.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/ijs_event_context.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/ijs_runtime.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/ijs_runtime.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/js_define.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/js_define.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/js_resources.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/fxjs/js_resources.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/cpp/fpdf_deleters.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/cpp/fpdf_scopers.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_annot.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_attachment.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_catalog.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_dataavail.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_doc.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_edit.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_ext.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_flatten.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_formfill.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_fwlevent.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_javascript.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_ppo.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_progressive.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_save.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_searchex.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_signature.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_structtree.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_sysfontinfo.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_text.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_thumbnail.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdf_transformpage.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/public/fpdfview.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/README.pdfium delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_array.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_basics.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_clip_liang_barsky.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_color_gray.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_conv_adaptor_vcgen.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_conv_dash.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_conv_stroke.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_curves.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_curves.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_math.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_math_stroke.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_path_storage.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_path_storage.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_pixfmt_gray.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_rasterizer_scanline_aa.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_rasterizer_scanline_aa.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_render_scanlines.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_renderer_base.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_renderer_scanline.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_rendering_buffer.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_scanline_u.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_shorten_path.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_vcgen_dash.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_vcgen_dash.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_vcgen_stroke.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_vcgen_stroke.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/agg23/agg_vertex_sequence.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/OWNERS delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/address_space_randomization.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/address_space_randomization.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/oom.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/oom_callback.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/oom_callback.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/page_allocator.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/page_allocator.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/page_allocator_constants.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/page_allocator_internal.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/page_allocator_internals_win.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/partition_alloc.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/partition_alloc.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/partition_alloc_constants.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/partition_bucket.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/partition_bucket.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/partition_cookie.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/partition_direct_map_extent.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/partition_freelist_entry.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/partition_oom.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/partition_oom.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/partition_page.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/partition_page.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/partition_root_base.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/partition_root_base.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/random.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/random.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/spin_lock.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/allocator/partition_allocator/spin_lock.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/base_export.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/bits.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/compiler_specific.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/containers/adapters.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/debug/alias.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/debug/alias.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/immediate_crash.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/logging.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/memory/aligned_memory.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/memory/aligned_memory.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/no_destructor.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/numerics/OWNERS delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/numerics/checked_math.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/numerics/checked_math_impl.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/numerics/clamped_math.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/numerics/clamped_math_impl.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/numerics/safe_conversions.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/numerics/safe_conversions_arm_impl.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/numerics/safe_conversions_impl.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/numerics/safe_math.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/numerics/safe_math_arm_impl.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/numerics/safe_math_clang_gcc_impl.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/numerics/safe_math_shared_impl.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/optional.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/ptr_util.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/span.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/stl_util.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/sys_byteorder.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/template_util.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/test/scoped_locale.cc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/base/test/scoped_locale.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/include/freetype-custom-config/ftmodule.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/include/freetype-custom-config/ftoption.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/include/pstables.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/devel/ft2build.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/devel/ftoption.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftadvanc.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftbbox.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftbdf.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftcalc.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftcid.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftcolor.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftdbgmem.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/fterrors.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftfntfmt.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftgasp.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftgloadr.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftgxval.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/fthash.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftlcdfil.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftmac.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftobjs.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftotval.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftoutln.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftpatent.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftpfr.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftpsprop.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftrfork.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftsnames.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftstream.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftstroke.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftsynth.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/fttrigon.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftutil.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftver.rc delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/ftwinfnt.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/md5.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/md5.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/base/rules.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/bzip2/ftbzip2.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/bzip2/rules.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cache/ftcache.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cache/ftcbasic.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cache/ftccache.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cache/ftccache.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cache/ftccback.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cache/ftccmap.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cache/ftcerror.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cache/ftcglyph.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cache/ftcglyph.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cache/ftcimage.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cache/ftcimage.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cache/ftcmanag.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cache/ftcmanag.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cache/ftcmru.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cache/ftcmru.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cache/ftcsbits.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cache/ftcsbits.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cache/rules.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cff/cffcmap.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cff/cffcmap.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cff/cffdrivr.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cff/cffdrivr.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cff/cfferrs.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cff/cffgload.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cff/cffgload.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cff/cffload.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cff/cffload.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cff/cffobjs.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cff/cffparse.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cff/cffparse.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cff/cfftoken.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cff/module.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cff/rules.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cid/ciderrs.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cid/cidgload.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cid/cidgload.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cid/cidload.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cid/cidload.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cid/cidobjs.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cid/cidobjs.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cid/cidparse.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cid/cidparse.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cid/cidriver.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cid/cidriver.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/cid/cidtoken.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/README delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvalid.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvalid.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvbsln.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvcommn.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvcommn.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxverror.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvfeat.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvfeat.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvfgen.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvjust.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvkern.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvlcar.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvmod.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvmod.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvmort.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvmort.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvmort0.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvmort1.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvmort2.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvmort4.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvmort5.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvmorx.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvmorx.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvmorx0.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvmorx1.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvmorx2.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvmorx4.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvmorx5.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvopbd.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvprop.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/gxvtrak.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/module.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gxvalid/rules.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gzip/adler32.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gzip/ftgzip.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gzip/ftzconf.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gzip/infblock.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gzip/infblock.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gzip/infcodes.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gzip/infcodes.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gzip/inffixed.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gzip/inflate.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gzip/inftrees.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gzip/inftrees.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gzip/infutil.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gzip/infutil.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gzip/rules.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gzip/zlib.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gzip/zutil.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/gzip/zutil.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/lzw/ftlzw.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/lzw/ftzopen.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/lzw/ftzopen.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/lzw/rules.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/otvalid/module.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/otvalid/otvalid.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/otvalid/otvalid.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/otvalid/otvbase.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/otvalid/otvcommn.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/otvalid/otvcommn.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/otvalid/otverror.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/otvalid/otvgdef.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/otvalid/otvgpos.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/otvalid/otvgpos.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/otvalid/otvgsub.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/otvalid/otvjstf.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/otvalid/otvmath.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/otvalid/otvmod.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/otvalid/otvmod.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/otvalid/rules.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/afmparse.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/afmparse.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/cffdecode.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/cffdecode.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/module.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psarrst.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psarrst.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psaux.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psauxerr.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psauxmod.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psauxmod.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psblues.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psblues.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psconv.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psconv.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/pserror.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/pserror.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psfixed.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psfont.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psfont.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psft.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psft.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psglue.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/pshints.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/pshints.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psintrp.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psintrp.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psobjs.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psobjs.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psread.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psread.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psstack.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/psstack.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/pstypes.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/rules.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/t1cmap.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/t1cmap.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/t1decode.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psaux/t1decode.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/pshinter/module.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/pshinter/pshalgo.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/pshinter/pshalgo.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/pshinter/pshglob.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/pshinter/pshglob.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/pshinter/pshmod.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/pshinter/pshmod.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/pshinter/pshnterr.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/pshinter/pshrec.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/pshinter/pshrec.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/pshinter/rules.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psnames/module.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psnames/psmodule.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psnames/psnamerr.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/psnames/psnames.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/raster/ftmisc.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/raster/ftraster.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/raster/ftraster.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/raster/ftrend1.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/raster/ftrend1.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/raster/module.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/raster/rasterrs.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/raster/rules.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/module.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/pngshim.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/pngshim.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/rules.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/sfdriver.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/sfdriver.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/sferrors.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/sfnt.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/sfobjs.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/sfobjs.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/sfwoff.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/sfwoff.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/sfwoff2.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/sfwoff2.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/ttbdf.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/ttbdf.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/ttcmap.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/ttcmap.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/ttcmapc.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/ttcolr.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/ttcolr.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/ttcpal.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/ttcpal.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/ttkern.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/ttkern.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/ttload.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/ttload.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/ttmtx.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/ttmtx.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/ttpost.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/ttpost.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/ttsbit.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/ttsbit.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/woff2tags.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/sfnt/woff2tags.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/smooth/ftgrays.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/smooth/ftgrays.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/smooth/ftsmerrs.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/smooth/ftsmooth.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/smooth/module.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/smooth/rules.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/smooth/smooth.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/tools/afblue.pl delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/tools/apinames.c delete mode 100755 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/tools/chktrcmp.py delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/tools/cordic.py delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/tools/ftrandom/README delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/tools/ftrandom/ftrandom.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/tools/glnames.py delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/tools/no-copyright delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/tools/test_afm.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/tools/test_bbox.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/tools/test_trig.c delete mode 100755 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/tools/update-copyright delete mode 100755 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/tools/update-copyright-year delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/truetype/module.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/truetype/rules.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/truetype/ttdriver.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/truetype/ttdriver.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/truetype/tterrors.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/truetype/ttgload.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/truetype/ttgload.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/truetype/ttgxvar.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/truetype/ttgxvar.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/truetype/ttinterp.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/truetype/ttinterp.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/truetype/ttobjs.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/truetype/ttobjs.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/truetype/ttpload.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/truetype/ttpload.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/truetype/ttsubpix.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/truetype/ttsubpix.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/type1/module.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/type1/rules.mk delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/type1/t1afm.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/type1/t1afm.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/type1/t1driver.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/type1/t1driver.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/type1/t1errors.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/type1/t1gload.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/type1/t1gload.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/type1/t1load.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/type1/t1load.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/type1/t1objs.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/type1/t1objs.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/type1/t1parse.c delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/type1/t1parse.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/freetype/src/src/type1/t1tokens.h delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/skia_shared/SkFloatToDecimal.cpp delete mode 100644 3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/third_party/skia_shared/SkFloatToDecimal.h delete mode 100644 3rdparty/deepin-pdfium/src/dpdfannot.cpp delete mode 100755 3rdparty/deepin-pdfium/src/dpdfdoc.cpp delete mode 100755 3rdparty/deepin-pdfium/src/dpdfglobal.cpp delete mode 100644 3rdparty/deepin-pdfium/src/dpdflog.h delete mode 100755 3rdparty/deepin-pdfium/src/dpdfpage.cpp delete mode 100755 3rdparty/deepin-pdfium/src/src.pro delete mode 100644 LICENSES/BSD-3-Clause.txt diff --git a/.reuse/dep5 b/.reuse/dep5 index 72360531a..cce1b1420 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -63,11 +63,6 @@ Files: tests/* Copyright: UnionTech Software Technology Co., Ltd. License: GPL-3.0-or-later -# 3rdparty/deepin-pdfium -Files: 3rdparty/deepin-pdfium/* -Copyright: 2014-2019 PDFium Authors. -License: GPL-3.0-or-later - # reader all files Files: reader/* Copyright: UnionTech Software Technology Co., Ltd. @@ -78,11 +73,12 @@ Files: resources/* Copyright: UnionTech Software Technology Co., Ltd. License: GPL-3.0-or-later -Files: 3rdparty/deepin-pdfium/src/* -Copyright: PDFium Authors. All rights reserved. -License: BSD-3-Clause - # htmltopdf Files: htmltopdf/* Copyright: UnionTech Software Technology Co., Ltd. License: GPL-3.0-or-later + +# CI 生成的报告文件(license-check 工作流写入仓库目录后被自身扫描) +Files: reuse_lint_report.md +Copyright: None +License: CC0-1.0 diff --git a/3rdparty/deepin-pdfium/CMakeLists.txt b/3rdparty/deepin-pdfium/CMakeLists.txt deleted file mode 100644 index bacc7852d..000000000 --- a/3rdparty/deepin-pdfium/CMakeLists.txt +++ /dev/null @@ -1,153 +0,0 @@ -cmake_minimum_required(VERSION 3.13) - -set(VERSION "1.0.0" CACHE STRING "PDF rendering library based on PDFium") - -project(deepin-pdfium-reader - VERSION ${VERSION} - DESCRIPTION "PDF rendering library based on PDFium" - LANGUAGES CXX C -) - -# 设置C++标准 -set(CMAKE_CXX_STANDARD 17) -set(CMAKE_CXX_STANDARD_REQUIRED ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -# 编译选项 -add_compile_options( - -fstack-protector-strong - -D_FORTITY_SOURCE=1 - -z noexecstack - -pie - -fPIC - -Wno-unused-parameter -) - -# 添加链接选项 -add_link_options( - -z lazy -) - -# 获取系统页大小 -execute_process( - COMMAND getconf PAGESIZE - OUTPUT_VARIABLE SYSTEM_PAGE_SIZE - OUTPUT_STRIP_TRAILING_WHITESPACE -) -add_definitions(-DSYSTEMPAGESIZE=${SYSTEM_PAGE_SIZE}) - -# 查找Qt6依赖包 -find_package(Qt${QT_DESIRED_VERSION} REQUIRED COMPONENTS Core Gui) -find_package(PkgConfig REQUIRED) -pkg_check_modules(DEPS REQUIRED - chardet - lcms2 - freetype2 - libopenjp2 -) - -# PDFium 第三方库 -add_subdirectory(src/3rdparty/pdfium) - -# 定义导出宏 -# add_definitions(-DBUILD_DEEPDF_LIB) - -# 主库目标 -add_library(${PROJECT_NAME} SHARED - include/dpdfglobal.h - include/dpdfdoc.h - include/dpdfpage.h - include/dpdfannot.h - src/dpdfglobal.cpp - src/dpdfdoc.cpp - src/dpdfpage.cpp - src/dpdfannot.cpp -) - -# 设置库的版本信息和 SOVERSION -set_target_properties(${PROJECT_NAME} PROPERTIES - VERSION "${PROJECT_VERSION}" - SOVERSION "${PROJECT_VERSION_MAJOR}" -) - -target_include_directories(${PROJECT_NAME} - PUBLIC - $ - $ - PRIVATE - ${DEPS_INCLUDE_DIRS} -) - -target_link_libraries(${PROJECT_NAME} - PRIVATE - pdfium - Qt${QT_DESIRED_VERSION}::Core - Qt${QT_DESIRED_VERSION}::Gui - ${DEPS_LIBRARIES} - z - jpeg - icuuc -) - -# 安装 -include(GNUInstallDirs) - -install(TARGETS ${PROJECT_NAME} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} -) - -if (EXPORT_DEV_FILES) -install(FILES - include/dpdfglobal.h - include/dpdfdoc.h - include/dpdfpage.h - include/dpdfannot.h - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/deepin-pdfium -) - -# pkg-config -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/deepin-pdfium.pc.in - ${CMAKE_CURRENT_BINARY_DIR}/deepin-pdfium.pc - @ONLY -) - -install( - FILES ${CMAKE_CURRENT_BINARY_DIR}/deepin-pdfium.pc - DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig -) - -include(CMakePackageConfigHelpers) - -set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_INCLUDEDIR}/deepin-pdfium) -set(LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}) - -configure_package_config_file( - misc/deepin-pdfiumConfig.cmake.in - ${CMAKE_CURRENT_BINARY_DIR}/deepin-pdfiumConfig.cmake - INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/deepin-pdfium - PATH_VARS INCLUDE_INSTALL_DIR LIB_INSTALL_DIR -) - -install(FILES - ${CMAKE_CURRENT_BINARY_DIR}/deepin-pdfiumConfig.cmake - DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/deepin-pdfium -) - -install(TARGETS ${PROJECT_NAME} - EXPORT deepin-pdfiumTargets - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} - INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} -) - -install(EXPORT deepin-pdfiumTargets - FILE deepin-pdfiumTargets.cmake - NAMESPACE deepin-pdfium:: - DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/deepin-pdfium -) -endif (EXPORT_DEV_FILES) diff --git a/3rdparty/deepin-pdfium/LICENSE b/3rdparty/deepin-pdfium/LICENSE deleted file mode 100644 index 65c5ca88a..000000000 --- a/3rdparty/deepin-pdfium/LICENSE +++ /dev/null @@ -1,165 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - - This version of the GNU Lesser General Public License incorporates -the terms and conditions of version 3 of the GNU General Public -License, supplemented by the additional permissions listed below. - - 0. Additional Definitions. - - As used herein, "this License" refers to version 3 of the GNU Lesser -General Public License, and the "GNU GPL" refers to version 3 of the GNU -General Public License. - - "The Library" refers to a covered work governed by this License, -other than an Application or a Combined Work as defined below. - - An "Application" is any work that makes use of an interface provided -by the Library, but which is not otherwise based on the Library. -Defining a subclass of a class defined by the Library is deemed a mode -of using an interface provided by the Library. - - A "Combined Work" is a work produced by combining or linking an -Application with the Library. The particular version of the Library -with which the Combined Work was made is also called the "Linked -Version". - - The "Minimal Corresponding Source" for a Combined Work means the -Corresponding Source for the Combined Work, excluding any source code -for portions of the Combined Work that, considered in isolation, are -based on the Application, and not on the Linked Version. - - The "Corresponding Application Code" for a Combined Work means the -object code and/or source code for the Application, including any data -and utility programs needed for reproducing the Combined Work from the -Application, but excluding the System Libraries of the Combined Work. - - 1. Exception to Section 3 of the GNU GPL. - - You may convey a covered work under sections 3 and 4 of this License -without being bound by section 3 of the GNU GPL. - - 2. Conveying Modified Versions. - - If you modify a copy of the Library, and, in your modifications, a -facility refers to a function or data to be supplied by an Application -that uses the facility (other than as an argument passed when the -facility is invoked), then you may convey a copy of the modified -version: - - a) under this License, provided that you make a good faith effort to - ensure that, in the event an Application does not supply the - function or data, the facility still operates, and performs - whatever part of its purpose remains meaningful, or - - b) under the GNU GPL, with none of the additional permissions of - this License applicable to that copy. - - 3. Object Code Incorporating Material from Library Header Files. - - The object code form of an Application may incorporate material from -a header file that is part of the Library. You may convey such object -code under terms of your choice, provided that, if the incorporated -material is not limited to numerical parameters, data structure -layouts and accessors, or small macros, inline functions and templates -(ten or fewer lines in length), you do both of the following: - - a) Give prominent notice with each copy of the object code that the - Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the object code with a copy of the GNU GPL and this license - document. - - 4. Combined Works. - - You may convey a Combined Work under terms of your choice that, -taken together, effectively do not restrict modification of the -portions of the Library contained in the Combined Work and reverse -engineering for debugging such modifications, if you also do each of -the following: - - a) Give prominent notice with each copy of the Combined Work that - the Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the Combined Work with a copy of the GNU GPL and this license - document. - - c) For a Combined Work that displays copyright notices during - execution, include the copyright notice for the Library among - these notices, as well as a reference directing the user to the - copies of the GNU GPL and this license document. - - d) Do one of the following: - - 0) Convey the Minimal Corresponding Source under the terms of this - License, and the Corresponding Application Code in a form - suitable for, and under terms that permit, the user to - recombine or relink the Application with a modified version of - the Linked Version to produce a modified Combined Work, in the - manner specified by section 6 of the GNU GPL for conveying - Corresponding Source. - - 1) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (a) uses at run time - a copy of the Library already present on the user's computer - system, and (b) will operate properly with a modified version - of the Library that is interface-compatible with the Linked - Version. - - e) Provide Installation Information, but only if you would otherwise - be required to provide such information under section 6 of the - GNU GPL, and only to the extent that such information is - necessary to install and execute a modified version of the - Combined Work produced by recombining or relinking the - Application with a modified version of the Linked Version. (If - you use option 4d0, the Installation Information must accompany - the Minimal Corresponding Source and Corresponding Application - Code. If you use option 4d1, you must provide the Installation - Information in the manner specified by section 6 of the GNU GPL - for conveying Corresponding Source.) - - 5. Combined Libraries. - - You may place library facilities that are a work based on the -Library side by side in a single library together with other library -facilities that are not Applications and are not covered by this -License, and convey such a combined library under terms of your -choice, if you do both of the following: - - a) Accompany the combined library with a copy of the same work based - on the Library, uncombined with any other library facilities, - conveyed under the terms of this License. - - b) Give prominent notice with the combined library that part of it - is a work based on the Library, and explaining where to find the - accompanying uncombined form of the same work. - - 6. Revised Versions of the GNU Lesser General Public License. - - The Free Software Foundation may publish revised and/or new versions -of the GNU Lesser General Public License from time to time. Such new -versions will be similar in spirit to the present version, but may -differ in detail to address new problems or concerns. - - Each version is given a distinguishing version number. If the -Library as you received it specifies that a certain numbered version -of the GNU Lesser General Public License "or any later version" -applies to it, you have the option of following the terms and -conditions either of that published version or of any later version -published by the Free Software Foundation. If the Library as you -received it does not specify a version number of the GNU Lesser -General Public License, you may choose any version of the GNU Lesser -General Public License ever published by the Free Software Foundation. - - If the Library as you received it specifies that a proxy can decide -whether future versions of the GNU Lesser General Public License shall -apply, that proxy's public statement of acceptance of any version is -permanent authorization for you to choose that version for the -Library. diff --git a/3rdparty/deepin-pdfium/deepin-pdfium.pc.in b/3rdparty/deepin-pdfium/deepin-pdfium.pc.in deleted file mode 100644 index 1c5b68c6f..000000000 --- a/3rdparty/deepin-pdfium/deepin-pdfium.pc.in +++ /dev/null @@ -1,10 +0,0 @@ -prefix=@CMAKE_INSTALL_PREFIX@ -exec_prefix=@CMAKE_INSTALL_PREFIX@ -libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ -includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/deepin-pdfium - -Name: deepin-pdfium -Description: PDF rendering library based on PDFium -Version: @PROJECT_VERSION@ -Libs: -L${libdir} -ldeepin-pdfium -Cflags: -I${includedir} \ No newline at end of file diff --git a/3rdparty/deepin-pdfium/deepin-pdfium.pro b/3rdparty/deepin-pdfium/deepin-pdfium.pro deleted file mode 100644 index 43264b1f7..000000000 --- a/3rdparty/deepin-pdfium/deepin-pdfium.pro +++ /dev/null @@ -1,11 +0,0 @@ -TEMPLATE = subdirs - -###安全漏洞检测 -#QMAKE_CXX += -g -fsanitize=undefined,address -O2 -#QMAKE_CXXFLAGS += -g -fsanitize=undefined,address -O2 -#QMAKE_LFLAGS += -g -fsanitize=undefined,address -O2 -# 添加库 -LIBS += -ldjvulibre -ljpeg - - -SUBDIRS += src diff --git a/3rdparty/deepin-pdfium/include/dpdfannot.h b/3rdparty/deepin-pdfium/include/dpdfannot.h deleted file mode 100644 index e56cf1e91..000000000 --- a/3rdparty/deepin-pdfium/include/dpdfannot.h +++ /dev/null @@ -1,214 +0,0 @@ -// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. -// -// SPDX-License-Identifier: LGPL-3.0-or-later - -#ifndef DPDFANNOT_H -#define DPDFANNOT_H - -#include "dpdfglobal.h" - -#include -#include -#include -#include - -class DPdfAnnot -{ -public: - enum AnnotType { - AUnknown = 0, ///< 前期支持以外的 - AText = 1, ///< TextAnnotation - AHighlight = 2, ///< HighlightAnnotation - ALink = 3, - AUNDERLINE = 4, - ASQUARE = 5, - ACIRCLE = 6, - AWIDGET = 7 - }; - - virtual ~DPdfAnnot(); - - /** - * @brief 是否在该点上 - * @param pos (in point) - * @return - */ - virtual bool pointIn(QPointF pos) = 0; - - /** - * @brief boundaries - * @return (in point) - */ - virtual QList boundaries() = 0; - - AnnotType type(); - - void setText(QString text); - - QString text(); - -protected: - AnnotType m_type; - QString m_text; -}; - -class DPdfTextAnnot : public DPdfAnnot -{ - friend class DPdfPage; - friend class DPdfPagePrivate; -public: - DPdfTextAnnot(); - - bool pointIn(QPointF pos) override; - - QList boundaries() override; - - void setRectF(const QRectF &rectf); - -private: - QRectF m_rect; -}; - -class DPdfSquareAnnot : public DPdfAnnot -{ -public: - DPdfSquareAnnot(); - - bool pointIn(QPointF pos) override; - - QList boundaries() override; - - void setRectF(const QRectF &rectf); - -private: - QRectF m_rect; -}; - -class DPdfCIRCLEAnnot : public DPdfAnnot -{ - friend class DPdfPage; - friend class DPdfPagePrivate; -public: - DPdfCIRCLEAnnot(); - - bool pointIn(QPointF pos) override; - - QList boundaries() override; - - void setRectF(const QRectF &rectf); - - void setBoundaries(QList rectList); - -private: - QList m_rectList; - QRectF m_rect; -}; - -class DPdfHightLightAnnot : public DPdfAnnot -{ - friend class DPdfPage; - friend class DPdfPagePrivate; -public: - DPdfHightLightAnnot(); - - bool pointIn(QPointF pos) override; - - void setColor(QColor color); - - QColor color(); - - void setBoundaries(QList rectList); - - QList boundaries() override; - -private: - QList m_rectList; - QColor m_color; -}; - -class DPdfLinkAnnot : public DPdfAnnot -{ -public: - DPdfLinkAnnot(); - - enum LinkType { - Unknown = 0, - Uri, //URI, including web pages and other Internet resources - RemoteGoTo, //Go to a destination within another document. - Goto //Go to a destination within current document. - }; - - bool pointIn(QPointF pos) override; - - QList boundaries() override; - - void setRectF(const QRectF &rect); - - void setUrl(QString url); - - QString url() const; - - void setFilePath(QString filePath); - - QString filePath() const; - - void setPage(int index, float left, float top); - - int pageIndex() const; - - QPointF offset() const; - - void setLinkType(int type); - - int linkType() const; - - bool isValid() const; - -private: - QRectF m_rect; - QString m_url; - QString m_filePath; - - int m_linkType = Unknown; - int m_index = -1; - float m_left = 0; - float m_top = 0; -}; - -class DPdfWidgetAnnot : public DPdfAnnot -{ -public: - DPdfWidgetAnnot(); - - bool pointIn(QPointF pos) override; - - QList boundaries() override; - -}; - -class DPdfUnknownAnnot : public DPdfAnnot -{ -public: - DPdfUnknownAnnot(); - - bool pointIn(QPointF pos) override; - - QList boundaries() override; - -}; - -class DPdfUnderlineAnnot : public DPdfAnnot -{ -public: - DPdfUnderlineAnnot(); - - bool pointIn(QPointF pos) override; - - QList boundaries() override; - - void setRectF(const QRectF &rectf); - -private: - QRectF m_rect; -}; -#endif // DPDFANNOT_H diff --git a/3rdparty/deepin-pdfium/include/dpdfdoc.h b/3rdparty/deepin-pdfium/include/dpdfdoc.h deleted file mode 100755 index 32ffd365b..000000000 --- a/3rdparty/deepin-pdfium/include/dpdfdoc.h +++ /dev/null @@ -1,157 +0,0 @@ -// SPDX-FileCopyrightText: 2023 - 2026 UnionTech Software Technology Co., Ltd. -// -// SPDX-License-Identifier: LGPL-3.0-or-later - -#ifndef DPDFDOC_H -#define DPDFDOC_H - -#include "dpdfglobal.h" - -#include -#include -#include -#include -#include -#include - -class DPdfPage; -class DPdfDocHandler; -class DPdfDocPrivate; -class DPdfDoc : public QObject -{ - Q_OBJECT - Q_DECLARE_PRIVATE(DPdfDoc) - -public: - enum Status { - NOT_LOADED = -1, - SUCCESS = 0, - FILE_ERROR, - FORMAT_ERROR, - PASSWORD_ERROR, - HANDLER_ERROR, - FILE_NOT_FOUND_ERROR - }; - - struct Section; - typedef QVector< Section > Outline; - typedef QMap Properies; - - struct Section { - int nIndex; - QPointF offsetPointF; - QString title; - Outline children; - }; - - DPdfDoc(QString filename, QString password = QString()); - - virtual ~DPdfDoc(); - - /** - * @brief 文档是否有效 - * @return - */ - bool isValid() const; - - /** - * @brief 是否是加密文档 - * @return - */ - bool isEncrypted() const; - - /** - * @brief 文档路径 - * @return - */ - QString filePath() const; - - /** - * @brief 文档页数 - * @return - */ - int pageCount() const; - - /** - * @brief 文档状态 - * @return - */ - Status status() const; - - /** - * @brief 创建新的page返回 - * @param i - * @return 所有权归文档:返回的 DPdfPage 由文档缓存并在析构时释放, - * 调用方不得 delete(重复释放将导致 double-free)。 - */ - DPdfPage *page(int i, qreal xRes, qreal yRes); - - /** - * @brief 目录 - * @return - */ - Outline outline(qreal xRes, qreal yRes); - - /** - * @brief 文档属性信息 - * Keys: - * Version - * Encrypted - * Linearized - * KeyWords - * Title - * Creator - * Producer - * @return - */ - Properies proeries(); - - /** - * @brief 下标真实页码 - * @return - */ - QString label(int index) const; - - /** - * @brief 获取 PDF 文档的永久标识符(Trailer /ID 的第一个值) - * 此 ID 在文档创建时生成,改名/移动不变,可用于唯一标识同一文档 - * @return 永久 ID 的十六进制字符串,获取失败返回空串 - */ - QString fileIdentifier() const; - - /** - * @brief 保存到当前文件 - * @return - */ - bool save(); - - /** - * @brief 另存为到文件 - * @param 文件名 - * @return - */ - bool saveAs(const QString &filePath); - -public: - /** - * @brief 尝试加载文档是否成功 - * @param filename - * @param password - * @return - */ - static Status tryLoadFile(const QString &filename, const QString &password = QString()); - -private: - /** - * @brief isLinearized 是否是线性化PDF文件(线性化PDF文件是PDF文件的一种特殊格式,可以在互联网上更快地查看) - * @param fileName - * @return - */ - bool isLinearized(const QString &fileName); - -private: - Q_DISABLE_COPY(DPdfDoc) - QScopedPointer d_ptr; -}; - -#endif // DPDFDOC_H diff --git a/3rdparty/deepin-pdfium/include/dpdfglobal.h b/3rdparty/deepin-pdfium/include/dpdfglobal.h deleted file mode 100755 index 5c8f8a405..000000000 --- a/3rdparty/deepin-pdfium/include/dpdfglobal.h +++ /dev/null @@ -1,70 +0,0 @@ -// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. -// -// SPDX-License-Identifier: LGPL-3.0-or-later - -#ifndef DPDFGLOBAL_H -#define DPDFGLOBAL_H - -#include -#include -#include -#include -#include -#include -#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) -#include -#endif - -#ifndef BUILD_DEEPDF_STATIC -# if defined(BUILD_DEEPDF_LIB) -# define DEEPDF_EXPORT Q_DECL_EXPORT -# else -# define DEEPDF_EXPORT Q_DECL_IMPORT -# endif -#else -# define DEEPDF_EXPORT -#endif - -class DPdfGlobal -{ -public: - DPdfGlobal(); - - ~DPdfGlobal(); - - static QString textCodeType(const char *text); - - typedef struct { - QString text; - QRectF rect; - } PageLine; - /** - * @brief PageSection 一个选区的集合 - * page包含多个section - * section包含多个line - * line包含一个text和一个rect - */ - typedef QList PageSection; - -private: - void init(); - - void destory(); -}; - -//pdfium即使不同文档之间loadpage和renderpage也不是线程安全,需要加锁 -#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) -class DPdfMutexLocker : public QMutexLocker -#else -class DPdfMutexLocker : public QMutexLocker -#endif -{ -public: - explicit DPdfMutexLocker(const QString &tmpLog); - ~DPdfMutexLocker(); - - QString m_log; - QElapsedTimer m_timer; -}; - -#endif // DPDFGLOBAL_H diff --git a/3rdparty/deepin-pdfium/include/dpdfpage.h b/3rdparty/deepin-pdfium/include/dpdfpage.h deleted file mode 100755 index 612b2f6dc..000000000 --- a/3rdparty/deepin-pdfium/include/dpdfpage.h +++ /dev/null @@ -1,221 +0,0 @@ -// SPDX-FileCopyrightText: 2023 - 2026 UnionTech Software Technology Co., Ltd. -// -// SPDX-License-Identifier: LGPL-3.0-or-later - -#ifndef DPDFPAGE_H -#define DPDFPAGE_H - -#include -#include -#include - -#include "dpdfglobal.h" - -class DPdfAnnot; -class DPdfPagePrivate; -class DPdfDocHandler; -/** - * @brief PDF 页面对象 - * - * 所有权契约:DPdfPage 实例由 DPdfDoc::page() 创建并缓存于文档内部, - * 生命周期由所属 DPdfDoc 管理(文档析构时统一释放)。 - * 调用方不得 delete 该指针,否则将与文档析构产生双重释放。 - */ -class DPdfPage : public QObject -{ - Q_OBJECT - Q_DECLARE_PRIVATE(DPdfPage) - friend class DPdfDoc; - -public: - ~DPdfPage(); - - /** - * @brief 是否有效 - * @return - */ - bool isValid() const; - - /** - * @brief 当页索引 - * @return - */ - int index() const; - - /** - * @brief 大小 (根据目标设备dpi算出一个相同物理尺寸对应的像素大小) - * @return - */ - QSizeF sizeF() const; - - /** - * @brief 按像素宽高获取原图(如果需要切片,将不会加载widget类型的注释,如一些数字签章) - * @param width (in pixel) - * @param height (in pixel) - * @param rect 要取的切片,默认为全图 (in pixel) - * @return - */ - QImage image(int width, int height, QRect slice = QRect()); - - /** - * @brief 获取页面上图片对象的包围盒(夜间模式对象蒙版用,实验) - * 坐标与 image(width, height) 的整页渲染输出像素一一对齐(已处理页面自身旋转) - * @param width (in pixel) 目标渲染宽 - * @param height (in pixel) 目标渲染高 - * @return 图片对象包围盒列表(像素坐标,Qt 坐标系);无图片对象返回空 - */ - QVector imageObjectRects(int width, int height); - - /** - * @brief 字符数 - * @return - */ - int countChars(); - - /** - * @brief 根据索引获取文本范围 - * @param index - * @param textrect (in pixel) - * @return - */ - bool textRect(int index, QRectF &textrect); - - /** - * @brief 获取多个字符文本范围 - * @param index - * @param charCount - * @return (in pixel) - */ - QVector textRects(int index, int charCount); - - /** - * @brief 获取本页所有文字和周围空间区域 - * @param charCount 文本字符数 - * @param rects - */ - void allTextLooseRects(int &charCount, QStringList &texts, QVector &rects); - - /** - * @brief 获取本页所有文字区域 - * @param charCount 文本字符数 - * @param rects - */ - void allTextRects(int &charCount, QStringList &texts, QVector &rects); - - /** - * @brief 根据范围获取文本 - * @param rect (in pixel) - * @return - */ - QString text(const QRectF &rect); - - /** - * @brief 根据索引获取文本 - * @param index - * @param charCount - * @return - */ - QString text(int index, int charCount = 1); - - /** - * @brief 添加文字注释 - * @param point 点击的位置 基于原尺寸 - * @param text 注释内容 - * @return 添加失败返回nullptr - */ - DPdfAnnot *createTextAnnot(QPointF pos, QString text); - - /** - * @brief 更新注释 - * @param dAnnot 给更新的注释指针 - * @param text 注释文字 - * @param point 点击的位置 传空则不更新 基于原尺寸 - * @return - */ - bool updateTextAnnot(DPdfAnnot *dAnnot, QString text, QPointF pos = QPointF()); - - /** - * @brief 添加高亮注释 - * @param list 高亮的区域 基于原尺寸 - * @param text 注释内容 - * @param color 高亮颜色 - * @return 添加失败返回nullptr - */ - DPdfAnnot *createHightLightAnnot(const QList &rects, QString text, QColor color = QColor()); - - /** - * @brief 更新高亮注释 - * @param dAnnot 给更新的注释指针 - * @param color 传空则不更新颜色 - * @param text 注释文字 - * @return - */ - bool updateHightLightAnnot(DPdfAnnot *dAnnot, QColor color = QColor(), QString text = ""); - - /** - * @brief 删除注释 - * @param annot 即将删除的注释指针,执行成功传入的指针会被删除 - * @return - */ - bool removeAnnot(DPdfAnnot *dAnnot); - - /** - * @brief 搜索 - * @param text 搜索关键字 - * @param matchCase 区分大小写 - * @param wholeWords 整个单词 - * @return - */ - QVector search(const QString &text, bool matchCase = false, bool wholeWords = false); - - /** - * @brief 获取当前支持操作的所有注释 - * @return 注释列表,只会列出已支持的注释 - */ - QList annots(); - - /** - * @brief 获取当前支持操作的所有链接 - * @return - */ - QList links(); - - /** - * @brief 获取当前widget annots - * @return - */ - QList widgets(); - - /** - * @brief 初始化需要延时的注释,如果link中的goto - * @param dAnnot - * @return - */ - bool initAnnot(DPdfAnnot *dAnnot); - -signals: - /** - * @brief 添加注释时触发 ,在需要的时候可以重新获取annotations() - * @param annot 新增加的annot - */ - void annotAdded(DPdfAnnot *annot); - - /** - * @brief 注释被更新时触发 ,在需要的时候可以重新获取annotations() - * @param annot 被更新的annot - */ - void annotUpdated(DPdfAnnot *annot); - - /** - * @brief 注释被删除时触发 ,在需要的时候可以重新获取annotations() - * @param annot 被移除的annot 注意这个已经是个将要被析构后的地址 只用于做匹配移除 - */ - void annotRemoved(DPdfAnnot *annot); - -private: - DPdfPage(DPdfDocHandler *handler, int pageIndex, qreal xRes = 72, qreal yRes = 72); - - QScopedPointer d_ptr; -}; - -#endif // DPDFPAGE_H diff --git a/3rdparty/deepin-pdfium/misc/deepin-pdfiumConfig.cmake.in b/3rdparty/deepin-pdfium/misc/deepin-pdfiumConfig.cmake.in deleted file mode 100644 index f5665fc75..000000000 --- a/3rdparty/deepin-pdfium/misc/deepin-pdfiumConfig.cmake.in +++ /dev/null @@ -1,11 +0,0 @@ -@PACKAGE_INIT@ - -set_and_check(deepin-pdfium_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@") -set_and_check(deepin-pdfium_LIBRARY "@PACKAGE_LIB_INSTALL_DIR@") - -check_required_components(deepin-pdfium) - -include(CMakeFindDependencyMacro) -find_dependency(Qt@QT_VERSION_MAJOR@ COMPONENTS Core Gui REQUIRED) - -include("${CMAKE_CURRENT_LIST_DIR}/deepin-pdfiumTargets.cmake") \ No newline at end of file diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/CMakeLists.txt b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/CMakeLists.txt deleted file mode 100644 index 3e5dbc769..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/CMakeLists.txt +++ /dev/null @@ -1,152 +0,0 @@ -add_library(pdfium STATIC) - -# # 基本定义 -# target_compile_definitions(pdfium -# PRIVATE -# # thrid_party 定义 -# # DEFINE_PS_TABLES_DATA -# # FT_CONFIG_OPTION_ADOBE_GLYPH_LIST -# # 系统库定义 -# USE_SYSTEM_LIBPNG -# USE_SYSTEM_ICUUC -# USE_SYSTEM_LCMS2 -# USE_SYSTEM_LIBOPENJPEG2 -# USE_SYSTEM_FREETYPE -# ) -target_compile_definitions(pdfium - PRIVATE - # thrid_party 定义 - DEFINE_PS_TABLES_DATA -) - -# 架构相关定义 -if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64") - target_compile_definitions(pdfium PRIVATE - _FX_CPU_=_FX_X64_ - ARCH_CPU_ARM64 - ) - target_compile_options(pdfium PRIVATE -fPIC) -elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "mips64") - target_compile_definitions(pdfium PRIVATE _MIPS_ARCH_LOONGSON) - target_compile_options(pdfium PRIVATE - -O3 - -ftree-vectorize - -march=loongson3a - -mhard-float - -mno-micromips - -mno-mips16 - -flax-vector-conversions - -mloongson-ext2 - -mloongson-mmi - ) -elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "loongarch64") - target_compile_definitions(pdfium PRIVATE _MIPS_ARCH_LOONGSON) -elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "sw_64|sw64") - target_compile_definitions(pdfium PRIVATE ARCH_CPU_SW64) - target_compile_options(pdfium PRIVATE -fPIC) -endif() - -file(GLOB_RECURSE PUB_HDR - ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/public/*.h -) - -# fpdfsdk -file(GLOB_RECURSE SDK_HDR - ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/fpdfsdk/*.h -) -file(GLOB_RECURSE SDK_SRC - ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/fpdfsdk/*.cpp -) - -# core -file(GLOB_RECURSE CORE_HDR - ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/*.h -) -file(GLOB_RECURSE CORE_SRC - ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/*.cpp -) - -# # 源文件 -# target_sources(pdfium -# PRIVATE -# # Public headers -# ${PUB_HDRS} -# ) - - -# # 源文件 -# target_sources(pdfium -# PRIVATE -# # Public headers -# pdfium/public/cpp/fpdf_deleters.h -# pdfium/public/cpp/fpdf_scopers.h -# pdfium/public/fpdf_annot.h -# pdfium/public/fpdf_attachment.h -# pdfium/public/fpdf_catalog.h -# pdfium/public/fpdf_dataavail.h -# pdfium/public/fpdf_doc.h -# pdfium/public/fpdf_edit.h -# pdfium/public/fpdf_ext.h -# pdfium/public/fpdf_flatten.h -# pdfium/public/fpdf_formfill.h -# pdfium/public/fpdf_fwlevent.h -# pdfium/public/fpdf_javascript.h -# pdfium/public/fpdf_ppo.h -# pdfium/public/fpdf_progressive.h -# pdfium/public/fpdf_save.h -# pdfium/public/fpdf_searchex.h -# pdfium/public/fpdf_signature.h -# pdfium/public/fpdf_structtree.h -# pdfium/public/fpdf_sysfontinfo.h -# pdfium/public/fpdf_text.h -# pdfium/public/fpdf_thumbnail.h -# pdfium/public/fpdf_transformpage.h -# pdfium/public/fpdfview.h -# ) - -# 包含子模块 -#include(fx_freetype.cmake) -include(fpdfsdk.cmake) -include(core.cmake) -#include(fx_libopenjpeg.cmake) -include(fx_agg.cmake) -# include(fxjs.cmake) -# #include(fx_lcms2.cmake) -include(fx_skia.cmake) -include(fx_base.cmake) - -# target_include_directories(pdfium -# PUBLIC -# ${CMAKE_CURRENT_SOURCE_DIR}/pdfium -# ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/freetype/include -# PRIVATE -# ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party -# ) - -target_include_directories(pdfium - PUBLIC - ${CMAKE_CURRENT_SOURCE_DIR}/pdfium -) - -# 查找系统依赖 -find_package(PkgConfig REQUIRED) -pkg_check_modules(PDFIUM_DEPS REQUIRED - libopenjp2 - lcms2 - freetype2 - zlib - libpng - libjpeg -) - -# 链接系统依赖 -target_link_libraries(pdfium - PRIVATE - ${PDFIUM_DEPS_LIBRARIES} - icuuc -) - -target_include_directories(pdfium - PRIVATE - ${PDFIUM_DEPS_INCLUDE_DIRS} -) \ No newline at end of file diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/core.cmake b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/core.cmake deleted file mode 100644 index ce7649199..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/core.cmake +++ /dev/null @@ -1,633 +0,0 @@ -target_sources(pdfium - PRIVATE - # Core files - pdfium/core/fdrm/fx_crypt.h - pdfium/core/fpdfapi/cmaps/CNS1/cmaps_cns1.h - pdfium/core/fpdfapi/cmaps/GB1/cmaps_gb1.h - pdfium/core/fpdfapi/cmaps/Japan1/cmaps_japan1.h - pdfium/core/fpdfapi/cmaps/Korea1/cmaps_korea1.h - pdfium/core/fpdfapi/cmaps/fpdf_cmaps.h - pdfium/core/fpdfapi/edit/cpdf_contentstream_write_utils.h - pdfium/core/fpdfapi/edit/cpdf_creator.h - pdfium/core/fpdfapi/edit/cpdf_pagecontentgenerator.h - pdfium/core/fpdfapi/edit/cpdf_pagecontentmanager.h - pdfium/core/fpdfapi/edit/cpdf_stringarchivestream.h - pdfium/core/fpdfapi/font/cfx_cttgsubtable.h - pdfium/core/fpdfapi/font/cfx_stockfontarray.h - pdfium/core/fpdfapi/font/cpdf_cid2unicodemap.h - pdfium/core/fpdfapi/font/cpdf_cidfont.h - pdfium/core/fpdfapi/font/cpdf_cmap.h - pdfium/core/fpdfapi/font/cpdf_cmapmanager.h - pdfium/core/fpdfapi/font/cpdf_cmapparser.h - pdfium/core/fpdfapi/font/cpdf_font.h - pdfium/core/fpdfapi/font/cpdf_fontencoding.h - pdfium/core/fpdfapi/font/cpdf_fontglobals.h - pdfium/core/fpdfapi/font/cpdf_simplefont.h - pdfium/core/fpdfapi/font/cpdf_tounicodemap.h - pdfium/core/fpdfapi/font/cpdf_truetypefont.h - pdfium/core/fpdfapi/font/cpdf_type1font.h - pdfium/core/fpdfapi/font/cpdf_type3char.h - pdfium/core/fpdfapi/font/cpdf_type3font.h - pdfium/core/fpdfapi/page/cpdf_allstates.h - pdfium/core/fpdfapi/page/cpdf_annotcontext.h - pdfium/core/fpdfapi/page/cpdf_clippath.h - pdfium/core/fpdfapi/page/cpdf_color.h - pdfium/core/fpdfapi/page/cpdf_colorspace.h - pdfium/core/fpdfapi/page/cpdf_colorstate.h - pdfium/core/fpdfapi/page/cpdf_contentmarkitem.h - pdfium/core/fpdfapi/page/cpdf_contentmarks.h - pdfium/core/fpdfapi/page/cpdf_contentparser.h - pdfium/core/fpdfapi/page/cpdf_devicecs.h - pdfium/core/fpdfapi/page/cpdf_dib.h - pdfium/core/fpdfapi/page/cpdf_docpagedata.h - pdfium/core/fpdfapi/page/cpdf_expintfunc.h - pdfium/core/fpdfapi/page/cpdf_form.h - pdfium/core/fpdfapi/page/cpdf_formobject.h - pdfium/core/fpdfapi/page/cpdf_function.h - pdfium/core/fpdfapi/page/cpdf_generalstate.h - pdfium/core/fpdfapi/page/cpdf_graphicstates.h - pdfium/core/fpdfapi/page/cpdf_iccprofile.h - pdfium/core/fpdfapi/page/cpdf_image.h - pdfium/core/fpdfapi/page/cpdf_imageobject.h - pdfium/core/fpdfapi/page/cpdf_meshstream.h - pdfium/core/fpdfapi/page/cpdf_occontext.h - pdfium/core/fpdfapi/page/cpdf_page.h - pdfium/core/fpdfapi/page/cpdf_pagemodule.h - pdfium/core/fpdfapi/page/cpdf_pageobject.h - pdfium/core/fpdfapi/page/cpdf_pageobjectholder.h - pdfium/core/fpdfapi/page/cpdf_path.h - pdfium/core/fpdfapi/page/cpdf_pathobject.h - pdfium/core/fpdfapi/page/cpdf_pattern.h - pdfium/core/fpdfapi/page/cpdf_patterncs.h - pdfium/core/fpdfapi/page/cpdf_psengine.h - pdfium/core/fpdfapi/page/cpdf_psfunc.h - pdfium/core/fpdfapi/page/cpdf_sampledfunc.h - pdfium/core/fpdfapi/page/cpdf_shadingobject.h - pdfium/core/fpdfapi/page/cpdf_shadingpattern.h - pdfium/core/fpdfapi/page/cpdf_stitchfunc.h - pdfium/core/fpdfapi/page/cpdf_streamcontentparser.h - pdfium/core/fpdfapi/page/cpdf_streamparser.h - pdfium/core/fpdfapi/page/cpdf_textobject.h - pdfium/core/fpdfapi/page/cpdf_textstate.h - pdfium/core/fpdfapi/page/cpdf_tilingpattern.h - pdfium/core/fpdfapi/page/cpdf_transferfunc.h - pdfium/core/fpdfapi/page/cpdf_transferfuncdib.h - pdfium/core/fpdfapi/page/cpdf_transparency.h - pdfium/core/fpdfapi/page/ipdf_page.h - pdfium/core/fpdfapi/parser/cfdf_document.h - pdfium/core/fpdfapi/parser/cpdf_array.h - pdfium/core/fpdfapi/parser/cpdf_boolean.h - pdfium/core/fpdfapi/parser/cpdf_cross_ref_avail.h - pdfium/core/fpdfapi/parser/cpdf_cross_ref_table.h - pdfium/core/fpdfapi/parser/cpdf_crypto_handler.h - pdfium/core/fpdfapi/parser/cpdf_data_avail.h - pdfium/core/fpdfapi/parser/cpdf_dictionary.h - pdfium/core/fpdfapi/parser/cpdf_document.h - pdfium/core/fpdfapi/parser/cpdf_encryptor.h - pdfium/core/fpdfapi/parser/cpdf_flateencoder.h - pdfium/core/fpdfapi/parser/cpdf_hint_tables.h - pdfium/core/fpdfapi/parser/cpdf_indirect_object_holder.h - pdfium/core/fpdfapi/parser/cpdf_linearized_header.h - pdfium/core/fpdfapi/parser/cpdf_name.h - pdfium/core/fpdfapi/parser/cpdf_null.h - pdfium/core/fpdfapi/parser/cpdf_number.h - pdfium/core/fpdfapi/parser/cpdf_object.h - pdfium/core/fpdfapi/parser/cpdf_object_avail.h - pdfium/core/fpdfapi/parser/cpdf_object_stream.h - pdfium/core/fpdfapi/parser/cpdf_object_walker.h - pdfium/core/fpdfapi/parser/cpdf_page_object_avail.h - pdfium/core/fpdfapi/parser/cpdf_parser.h - pdfium/core/fpdfapi/parser/cpdf_read_validator.h - pdfium/core/fpdfapi/parser/cpdf_reference.h - pdfium/core/fpdfapi/parser/cpdf_security_handler.h - pdfium/core/fpdfapi/parser/cpdf_simple_parser.h - pdfium/core/fpdfapi/parser/cpdf_stream.h - pdfium/core/fpdfapi/parser/cpdf_stream_acc.h - pdfium/core/fpdfapi/parser/cpdf_string.h - pdfium/core/fpdfapi/parser/cpdf_syntax_parser.h - pdfium/core/fpdfapi/parser/fpdf_parser_decode.h - pdfium/core/fpdfapi/parser/fpdf_parser_utility.h - pdfium/core/fpdfapi/render/charposlist.h - pdfium/core/fpdfapi/render/cpdf_devicebuffer.h - pdfium/core/fpdfapi/render/cpdf_docrenderdata.h - pdfium/core/fpdfapi/render/cpdf_imagecacheentry.h - pdfium/core/fpdfapi/render/cpdf_imageloader.h - pdfium/core/fpdfapi/render/cpdf_imagerenderer.h - pdfium/core/fpdfapi/render/cpdf_pagerendercache.h - pdfium/core/fpdfapi/render/cpdf_pagerendercontext.h - pdfium/core/fpdfapi/render/cpdf_progressiverenderer.h - pdfium/core/fpdfapi/render/cpdf_rendercontext.h - pdfium/core/fpdfapi/render/cpdf_renderoptions.h - pdfium/core/fpdfapi/render/cpdf_rendershading.h - pdfium/core/fpdfapi/render/cpdf_renderstatus.h - pdfium/core/fpdfapi/render/cpdf_rendertiling.h - pdfium/core/fpdfapi/render/cpdf_scaledrenderbuffer.h - pdfium/core/fpdfapi/render/cpdf_textrenderer.h - pdfium/core/fpdfapi/render/cpdf_type3cache.h - pdfium/core/fpdfapi/render/cpdf_type3glyphmap.h - pdfium/core/fpdfdoc/cba_fontmap.h - pdfium/core/fpdfdoc/cline.h - pdfium/core/fpdfdoc/cpdf_aaction.h - pdfium/core/fpdfdoc/cpdf_action.h - pdfium/core/fpdfdoc/cpdf_annot.h - pdfium/core/fpdfdoc/cpdf_annotlist.h - pdfium/core/fpdfdoc/cpdf_apsettings.h - pdfium/core/fpdfdoc/cpdf_bookmark.h - pdfium/core/fpdfdoc/cpdf_bookmarktree.h - pdfium/core/fpdfdoc/cpdf_color_utils.h - pdfium/core/fpdfdoc/cpdf_defaultappearance.h - pdfium/core/fpdfdoc/cpdf_dest.h - pdfium/core/fpdfdoc/cpdf_filespec.h - pdfium/core/fpdfdoc/cpdf_formcontrol.h - pdfium/core/fpdfdoc/cpdf_formfield.h - pdfium/core/fpdfdoc/cpdf_icon.h - pdfium/core/fpdfdoc/cpdf_iconfit.h - pdfium/core/fpdfdoc/cpdf_interactiveform.h - pdfium/core/fpdfdoc/cpdf_link.h - pdfium/core/fpdfdoc/cpdf_linklist.h - pdfium/core/fpdfdoc/cpdf_metadata.h - pdfium/core/fpdfdoc/cpdf_nametree.h - pdfium/core/fpdfdoc/cpdf_numbertree.h - pdfium/core/fpdfdoc/cpdf_pagelabel.h - pdfium/core/fpdfdoc/cpdf_structelement.h - pdfium/core/fpdfdoc/cpdf_structtree.h - pdfium/core/fpdfdoc/cpdf_variabletext.h - pdfium/core/fpdfdoc/cpdf_viewerpreferences.h - pdfium/core/fpdfdoc/cpvt_floatrect.h - pdfium/core/fpdfdoc/cpvt_fontmap.h - pdfium/core/fpdfdoc/cpvt_generateap.h - pdfium/core/fpdfdoc/cpvt_line.h - pdfium/core/fpdfdoc/cpvt_lineinfo.h - pdfium/core/fpdfdoc/cpvt_word.h - pdfium/core/fpdfdoc/cpvt_wordinfo.h - pdfium/core/fpdfdoc/cpvt_wordplace.h - pdfium/core/fpdfdoc/cpvt_wordrange.h - pdfium/core/fpdfdoc/csection.h - pdfium/core/fpdfdoc/ctypeset.h - pdfium/core/fpdfdoc/ipvt_fontmap.h - pdfium/core/fpdftext/cpdf_linkextract.h - pdfium/core/fpdftext/cpdf_textpage.h - pdfium/core/fpdftext/cpdf_textpagefind.h - pdfium/core/fpdftext/unicodenormalizationdata.h - pdfium/core/fxcodec/basic/basicmodule.h - pdfium/core/fxcodec/cfx_codec_memory.h - pdfium/core/fxcodec/fax/faxmodule.h - pdfium/core/fxcodec/flate/flatemodule.h - pdfium/core/fxcodec/fx_codec.h - pdfium/core/fxcodec/fx_codec_def.h - pdfium/core/fxcodec/icc/iccmodule.h - pdfium/core/fxcodec/jbig2/JBig2_ArithDecoder.h - pdfium/core/fxcodec/jbig2/JBig2_ArithIntDecoder.h - pdfium/core/fxcodec/jbig2/JBig2_BitStream.h - pdfium/core/fxcodec/jbig2/JBig2_Context.h - pdfium/core/fxcodec/jbig2/JBig2_Define.h - pdfium/core/fxcodec/jbig2/JBig2_DocumentContext.h - pdfium/core/fxcodec/jbig2/JBig2_GrdProc.h - pdfium/core/fxcodec/jbig2/JBig2_GrrdProc.h - pdfium/core/fxcodec/jbig2/JBig2_HtrdProc.h - pdfium/core/fxcodec/jbig2/JBig2_HuffmanDecoder.h - pdfium/core/fxcodec/jbig2/JBig2_HuffmanTable.h - pdfium/core/fxcodec/jbig2/JBig2_Image.h - pdfium/core/fxcodec/jbig2/JBig2_Page.h - pdfium/core/fxcodec/jbig2/JBig2_PatternDict.h - pdfium/core/fxcodec/jbig2/JBig2_PddProc.h - pdfium/core/fxcodec/jbig2/JBig2_SddProc.h - pdfium/core/fxcodec/jbig2/JBig2_Segment.h - pdfium/core/fxcodec/jbig2/JBig2_SymbolDict.h - pdfium/core/fxcodec/jbig2/JBig2_TrdProc.h - pdfium/core/fxcodec/jbig2/jbig2_decoder.h - pdfium/core/fxcodec/jpeg/jpeg_common.h - pdfium/core/fxcodec/jpeg/jpegmodule.h - pdfium/core/fxcodec/jpx/cjpx_decoder.h - pdfium/core/fxcodec/jpx/jpx_decode_utils.h - pdfium/core/fxcodec/scanlinedecoder.h - pdfium/core/fxcrt/xml/cfx_xmlchardata.h - pdfium/core/fxcrt/xml/cfx_xmldocument.h - pdfium/core/fxcrt/xml/cfx_xmlelement.h - pdfium/core/fxcrt/xml/cfx_xmlinstruction.h - pdfium/core/fxcrt/xml/cfx_xmlnode.h - pdfium/core/fxcrt/xml/cfx_xmlparser.h - pdfium/core/fxcrt/xml/cfx_xmltext.h - pdfium/core/fxcrt/autonuller.h - pdfium/core/fxcrt/autorestorer.h - pdfium/core/fxcrt/byteorder.h - pdfium/core/fxcrt/bytestring.h - pdfium/core/fxcrt/cfx_binarybuf.h - pdfium/core/fxcrt/cfx_bitstream.h - pdfium/core/fxcrt/cfx_datetime.h - pdfium/core/fxcrt/cfx_fixedbufgrow.h - pdfium/core/fxcrt/cfx_readonlymemorystream.h - pdfium/core/fxcrt/cfx_seekablestreamproxy.h - pdfium/core/fxcrt/cfx_timer.h - pdfium/core/fxcrt/cfx_utf8decoder.h - pdfium/core/fxcrt/cfx_utf8encoder.h - pdfium/core/fxcrt/cfx_widetextbuf.h - pdfium/core/fxcrt/fileaccess_iface.h - pdfium/core/fxcrt/fx_bidi.h - pdfium/core/fxcrt/fx_codepage.h - pdfium/core/fxcrt/fx_coordinates.h - pdfium/core/fxcrt/fx_extension.h - pdfium/core/fxcrt/fx_memory.h - pdfium/core/fxcrt/fx_memory_wrappers.h - pdfium/core/fxcrt/fx_number.h - pdfium/core/fxcrt/fx_random.h - pdfium/core/fxcrt/fx_safe_types.h - pdfium/core/fxcrt/fx_stream.h - pdfium/core/fxcrt/fx_string.h - pdfium/core/fxcrt/fx_system.h - pdfium/core/fxcrt/fx_unicode.h - pdfium/core/fxcrt/maybe_owned.h - pdfium/core/fxcrt/observed_ptr.h - pdfium/core/fxcrt/pauseindicator_iface.h - pdfium/core/fxcrt/retain_ptr.h - pdfium/core/fxcrt/retained_tree_node.h - pdfium/core/fxcrt/shared_copy_on_write.h - pdfium/core/fxcrt/string_data_template.h - pdfium/core/fxcrt/string_pool_template.h - pdfium/core/fxcrt/string_view_template.h - pdfium/core/fxcrt/timerhandler_iface.h - pdfium/core/fxcrt/tree_node.h - pdfium/core/fxcrt/unowned_ptr.h - pdfium/core/fxcrt/weak_ptr.h - pdfium/core/fxcrt/widestring.h - pdfium/core/fxge/dib/cfx_bitmapcomposer.h - pdfium/core/fxge/dib/cfx_bitmapstorer.h - pdfium/core/fxge/dib/cfx_cmyk_to_srgb.h - pdfium/core/fxge/dib/cfx_dibbase.h - pdfium/core/fxge/dib/cfx_dibitmap.h - pdfium/core/fxge/dib/cfx_imagerenderer.h - pdfium/core/fxge/dib/cfx_imagestretcher.h - pdfium/core/fxge/dib/cfx_imagetransformer.h - pdfium/core/fxge/dib/cfx_scanlinecompositor.h - pdfium/core/fxge/dib/cstretchengine.h - pdfium/core/fxge/dib/scanlinecomposer_iface.h - pdfium/core/fxge/fontdata/chromefontdata/chromefontdata.h - pdfium/core/fxge/cfx_cliprgn.h - pdfium/core/fxge/cfx_color.h - pdfium/core/fxge/cfx_defaultrenderdevice.h - pdfium/core/fxge/cfx_drawutils.h - pdfium/core/fxge/cfx_face.h - pdfium/core/fxge/cfx_fillrenderoptions.h - pdfium/core/fxge/cfx_folderfontinfo.h - pdfium/core/fxge/cfx_font.h - pdfium/core/fxge/cfx_fontcache.h - pdfium/core/fxge/cfx_fontmapper.h - pdfium/core/fxge/cfx_fontmgr.h - pdfium/core/fxge/cfx_gemodule.h - pdfium/core/fxge/cfx_glyphbitmap.h - pdfium/core/fxge/cfx_glyphcache.h - pdfium/core/fxge/cfx_graphstate.h - pdfium/core/fxge/cfx_graphstatedata.h - pdfium/core/fxge/cfx_pathdata.h - pdfium/core/fxge/cfx_renderdevice.h - pdfium/core/fxge/cfx_substfont.h - pdfium/core/fxge/cfx_textrenderoptions.h - pdfium/core/fxge/cfx_unicodeencoding.h - pdfium/core/fxge/fx_dib.h - pdfium/core/fxge/fx_font.h - pdfium/core/fxge/fx_freetype.h - pdfium/core/fxge/render_defines.h - pdfium/core/fxge/renderdevicedriver_iface.h - pdfium/core/fxge/scoped_font_transform.h - pdfium/core/fxge/systemfontinfo_iface.h - pdfium/core/fxge/text_char_pos.h - pdfium/core/fxge/text_glyph_pos.h - pdfium/core/fxge/agg/fx_agg_driver.h - pdfium/core/fxcrt/cfx_fileaccess_posix.h - - # Source files - pdfium/core/fxcrt/cfx_fileaccess_posix.cpp - pdfium/core/fdrm/fx_crypt.cpp - pdfium/core/fdrm/fx_crypt_aes.cpp - pdfium/core/fdrm/fx_crypt_sha.cpp - pdfium/core/fpdfapi/cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp - pdfium/core/fpdfapi/cmaps/CNS1/B5pc-H_0.cpp - pdfium/core/fpdfapi/cmaps/CNS1/B5pc-V_0.cpp - pdfium/core/fpdfapi/cmaps/CNS1/cmaps_cns1.cpp - pdfium/core/fpdfapi/cmaps/CNS1/CNS-EUC-H_0.cpp - pdfium/core/fpdfapi/cmaps/CNS1/CNS-EUC-V_0.cpp - pdfium/core/fpdfapi/cmaps/CNS1/ETen-B5-H_0.cpp - pdfium/core/fpdfapi/cmaps/CNS1/ETen-B5-V_0.cpp - pdfium/core/fpdfapi/cmaps/CNS1/ETenms-B5-H_0.cpp - pdfium/core/fpdfapi/cmaps/CNS1/ETenms-B5-V_0.cpp - pdfium/core/fpdfapi/cmaps/CNS1/HKscs-B5-H_5.cpp - pdfium/core/fpdfapi/cmaps/CNS1/HKscs-B5-V_5.cpp - pdfium/core/fpdfapi/cmaps/CNS1/UniCNS-UCS2-H_3.cpp - pdfium/core/fpdfapi/cmaps/CNS1/UniCNS-UCS2-V_3.cpp - pdfium/core/fpdfapi/cmaps/CNS1/UniCNS-UTF16-H_0.cpp - pdfium/core/fpdfapi/cmaps/GB1/Adobe-GB1-UCS2_5.cpp - pdfium/core/fpdfapi/cmaps/GB1/cmaps_gb1.cpp - pdfium/core/fpdfapi/cmaps/GB1/GB-EUC-H_0.cpp - pdfium/core/fpdfapi/cmaps/GB1/GB-EUC-V_0.cpp - pdfium/core/fpdfapi/cmaps/GB1/GBK-EUC-H_2.cpp - pdfium/core/fpdfapi/cmaps/GB1/GBK-EUC-V_2.cpp - pdfium/core/fpdfapi/cmaps/GB1/GBK2K-H_5.cpp - pdfium/core/fpdfapi/cmaps/GB1/GBK2K-V_5.cpp - pdfium/core/fpdfapi/cmaps/GB1/GBKp-EUC-H_2.cpp - pdfium/core/fpdfapi/cmaps/GB1/GBKp-EUC-V_2.cpp - pdfium/core/fpdfapi/cmaps/GB1/GBpc-EUC-H_0.cpp - pdfium/core/fpdfapi/cmaps/GB1/GBpc-EUC-V_0.cpp - pdfium/core/fpdfapi/cmaps/GB1/UniGB-UCS2-H_4.cpp - pdfium/core/fpdfapi/cmaps/GB1/UniGB-UCS2-V_4.cpp - pdfium/core/fpdfapi/cmaps/Japan1/83pv-RKSJ-H_1.cpp - pdfium/core/fpdfapi/cmaps/Japan1/90ms-RKSJ-H_2.cpp - pdfium/core/fpdfapi/cmaps/Japan1/90ms-RKSJ-V_2.cpp - pdfium/core/fpdfapi/cmaps/Japan1/90msp-RKSJ-H_2.cpp - pdfium/core/fpdfapi/cmaps/Japan1/90msp-RKSJ-V_2.cpp - pdfium/core/fpdfapi/cmaps/Japan1/90pv-RKSJ-H_1.cpp - pdfium/core/fpdfapi/cmaps/Japan1/Add-RKSJ-H_1.cpp - pdfium/core/fpdfapi/cmaps/Japan1/Add-RKSJ-V_1.cpp - pdfium/core/fpdfapi/cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp - pdfium/core/fpdfapi/cmaps/Japan1/cmaps_japan1.cpp - pdfium/core/fpdfapi/cmaps/Japan1/EUC-H_1.cpp - pdfium/core/fpdfapi/cmaps/Japan1/EUC-V_1.cpp - pdfium/core/fpdfapi/cmaps/Japan1/Ext-RKSJ-H_2.cpp - pdfium/core/fpdfapi/cmaps/Japan1/Ext-RKSJ-V_2.cpp - pdfium/core/fpdfapi/cmaps/Japan1/H_1.cpp - pdfium/core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-H_4.cpp - pdfium/core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp - pdfium/core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp - pdfium/core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-V_4.cpp - pdfium/core/fpdfapi/cmaps/Japan1/V_1.cpp - pdfium/core/fpdfapi/cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp - pdfium/core/fpdfapi/cmaps/Korea1/cmaps_korea1.cpp - pdfium/core/fpdfapi/cmaps/Korea1/KSC-EUC-H_0.cpp - pdfium/core/fpdfapi/cmaps/Korea1/KSC-EUC-V_0.cpp - pdfium/core/fpdfapi/cmaps/Korea1/KSCms-UHC-H_1.cpp - pdfium/core/fpdfapi/cmaps/Korea1/KSCms-UHC-HW-H_1.cpp - pdfium/core/fpdfapi/cmaps/Korea1/KSCms-UHC-HW-V_1.cpp - pdfium/core/fpdfapi/cmaps/Korea1/KSCms-UHC-V_1.cpp - pdfium/core/fpdfapi/cmaps/Korea1/KSCpc-EUC-H_0.cpp - pdfium/core/fpdfapi/cmaps/Korea1/UniKS-UCS2-H_1.cpp - pdfium/core/fpdfapi/cmaps/Korea1/UniKS-UCS2-V_1.cpp - pdfium/core/fpdfapi/cmaps/Korea1/UniKS-UTF16-H_0.cpp - pdfium/core/fpdfapi/cmaps/fpdf_cmaps.cpp - pdfium/core/fpdfapi/edit/cpdf_contentstream_write_utils.cpp - pdfium/core/fpdfapi/edit/cpdf_creator.cpp - pdfium/core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp - pdfium/core/fpdfapi/edit/cpdf_pagecontentmanager.cpp - pdfium/core/fpdfapi/edit/cpdf_stringarchivestream.cpp - pdfium/core/fpdfapi/font/cfx_cttgsubtable.cpp - pdfium/core/fpdfapi/font/cfx_stockfontarray.cpp - pdfium/core/fpdfapi/font/cpdf_cid2unicodemap.cpp - pdfium/core/fpdfapi/font/cpdf_cidfont.cpp - pdfium/core/fpdfapi/font/cpdf_cmap.cpp - pdfium/core/fpdfapi/font/cpdf_cmapmanager.cpp - pdfium/core/fpdfapi/font/cpdf_cmapparser.cpp - pdfium/core/fpdfapi/font/cpdf_font.cpp - pdfium/core/fpdfapi/font/cpdf_fontencoding.cpp - pdfium/core/fpdfapi/font/cpdf_fontglobals.cpp - pdfium/core/fpdfapi/font/cpdf_simplefont.cpp - pdfium/core/fpdfapi/font/cpdf_tounicodemap.cpp - pdfium/core/fpdfapi/font/cpdf_truetypefont.cpp - pdfium/core/fpdfapi/font/cpdf_type1font.cpp - pdfium/core/fpdfapi/font/cpdf_type3char.cpp - pdfium/core/fpdfapi/font/cpdf_type3font.cpp - pdfium/core/fpdfapi/page/cpdf_allstates.cpp - pdfium/core/fpdfapi/page/cpdf_annotcontext.cpp - pdfium/core/fpdfapi/page/cpdf_clippath.cpp - pdfium/core/fpdfapi/page/cpdf_color.cpp - pdfium/core/fpdfapi/page/cpdf_colorspace.cpp - pdfium/core/fpdfapi/page/cpdf_colorstate.cpp - pdfium/core/fpdfapi/page/cpdf_contentmarkitem.cpp - pdfium/core/fpdfapi/page/cpdf_contentmarks.cpp - pdfium/core/fpdfapi/page/cpdf_contentparser.cpp - pdfium/core/fpdfapi/page/cpdf_devicecs.cpp - pdfium/core/fpdfapi/page/cpdf_dib.cpp - pdfium/core/fpdfapi/page/cpdf_docpagedata.cpp - pdfium/core/fpdfapi/page/cpdf_expintfunc.cpp - pdfium/core/fpdfapi/page/cpdf_form.cpp - pdfium/core/fpdfapi/page/cpdf_formobject.cpp - pdfium/core/fpdfapi/page/cpdf_function.cpp - pdfium/core/fpdfapi/page/cpdf_generalstate.cpp - pdfium/core/fpdfapi/page/cpdf_graphicstates.cpp - pdfium/core/fpdfapi/page/cpdf_iccprofile.cpp - pdfium/core/fpdfapi/page/cpdf_image.cpp - pdfium/core/fpdfapi/page/cpdf_imageobject.cpp - pdfium/core/fpdfapi/page/cpdf_meshstream.cpp - pdfium/core/fpdfapi/page/cpdf_occontext.cpp - pdfium/core/fpdfapi/page/cpdf_page.cpp - pdfium/core/fpdfapi/page/cpdf_pagemodule.cpp - pdfium/core/fpdfapi/page/cpdf_pageobject.cpp - pdfium/core/fpdfapi/page/cpdf_pageobjectholder.cpp - pdfium/core/fpdfapi/page/cpdf_path.cpp - pdfium/core/fpdfapi/page/cpdf_pathobject.cpp - pdfium/core/fpdfapi/page/cpdf_pattern.cpp - pdfium/core/fpdfapi/page/cpdf_patterncs.cpp - pdfium/core/fpdfapi/page/cpdf_psengine.cpp - pdfium/core/fpdfapi/page/cpdf_psfunc.cpp - pdfium/core/fpdfapi/page/cpdf_sampledfunc.cpp - pdfium/core/fpdfapi/page/cpdf_shadingobject.cpp - pdfium/core/fpdfapi/page/cpdf_shadingpattern.cpp - pdfium/core/fpdfapi/page/cpdf_stitchfunc.cpp - pdfium/core/fpdfapi/page/cpdf_streamcontentparser.cpp - pdfium/core/fpdfapi/page/cpdf_streamparser.cpp - pdfium/core/fpdfapi/page/cpdf_textobject.cpp - pdfium/core/fpdfapi/page/cpdf_textstate.cpp - pdfium/core/fpdfapi/page/cpdf_tilingpattern.cpp - pdfium/core/fpdfapi/page/cpdf_transferfunc.cpp - pdfium/core/fpdfapi/page/cpdf_transferfuncdib.cpp - pdfium/core/fpdfapi/page/cpdf_transparency.cpp - pdfium/core/fpdfapi/parser/cfdf_document.cpp - pdfium/core/fpdfapi/parser/cpdf_array.cpp - pdfium/core/fpdfapi/parser/cpdf_boolean.cpp - pdfium/core/fpdfapi/parser/cpdf_cross_ref_avail.cpp - pdfium/core/fpdfapi/parser/cpdf_cross_ref_table.cpp - pdfium/core/fpdfapi/parser/cpdf_crypto_handler.cpp - pdfium/core/fpdfapi/parser/cpdf_data_avail.cpp - pdfium/core/fpdfapi/parser/cpdf_dictionary.cpp - pdfium/core/fpdfapi/parser/cpdf_document.cpp - pdfium/core/fpdfapi/parser/cpdf_encryptor.cpp - pdfium/core/fpdfapi/parser/cpdf_flateencoder.cpp - pdfium/core/fpdfapi/parser/cpdf_hint_tables.cpp - pdfium/core/fpdfapi/parser/cpdf_indirect_object_holder.cpp - pdfium/core/fpdfapi/parser/cpdf_linearized_header.cpp - pdfium/core/fpdfapi/parser/cpdf_name.cpp - pdfium/core/fpdfapi/parser/cpdf_null.cpp - pdfium/core/fpdfapi/parser/cpdf_number.cpp - pdfium/core/fpdfapi/parser/cpdf_object.cpp - pdfium/core/fpdfapi/parser/cpdf_object_avail.cpp - pdfium/core/fpdfapi/parser/cpdf_object_stream.cpp - pdfium/core/fpdfapi/parser/cpdf_object_walker.cpp - pdfium/core/fpdfapi/parser/cpdf_page_object_avail.cpp - pdfium/core/fpdfapi/parser/cpdf_parser.cpp - pdfium/core/fpdfapi/parser/cpdf_read_validator.cpp - pdfium/core/fpdfapi/parser/cpdf_reference.cpp - pdfium/core/fpdfapi/parser/cpdf_security_handler.cpp - pdfium/core/fpdfapi/parser/cpdf_simple_parser.cpp - pdfium/core/fpdfapi/parser/cpdf_stream.cpp - pdfium/core/fpdfapi/parser/cpdf_stream_acc.cpp - pdfium/core/fpdfapi/parser/cpdf_string.cpp - pdfium/core/fpdfapi/parser/cpdf_syntax_parser.cpp - pdfium/core/fpdfapi/parser/fpdf_parser_decode.cpp - pdfium/core/fpdfapi/parser/fpdf_parser_utility.cpp - pdfium/core/fpdfapi/render/charposlist.cpp - pdfium/core/fpdfapi/render/cpdf_devicebuffer.cpp - pdfium/core/fpdfapi/render/cpdf_docrenderdata.cpp - pdfium/core/fpdfapi/render/cpdf_imagecacheentry.cpp - pdfium/core/fpdfapi/render/cpdf_imageloader.cpp - pdfium/core/fpdfapi/render/cpdf_imagerenderer.cpp - pdfium/core/fpdfapi/render/cpdf_pagerendercache.cpp - pdfium/core/fpdfapi/render/cpdf_pagerendercontext.cpp - pdfium/core/fpdfapi/render/cpdf_progressiverenderer.cpp - pdfium/core/fpdfapi/render/cpdf_rendercontext.cpp - pdfium/core/fpdfapi/render/cpdf_renderoptions.cpp - pdfium/core/fpdfapi/render/cpdf_rendershading.cpp - pdfium/core/fpdfapi/render/cpdf_renderstatus.cpp - pdfium/core/fpdfapi/render/cpdf_rendertiling.cpp - pdfium/core/fpdfapi/render/cpdf_scaledrenderbuffer.cpp - pdfium/core/fpdfapi/render/cpdf_textrenderer.cpp - pdfium/core/fpdfapi/render/cpdf_type3cache.cpp - pdfium/core/fpdfapi/render/cpdf_type3glyphmap.cpp - pdfium/core/fpdfdoc/cba_fontmap.cpp - pdfium/core/fpdfdoc/cline.cpp - pdfium/core/fpdfdoc/cpdf_aaction.cpp - pdfium/core/fpdfdoc/cpdf_action.cpp - pdfium/core/fpdfdoc/cpdf_annot.cpp - pdfium/core/fpdfdoc/cpdf_annotlist.cpp - pdfium/core/fpdfdoc/cpdf_apsettings.cpp - pdfium/core/fpdfdoc/cpdf_bookmark.cpp - pdfium/core/fpdfdoc/cpdf_bookmarktree.cpp - pdfium/core/fpdfdoc/cpdf_color_utils.cpp - pdfium/core/fpdfdoc/cpdf_defaultappearance.cpp - pdfium/core/fpdfdoc/cpdf_dest.cpp - pdfium/core/fpdfdoc/cpdf_filespec.cpp - pdfium/core/fpdfdoc/cpdf_formcontrol.cpp - pdfium/core/fpdfdoc/cpdf_formfield.cpp - pdfium/core/fpdfdoc/cpdf_icon.cpp - pdfium/core/fpdfdoc/cpdf_iconfit.cpp - pdfium/core/fpdfdoc/cpdf_interactiveform.cpp - pdfium/core/fpdfdoc/cpdf_link.cpp - pdfium/core/fpdfdoc/cpdf_linklist.cpp - pdfium/core/fpdfdoc/cpdf_metadata.cpp - pdfium/core/fpdfdoc/cpdf_nametree.cpp - pdfium/core/fpdfdoc/cpdf_numbertree.cpp - pdfium/core/fpdfdoc/cpdf_pagelabel.cpp - pdfium/core/fpdfdoc/cpdf_structelement.cpp - pdfium/core/fpdfdoc/cpdf_structtree.cpp - pdfium/core/fpdfdoc/cpdf_variabletext.cpp - pdfium/core/fpdfdoc/cpdf_viewerpreferences.cpp - pdfium/core/fpdfdoc/cpvt_fontmap.cpp - pdfium/core/fpdfdoc/cpvt_generateap.cpp - pdfium/core/fpdfdoc/cpvt_wordinfo.cpp - pdfium/core/fpdfdoc/csection.cpp - pdfium/core/fpdfdoc/ctypeset.cpp - pdfium/core/fpdftext/cpdf_linkextract.cpp - pdfium/core/fpdftext/cpdf_textpage.cpp - pdfium/core/fpdftext/cpdf_textpagefind.cpp - pdfium/core/fpdftext/unicodenormalizationdata.cpp - pdfium/core/fxcodec/basic/basicmodule.cpp - pdfium/core/fxcodec/cfx_codec_memory.cpp - pdfium/core/fxcodec/fax/faxmodule.cpp - pdfium/core/fxcodec/flate/flatemodule.cpp - pdfium/core/fxcodec/fx_codec.cpp - pdfium/core/fxcodec/icc/iccmodule.cpp - pdfium/core/fxcodec/jbig2/JBig2_ArithDecoder.cpp - pdfium/core/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp - pdfium/core/fxcodec/jbig2/JBig2_BitStream.cpp - pdfium/core/fxcodec/jbig2/JBig2_Context.cpp - pdfium/core/fxcodec/jbig2/JBig2_DocumentContext.cpp - pdfium/core/fxcodec/jbig2/JBig2_GrdProc.cpp - pdfium/core/fxcodec/jbig2/JBig2_GrrdProc.cpp - pdfium/core/fxcodec/jbig2/JBig2_HtrdProc.cpp - pdfium/core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp - pdfium/core/fxcodec/jbig2/JBig2_HuffmanTable.cpp - pdfium/core/fxcodec/jbig2/JBig2_Image.cpp - pdfium/core/fxcodec/jbig2/JBig2_PatternDict.cpp - pdfium/core/fxcodec/jbig2/JBig2_PddProc.cpp - pdfium/core/fxcodec/jbig2/JBig2_SddProc.cpp - pdfium/core/fxcodec/jbig2/JBig2_Segment.cpp - pdfium/core/fxcodec/jbig2/JBig2_SymbolDict.cpp - pdfium/core/fxcodec/jbig2/JBig2_TrdProc.cpp - pdfium/core/fxcodec/jbig2/jbig2_decoder.cpp - pdfium/core/fxcodec/jpeg/jpeg_common.cpp - pdfium/core/fxcodec/jpeg/jpegmodule.cpp - pdfium/core/fxcodec/jpx/cjpx_decoder.cpp - pdfium/core/fxcodec/jpx/jpx_decode_utils.cpp - pdfium/core/fxcodec/scanlinedecoder.cpp - pdfium/core/fxcrt/xml/cfx_xmlchardata.cpp - pdfium/core/fxcrt/xml/cfx_xmldocument.cpp - pdfium/core/fxcrt/xml/cfx_xmlelement.cpp - pdfium/core/fxcrt/xml/cfx_xmlinstruction.cpp - pdfium/core/fxcrt/xml/cfx_xmlnode.cpp - pdfium/core/fxcrt/xml/cfx_xmlparser.cpp - pdfium/core/fxcrt/xml/cfx_xmltext.cpp - pdfium/core/fxcrt/bytestring.cpp - pdfium/core/fxcrt/cfx_binarybuf.cpp - pdfium/core/fxcrt/cfx_bitstream.cpp - pdfium/core/fxcrt/cfx_datetime.cpp - pdfium/core/fxcrt/cfx_readonlymemorystream.cpp - pdfium/core/fxcrt/cfx_seekablestreamproxy.cpp - pdfium/core/fxcrt/cfx_timer.cpp - pdfium/core/fxcrt/cfx_utf8decoder.cpp - pdfium/core/fxcrt/cfx_utf8encoder.cpp - pdfium/core/fxcrt/cfx_widetextbuf.cpp - pdfium/core/fxcrt/fx_bidi.cpp - pdfium/core/fxcrt/fx_codepage.cpp - pdfium/core/fxcrt/fx_coordinates.cpp - pdfium/core/fxcrt/fx_extension.cpp - pdfium/core/fxcrt/fx_memory.cpp - pdfium/core/fxcrt/fx_number.cpp - pdfium/core/fxcrt/fx_random.cpp - pdfium/core/fxcrt/fx_stream.cpp - pdfium/core/fxcrt/fx_string.cpp - pdfium/core/fxcrt/fx_system.cpp - pdfium/core/fxcrt/fx_unicode.cpp - pdfium/core/fxcrt/observed_ptr.cpp - pdfium/core/fxcrt/string_data_template.cpp - pdfium/core/fxcrt/widestring.cpp - pdfium/core/fxge/dib/cfx_bitmapcomposer.cpp - pdfium/core/fxge/dib/cfx_bitmapstorer.cpp - pdfium/core/fxge/dib/cfx_cmyk_to_srgb.cpp - pdfium/core/fxge/dib/cfx_dibbase.cpp - pdfium/core/fxge/dib/cfx_dibitmap.cpp - pdfium/core/fxge/dib/cfx_imagerenderer.cpp - pdfium/core/fxge/dib/cfx_imagestretcher.cpp - pdfium/core/fxge/dib/cfx_imagetransformer.cpp - pdfium/core/fxge/dib/cfx_scanlinecompositor.cpp - pdfium/core/fxge/dib/cstretchengine.cpp - pdfium/core/fxge/dib/fx_dib_main.cpp - pdfium/core/fxge/fontdata/chromefontdata/FoxitDingbats.cpp - pdfium/core/fxge/fontdata/chromefontdata/FoxitFixed.cpp - pdfium/core/fxge/fontdata/chromefontdata/FoxitFixedBold.cpp - pdfium/core/fxge/fontdata/chromefontdata/FoxitFixedBoldItalic.cpp - pdfium/core/fxge/fontdata/chromefontdata/FoxitFixedItalic.cpp - pdfium/core/fxge/fontdata/chromefontdata/FoxitSans.cpp - pdfium/core/fxge/fontdata/chromefontdata/FoxitSansBold.cpp - pdfium/core/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.cpp - pdfium/core/fxge/fontdata/chromefontdata/FoxitSansItalic.cpp - pdfium/core/fxge/fontdata/chromefontdata/FoxitSansMM.cpp - pdfium/core/fxge/fontdata/chromefontdata/FoxitSerif.cpp - pdfium/core/fxge/fontdata/chromefontdata/FoxitSerifBold.cpp - pdfium/core/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.cpp - pdfium/core/fxge/fontdata/chromefontdata/FoxitSerifItalic.cpp - pdfium/core/fxge/fontdata/chromefontdata/FoxitSerifMM.cpp - pdfium/core/fxge/fontdata/chromefontdata/FoxitSymbol.cpp - pdfium/core/fxge/freetype/fx_freetype.cpp - pdfium/core/fxge/cfx_cliprgn.cpp - pdfium/core/fxge/cfx_color.cpp - pdfium/core/fxge/cfx_drawutils.cpp - pdfium/core/fxge/cfx_face.cpp - pdfium/core/fxge/cfx_folderfontinfo.cpp - pdfium/core/fxge/cfx_font.cpp - pdfium/core/fxge/cfx_fontcache.cpp - pdfium/core/fxge/cfx_fontmapper.cpp - pdfium/core/fxge/cfx_fontmgr.cpp - pdfium/core/fxge/cfx_gemodule.cpp - pdfium/core/fxge/cfx_glyphbitmap.cpp - pdfium/core/fxge/cfx_glyphcache.cpp - pdfium/core/fxge/cfx_graphstate.cpp - pdfium/core/fxge/cfx_graphstatedata.cpp - pdfium/core/fxge/cfx_pathdata.cpp - pdfium/core/fxge/cfx_renderdevice.cpp - pdfium/core/fxge/cfx_substfont.cpp - pdfium/core/fxge/cfx_unicodeencoding.cpp - pdfium/core/fxge/fx_font.cpp - pdfium/core/fxge/fx_ge_linux.cpp - pdfium/core/fxge/renderdevicedriver_iface.cpp - pdfium/core/fxge/scoped_font_transform.cpp - pdfium/core/fxge/text_char_pos.cpp - pdfium/core/fxge/text_glyph_pos.cpp - pdfium/core/fxge/agg/fx_agg_driver.cpp - pdfium/core/fxcrt/cfx_fileaccess_posix.cpp -) \ No newline at end of file diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/core.pri b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/core.pri deleted file mode 100755 index 3260914c4..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/core.pri +++ /dev/null @@ -1,633 +0,0 @@ -# module fpdfsdk -SOURCE_DIR = $$PWD/pdfium - -HEADERS += \ - $$PWD/pdfium/core/fdrm/fx_crypt.h \ - $$PWD/pdfium/core/fpdfapi/cmaps/CNS1/cmaps_cns1.h \ - $$PWD/pdfium/core/fpdfapi/cmaps/GB1/cmaps_gb1.h \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/cmaps_japan1.h \ - $$PWD/pdfium/core/fpdfapi/cmaps/Korea1/cmaps_korea1.h \ - $$PWD/pdfium/core/fpdfapi/cmaps/fpdf_cmaps.h \ - $$PWD/pdfium/core/fpdfapi/edit/cpdf_contentstream_write_utils.h \ - $$PWD/pdfium/core/fpdfapi/edit/cpdf_creator.h \ - $$PWD/pdfium/core/fpdfapi/edit/cpdf_pagecontentgenerator.h \ - $$PWD/pdfium/core/fpdfapi/edit/cpdf_pagecontentmanager.h \ - $$PWD/pdfium/core/fpdfapi/edit/cpdf_stringarchivestream.h \ - $$PWD/pdfium/core/fpdfapi/font/cfx_cttgsubtable.h \ - $$PWD/pdfium/core/fpdfapi/font/cfx_stockfontarray.h \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_cid2unicodemap.h \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_cidfont.h \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_cmap.h \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_cmapmanager.h \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_cmapparser.h \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_font.h \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_fontencoding.h \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_fontglobals.h \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_simplefont.h \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_tounicodemap.h \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_truetypefont.h \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_type1font.h \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_type3char.h \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_type3font.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_allstates.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_annotcontext.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_clippath.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_color.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_colorspace.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_colorstate.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_contentmarkitem.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_contentmarks.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_contentparser.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_devicecs.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_dib.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_docpagedata.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_expintfunc.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_form.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_formobject.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_function.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_generalstate.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_graphicstates.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_iccprofile.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_image.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_imageobject.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_meshstream.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_occontext.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_page.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_pagemodule.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_pageobject.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_pageobjectholder.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_path.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_pathobject.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_pattern.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_patterncs.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_psengine.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_psfunc.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_sampledfunc.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_shadingobject.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_shadingpattern.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_stitchfunc.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_streamcontentparser.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_streamparser.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_textobject.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_textstate.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_tilingpattern.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_transferfunc.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_transferfuncdib.h \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_transparency.h \ - $$PWD/pdfium/core/fpdfapi/page/ipdf_page.h \ - $$PWD/pdfium/core/fpdfapi/parser/cfdf_document.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_array.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_boolean.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_cross_ref_avail.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_cross_ref_table.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_crypto_handler.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_data_avail.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_dictionary.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_document.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_encryptor.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_flateencoder.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_hint_tables.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_indirect_object_holder.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_linearized_header.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_name.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_null.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_number.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_object.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_object_avail.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_object_stream.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_object_walker.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_page_object_avail.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_parser.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_read_validator.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_reference.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_security_handler.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_simple_parser.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_stream.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_stream_acc.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_string.h \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_syntax_parser.h \ - $$PWD/pdfium/core/fpdfapi/parser/fpdf_parser_decode.h \ - $$PWD/pdfium/core/fpdfapi/parser/fpdf_parser_utility.h \ - $$PWD/pdfium/core/fpdfapi/render/charposlist.h \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_devicebuffer.h \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_docrenderdata.h \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_imagecacheentry.h \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_imageloader.h \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_imagerenderer.h \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_pagerendercache.h \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_pagerendercontext.h \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_progressiverenderer.h \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_rendercontext.h \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_renderoptions.h \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_rendershading.h \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_renderstatus.h \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_rendertiling.h \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_scaledrenderbuffer.h \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_textrenderer.h \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_type3cache.h \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_type3glyphmap.h \ - $$PWD/pdfium/core/fpdfdoc/cba_fontmap.h \ - $$PWD/pdfium/core/fpdfdoc/cline.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_aaction.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_action.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_annot.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_annotlist.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_apsettings.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_bookmark.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_bookmarktree.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_color_utils.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_defaultappearance.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_dest.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_filespec.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_formcontrol.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_formfield.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_icon.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_iconfit.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_interactiveform.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_link.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_linklist.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_metadata.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_nametree.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_numbertree.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_pagelabel.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_structelement.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_structtree.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_variabletext.h \ - $$PWD/pdfium/core/fpdfdoc/cpdf_viewerpreferences.h \ - $$PWD/pdfium/core/fpdfdoc/cpvt_floatrect.h \ - $$PWD/pdfium/core/fpdfdoc/cpvt_fontmap.h \ - $$PWD/pdfium/core/fpdfdoc/cpvt_generateap.h \ - $$PWD/pdfium/core/fpdfdoc/cpvt_line.h \ - $$PWD/pdfium/core/fpdfdoc/cpvt_lineinfo.h \ - $$PWD/pdfium/core/fpdfdoc/cpvt_word.h \ - $$PWD/pdfium/core/fpdfdoc/cpvt_wordinfo.h \ - $$PWD/pdfium/core/fpdfdoc/cpvt_wordplace.h \ - $$PWD/pdfium/core/fpdfdoc/cpvt_wordrange.h \ - $$PWD/pdfium/core/fpdfdoc/csection.h \ - $$PWD/pdfium/core/fpdfdoc/ctypeset.h \ - $$PWD/pdfium/core/fpdfdoc/ipvt_fontmap.h \ - $$PWD/pdfium/core/fpdftext/cpdf_linkextract.h \ - $$PWD/pdfium/core/fpdftext/cpdf_textpage.h \ - $$PWD/pdfium/core/fpdftext/cpdf_textpagefind.h \ - $$PWD/pdfium/core/fpdftext/unicodenormalizationdata.h \ - $$PWD/pdfium/core/fxcodec/basic/basicmodule.h \ - $$PWD/pdfium/core/fxcodec/cfx_codec_memory.h \ - $$PWD/pdfium/core/fxcodec/fax/faxmodule.h \ - $$PWD/pdfium/core/fxcodec/flate/flatemodule.h \ - $$PWD/pdfium/core/fxcodec/fx_codec.h \ - $$PWD/pdfium/core/fxcodec/fx_codec_def.h \ - $$PWD/pdfium/core/fxcodec/icc/iccmodule.h \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_ArithDecoder.h \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_ArithIntDecoder.h \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_BitStream.h \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_Context.h \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_Define.h \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_DocumentContext.h \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_GrdProc.h \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_GrrdProc.h \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_HtrdProc.h \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_HuffmanDecoder.h \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_HuffmanTable.h \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_Image.h \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_Page.h \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_PatternDict.h \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_PddProc.h \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_SddProc.h \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_Segment.h \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_SymbolDict.h \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_TrdProc.h \ - $$PWD/pdfium/core/fxcodec/jbig2/jbig2_decoder.h \ - $$PWD/pdfium/core/fxcodec/jpeg/jpeg_common.h \ - $$PWD/pdfium/core/fxcodec/jpeg/jpegmodule.h \ - $$PWD/pdfium/core/fxcodec/jpx/cjpx_decoder.h \ - $$PWD/pdfium/core/fxcodec/jpx/jpx_decode_utils.h \ - $$PWD/pdfium/core/fxcodec/scanlinedecoder.h \ - $$PWD/pdfium/core/fxcrt/xml/cfx_xmlchardata.h \ - $$PWD/pdfium/core/fxcrt/xml/cfx_xmldocument.h \ - $$PWD/pdfium/core/fxcrt/xml/cfx_xmlelement.h \ - $$PWD/pdfium/core/fxcrt/xml/cfx_xmlinstruction.h \ - $$PWD/pdfium/core/fxcrt/xml/cfx_xmlnode.h \ - $$PWD/pdfium/core/fxcrt/xml/cfx_xmlparser.h \ - $$PWD/pdfium/core/fxcrt/xml/cfx_xmltext.h \ - $$PWD/pdfium/core/fxcrt/autonuller.h \ - $$PWD/pdfium/core/fxcrt/autorestorer.h \ - $$PWD/pdfium/core/fxcrt/byteorder.h \ - $$PWD/pdfium/core/fxcrt/bytestring.h \ - $$PWD/pdfium/core/fxcrt/cfx_binarybuf.h \ - $$PWD/pdfium/core/fxcrt/cfx_bitstream.h \ - $$PWD/pdfium/core/fxcrt/cfx_datetime.h \ - $$PWD/pdfium/core/fxcrt/cfx_fixedbufgrow.h \ - $$PWD/pdfium/core/fxcrt/cfx_readonlymemorystream.h \ - $$PWD/pdfium/core/fxcrt/cfx_seekablestreamproxy.h \ - $$PWD/pdfium/core/fxcrt/cfx_timer.h \ - $$PWD/pdfium/core/fxcrt/cfx_utf8decoder.h \ - $$PWD/pdfium/core/fxcrt/cfx_utf8encoder.h \ - $$PWD/pdfium/core/fxcrt/cfx_widetextbuf.h \ - $$PWD/pdfium/core/fxcrt/fileaccess_iface.h \ - $$PWD/pdfium/core/fxcrt/fx_bidi.h \ - $$PWD/pdfium/core/fxcrt/fx_codepage.h \ - $$PWD/pdfium/core/fxcrt/fx_coordinates.h \ - $$PWD/pdfium/core/fxcrt/fx_extension.h \ - $$PWD/pdfium/core/fxcrt/fx_memory.h \ - $$PWD/pdfium/core/fxcrt/fx_memory_wrappers.h \ - $$PWD/pdfium/core/fxcrt/fx_number.h \ - $$PWD/pdfium/core/fxcrt/fx_random.h \ - $$PWD/pdfium/core/fxcrt/fx_safe_types.h \ - $$PWD/pdfium/core/fxcrt/fx_stream.h \ - $$PWD/pdfium/core/fxcrt/fx_string.h \ - $$PWD/pdfium/core/fxcrt/fx_system.h \ - $$PWD/pdfium/core/fxcrt/fx_unicode.h \ - $$PWD/pdfium/core/fxcrt/maybe_owned.h \ - $$PWD/pdfium/core/fxcrt/observed_ptr.h \ - $$PWD/pdfium/core/fxcrt/pauseindicator_iface.h \ - $$PWD/pdfium/core/fxcrt/retain_ptr.h \ - $$PWD/pdfium/core/fxcrt/retained_tree_node.h \ - $$PWD/pdfium/core/fxcrt/shared_copy_on_write.h \ - $$PWD/pdfium/core/fxcrt/string_data_template.h \ - $$PWD/pdfium/core/fxcrt/string_pool_template.h \ - $$PWD/pdfium/core/fxcrt/string_view_template.h \ - $$PWD/pdfium/core/fxcrt/timerhandler_iface.h \ - $$PWD/pdfium/core/fxcrt/tree_node.h \ - $$PWD/pdfium/core/fxcrt/unowned_ptr.h \ - $$PWD/pdfium/core/fxcrt/weak_ptr.h \ - $$PWD/pdfium/core/fxcrt/widestring.h \ - $$PWD/pdfium/core/fxge/dib/cfx_bitmapcomposer.h \ - $$PWD/pdfium/core/fxge/dib/cfx_bitmapstorer.h \ - $$PWD/pdfium/core/fxge/dib/cfx_cmyk_to_srgb.h \ - $$PWD/pdfium/core/fxge/dib/cfx_dibbase.h \ - $$PWD/pdfium/core/fxge/dib/cfx_dibitmap.h \ - $$PWD/pdfium/core/fxge/dib/cfx_imagerenderer.h \ - $$PWD/pdfium/core/fxge/dib/cfx_imagestretcher.h \ - $$PWD/pdfium/core/fxge/dib/cfx_imagetransformer.h \ - $$PWD/pdfium/core/fxge/dib/cfx_scanlinecompositor.h \ - $$PWD/pdfium/core/fxge/dib/cstretchengine.h \ - $$PWD/pdfium/core/fxge/dib/scanlinecomposer_iface.h \ - $$PWD/pdfium/core/fxge/fontdata/chromefontdata/chromefontdata.h \ - $$PWD/pdfium/core/fxge/cfx_cliprgn.h \ - $$PWD/pdfium/core/fxge/cfx_color.h \ - $$PWD/pdfium/core/fxge/cfx_defaultrenderdevice.h \ - $$PWD/pdfium/core/fxge/cfx_drawutils.h \ - $$PWD/pdfium/core/fxge/cfx_face.h \ - $$PWD/pdfium/core/fxge/cfx_fillrenderoptions.h \ - $$PWD/pdfium/core/fxge/cfx_folderfontinfo.h \ - $$PWD/pdfium/core/fxge/cfx_font.h \ - $$PWD/pdfium/core/fxge/cfx_fontcache.h \ - $$PWD/pdfium/core/fxge/cfx_fontmapper.h \ - $$PWD/pdfium/core/fxge/cfx_fontmgr.h \ - $$PWD/pdfium/core/fxge/cfx_gemodule.h \ - $$PWD/pdfium/core/fxge/cfx_glyphbitmap.h \ - $$PWD/pdfium/core/fxge/cfx_glyphcache.h \ - $$PWD/pdfium/core/fxge/cfx_graphstate.h \ - $$PWD/pdfium/core/fxge/cfx_graphstatedata.h \ - $$PWD/pdfium/core/fxge/cfx_pathdata.h \ - $$PWD/pdfium/core/fxge/cfx_renderdevice.h \ - $$PWD/pdfium/core/fxge/cfx_substfont.h \ - $$PWD/pdfium/core/fxge/cfx_textrenderoptions.h \ - $$PWD/pdfium/core/fxge/cfx_unicodeencoding.h \ - $$PWD/pdfium/core/fxge/fx_dib.h \ - $$PWD/pdfium/core/fxge/fx_font.h \ - $$PWD/pdfium/core/fxge/fx_freetype.h \ - $$PWD/pdfium/core/fxge/render_defines.h \ - $$PWD/pdfium/core/fxge/renderdevicedriver_iface.h \ - $$PWD/pdfium/core/fxge/scoped_font_transform.h \ - $$PWD/pdfium/core/fxge/systemfontinfo_iface.h \ - $$PWD/pdfium/core/fxge/text_char_pos.h \ - $$PWD/pdfium/core/fxge/text_glyph_pos.h \ - $$PWD/pdfium/core/fxge/agg/fx_agg_driver.h \ - $$PWD/pdfium/core/fxcrt/cfx_fileaccess_posix.h - -SOURCES += \ - $$PWD/pdfium/core/fdrm/fx_crypt.cpp \ - $$PWD/pdfium/core/fdrm/fx_crypt_aes.cpp \ - $$PWD/pdfium/core/fdrm/fx_crypt_sha.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/CNS1/B5pc-H_0.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/CNS1/B5pc-V_0.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/CNS1/cmaps_cns1.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/CNS1/CNS-EUC-H_0.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/CNS1/CNS-EUC-V_0.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/CNS1/ETen-B5-H_0.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/CNS1/ETen-B5-V_0.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/CNS1/ETenms-B5-H_0.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/CNS1/ETenms-B5-V_0.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/CNS1/HKscs-B5-H_5.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/CNS1/HKscs-B5-V_5.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/CNS1/UniCNS-UCS2-H_3.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/CNS1/UniCNS-UCS2-V_3.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/CNS1/UniCNS-UTF16-H_0.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/GB1/Adobe-GB1-UCS2_5.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/GB1/cmaps_gb1.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/GB1/GB-EUC-H_0.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/GB1/GB-EUC-V_0.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/GB1/GBK-EUC-H_2.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/GB1/GBK-EUC-V_2.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/GB1/GBK2K-H_5.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/GB1/GBK2K-V_5.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/GB1/GBKp-EUC-H_2.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/GB1/GBKp-EUC-V_2.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/GB1/GBpc-EUC-H_0.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/GB1/GBpc-EUC-V_0.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/GB1/UniGB-UCS2-H_4.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/GB1/UniGB-UCS2-V_4.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/83pv-RKSJ-H_1.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/90ms-RKSJ-H_2.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/90ms-RKSJ-V_2.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/90msp-RKSJ-H_2.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/90msp-RKSJ-V_2.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/90pv-RKSJ-H_1.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/Add-RKSJ-H_1.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/Add-RKSJ-V_1.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/cmaps_japan1.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/EUC-H_1.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/EUC-V_1.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/Ext-RKSJ-H_2.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/Ext-RKSJ-V_2.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/H_1.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-H_4.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-V_4.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Japan1/V_1.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Korea1/cmaps_korea1.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Korea1/KSC-EUC-H_0.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Korea1/KSC-EUC-V_0.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Korea1/KSCms-UHC-H_1.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Korea1/KSCms-UHC-HW-H_1.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Korea1/KSCms-UHC-HW-V_1.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Korea1/KSCms-UHC-V_1.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Korea1/KSCpc-EUC-H_0.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Korea1/UniKS-UCS2-H_1.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Korea1/UniKS-UCS2-V_1.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/Korea1/UniKS-UTF16-H_0.cpp \ - $$PWD/pdfium/core/fpdfapi/cmaps/fpdf_cmaps.cpp \ - $$PWD/pdfium/core/fpdfapi/edit/cpdf_contentstream_write_utils.cpp \ - $$PWD/pdfium/core/fpdfapi/edit/cpdf_creator.cpp \ - $$PWD/pdfium/core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp \ - $$PWD/pdfium/core/fpdfapi/edit/cpdf_pagecontentmanager.cpp \ - $$PWD/pdfium/core/fpdfapi/edit/cpdf_stringarchivestream.cpp \ - $$PWD/pdfium/core/fpdfapi/font/cfx_cttgsubtable.cpp \ - $$PWD/pdfium/core/fpdfapi/font/cfx_stockfontarray.cpp \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_cid2unicodemap.cpp \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_cidfont.cpp \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_cmap.cpp \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_cmapmanager.cpp \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_cmapparser.cpp \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_font.cpp \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_fontencoding.cpp \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_fontglobals.cpp \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_simplefont.cpp \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_tounicodemap.cpp \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_truetypefont.cpp \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_type1font.cpp \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_type3char.cpp \ - $$PWD/pdfium/core/fpdfapi/font/cpdf_type3font.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_allstates.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_annotcontext.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_clippath.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_color.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_colorspace.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_colorstate.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_contentmarkitem.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_contentmarks.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_contentparser.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_devicecs.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_dib.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_docpagedata.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_expintfunc.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_form.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_formobject.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_function.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_generalstate.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_graphicstates.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_iccprofile.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_image.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_imageobject.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_meshstream.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_occontext.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_page.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_pagemodule.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_pageobject.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_pageobjectholder.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_path.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_pathobject.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_pattern.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_patterncs.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_psengine.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_psfunc.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_sampledfunc.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_shadingobject.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_shadingpattern.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_stitchfunc.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_streamcontentparser.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_streamparser.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_textobject.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_textstate.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_tilingpattern.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_transferfunc.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_transferfuncdib.cpp \ - $$PWD/pdfium/core/fpdfapi/page/cpdf_transparency.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cfdf_document.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_array.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_boolean.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_cross_ref_avail.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_cross_ref_table.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_crypto_handler.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_data_avail.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_dictionary.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_document.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_encryptor.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_flateencoder.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_hint_tables.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_indirect_object_holder.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_linearized_header.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_name.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_null.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_number.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_object.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_object_avail.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_object_stream.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_object_walker.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_page_object_avail.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_parser.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_read_validator.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_reference.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_security_handler.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_simple_parser.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_stream.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_stream_acc.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_string.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/cpdf_syntax_parser.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/fpdf_parser_decode.cpp \ - $$PWD/pdfium/core/fpdfapi/parser/fpdf_parser_utility.cpp \ - $$PWD/pdfium/core/fpdfapi/render/charposlist.cpp \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_devicebuffer.cpp \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_docrenderdata.cpp \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_imagecacheentry.cpp \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_imageloader.cpp \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_imagerenderer.cpp \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_pagerendercache.cpp \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_pagerendercontext.cpp \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_progressiverenderer.cpp \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_rendercontext.cpp \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_renderoptions.cpp \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_rendershading.cpp \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_renderstatus.cpp \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_rendertiling.cpp \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_scaledrenderbuffer.cpp \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_textrenderer.cpp \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_type3cache.cpp \ - $$PWD/pdfium/core/fpdfapi/render/cpdf_type3glyphmap.cpp \ - $$PWD/pdfium/core/fpdfdoc/cba_fontmap.cpp \ - $$PWD/pdfium/core/fpdfdoc/cline.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_aaction.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_action.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_annot.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_annotlist.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_apsettings.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_bookmark.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_bookmarktree.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_color_utils.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_defaultappearance.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_dest.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_filespec.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_formcontrol.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_formfield.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_icon.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_iconfit.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_interactiveform.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_link.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_linklist.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_metadata.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_nametree.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_numbertree.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_pagelabel.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_structelement.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_structtree.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_variabletext.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpdf_viewerpreferences.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpvt_fontmap.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpvt_generateap.cpp \ - $$PWD/pdfium/core/fpdfdoc/cpvt_wordinfo.cpp \ - $$PWD/pdfium/core/fpdfdoc/csection.cpp \ - $$PWD/pdfium/core/fpdfdoc/ctypeset.cpp \ - $$PWD/pdfium/core/fpdftext/cpdf_linkextract.cpp \ - $$PWD/pdfium/core/fpdftext/cpdf_textpage.cpp \ - $$PWD/pdfium/core/fpdftext/cpdf_textpagefind.cpp \ - $$PWD/pdfium/core/fpdftext/unicodenormalizationdata.cpp \ - $$PWD/pdfium/core/fxcodec/basic/basicmodule.cpp \ - $$PWD/pdfium/core/fxcodec/cfx_codec_memory.cpp \ - $$PWD/pdfium/core/fxcodec/fax/faxmodule.cpp \ - $$PWD/pdfium/core/fxcodec/flate/flatemodule.cpp \ - $$PWD/pdfium/core/fxcodec/fx_codec.cpp \ - $$PWD/pdfium/core/fxcodec/icc/iccmodule.cpp \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_ArithDecoder.cpp \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_BitStream.cpp \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_Context.cpp \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_DocumentContext.cpp \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_GrdProc.cpp \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_GrrdProc.cpp \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_HtrdProc.cpp \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_HuffmanTable.cpp \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_Image.cpp \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_PatternDict.cpp \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_PddProc.cpp \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_SddProc.cpp \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_Segment.cpp \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_SymbolDict.cpp \ - $$PWD/pdfium/core/fxcodec/jbig2/JBig2_TrdProc.cpp \ - $$PWD/pdfium/core/fxcodec/jbig2/jbig2_decoder.cpp \ - $$PWD/pdfium/core/fxcodec/jpeg/jpeg_common.cpp \ - $$PWD/pdfium/core/fxcodec/jpeg/jpegmodule.cpp \ - $$PWD/pdfium/core/fxcodec/jpx/cjpx_decoder.cpp \ - $$PWD/pdfium/core/fxcodec/jpx/jpx_decode_utils.cpp \ - $$PWD/pdfium/core/fxcodec/scanlinedecoder.cpp \ - $$PWD/pdfium/core/fxcrt/xml/cfx_xmlchardata.cpp \ - $$PWD/pdfium/core/fxcrt/xml/cfx_xmldocument.cpp \ - $$PWD/pdfium/core/fxcrt/xml/cfx_xmlelement.cpp \ - $$PWD/pdfium/core/fxcrt/xml/cfx_xmlinstruction.cpp \ - $$PWD/pdfium/core/fxcrt/xml/cfx_xmlnode.cpp \ - $$PWD/pdfium/core/fxcrt/xml/cfx_xmlparser.cpp \ - $$PWD/pdfium/core/fxcrt/xml/cfx_xmltext.cpp \ - $$PWD/pdfium/core/fxcrt/bytestring.cpp \ - $$PWD/pdfium/core/fxcrt/cfx_binarybuf.cpp \ - $$PWD/pdfium/core/fxcrt/cfx_bitstream.cpp \ - $$PWD/pdfium/core/fxcrt/cfx_datetime.cpp \ - $$PWD/pdfium/core/fxcrt/cfx_readonlymemorystream.cpp \ - $$PWD/pdfium/core/fxcrt/cfx_seekablestreamproxy.cpp \ - $$PWD/pdfium/core/fxcrt/cfx_timer.cpp \ - $$PWD/pdfium/core/fxcrt/cfx_utf8decoder.cpp \ - $$PWD/pdfium/core/fxcrt/cfx_utf8encoder.cpp \ - $$PWD/pdfium/core/fxcrt/cfx_widetextbuf.cpp \ - $$PWD/pdfium/core/fxcrt/fx_bidi.cpp \ - $$PWD/pdfium/core/fxcrt/fx_codepage.cpp \ - $$PWD/pdfium/core/fxcrt/fx_coordinates.cpp \ - $$PWD/pdfium/core/fxcrt/fx_extension.cpp \ - $$PWD/pdfium/core/fxcrt/fx_memory.cpp \ - $$PWD/pdfium/core/fxcrt/fx_number.cpp \ - $$PWD/pdfium/core/fxcrt/fx_random.cpp \ - $$PWD/pdfium/core/fxcrt/fx_stream.cpp \ - $$PWD/pdfium/core/fxcrt/fx_string.cpp \ - $$PWD/pdfium/core/fxcrt/fx_system.cpp \ - $$PWD/pdfium/core/fxcrt/fx_unicode.cpp \ - $$PWD/pdfium/core/fxcrt/observed_ptr.cpp \ - $$PWD/pdfium/core/fxcrt/string_data_template.cpp \ - $$PWD/pdfium/core/fxcrt/widestring.cpp \ - $$PWD/pdfium/core/fxge/dib/cfx_bitmapcomposer.cpp \ - $$PWD/pdfium/core/fxge/dib/cfx_bitmapstorer.cpp \ - $$PWD/pdfium/core/fxge/dib/cfx_cmyk_to_srgb.cpp \ - $$PWD/pdfium/core/fxge/dib/cfx_dibbase.cpp \ - $$PWD/pdfium/core/fxge/dib/cfx_dibitmap.cpp \ - $$PWD/pdfium/core/fxge/dib/cfx_imagerenderer.cpp \ - $$PWD/pdfium/core/fxge/dib/cfx_imagestretcher.cpp \ - $$PWD/pdfium/core/fxge/dib/cfx_imagetransformer.cpp \ - $$PWD/pdfium/core/fxge/dib/cfx_scanlinecompositor.cpp \ - $$PWD/pdfium/core/fxge/dib/cstretchengine.cpp \ - $$PWD/pdfium/core/fxge/dib/fx_dib_main.cpp \ - $$PWD/pdfium/core/fxge/fontdata/chromefontdata/FoxitDingbats.cpp \ - $$PWD/pdfium/core/fxge/fontdata/chromefontdata/FoxitFixed.cpp \ - $$PWD/pdfium/core/fxge/fontdata/chromefontdata/FoxitFixedBold.cpp \ - $$PWD/pdfium/core/fxge/fontdata/chromefontdata/FoxitFixedBoldItalic.cpp \ - $$PWD/pdfium/core/fxge/fontdata/chromefontdata/FoxitFixedItalic.cpp \ - $$PWD/pdfium/core/fxge/fontdata/chromefontdata/FoxitSans.cpp \ - $$PWD/pdfium/core/fxge/fontdata/chromefontdata/FoxitSansBold.cpp \ - $$PWD/pdfium/core/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.cpp \ - $$PWD/pdfium/core/fxge/fontdata/chromefontdata/FoxitSansItalic.cpp \ - $$PWD/pdfium/core/fxge/fontdata/chromefontdata/FoxitSansMM.cpp \ - $$PWD/pdfium/core/fxge/fontdata/chromefontdata/FoxitSerif.cpp \ - $$PWD/pdfium/core/fxge/fontdata/chromefontdata/FoxitSerifBold.cpp \ - $$PWD/pdfium/core/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.cpp \ - $$PWD/pdfium/core/fxge/fontdata/chromefontdata/FoxitSerifItalic.cpp \ - $$PWD/pdfium/core/fxge/fontdata/chromefontdata/FoxitSerifMM.cpp \ - $$PWD/pdfium/core/fxge/fontdata/chromefontdata/FoxitSymbol.cpp \ - $$PWD/pdfium/core/fxge/freetype/fx_freetype.cpp \ - $$PWD/pdfium/core/fxge/cfx_cliprgn.cpp \ - $$PWD/pdfium/core/fxge/cfx_color.cpp \ - $$PWD/pdfium/core/fxge/cfx_drawutils.cpp \ - $$PWD/pdfium/core/fxge/cfx_face.cpp \ - $$PWD/pdfium/core/fxge/cfx_folderfontinfo.cpp \ - $$PWD/pdfium/core/fxge/cfx_font.cpp \ - $$PWD/pdfium/core/fxge/cfx_fontcache.cpp \ - $$PWD/pdfium/core/fxge/cfx_fontmapper.cpp \ - $$PWD/pdfium/core/fxge/cfx_fontmgr.cpp \ - $$PWD/pdfium/core/fxge/cfx_gemodule.cpp \ - $$PWD/pdfium/core/fxge/cfx_glyphbitmap.cpp \ - $$PWD/pdfium/core/fxge/cfx_glyphcache.cpp \ - $$PWD/pdfium/core/fxge/cfx_graphstate.cpp \ - $$PWD/pdfium/core/fxge/cfx_graphstatedata.cpp \ - $$PWD/pdfium/core/fxge/cfx_pathdata.cpp \ - $$PWD/pdfium/core/fxge/cfx_renderdevice.cpp \ - $$PWD/pdfium/core/fxge/cfx_substfont.cpp \ - $$PWD/pdfium/core/fxge/cfx_unicodeencoding.cpp \ - $$PWD/pdfium/core/fxge/fx_font.cpp \ - $$PWD/pdfium/core/fxge/fx_ge_linux.cpp \ - $$PWD/pdfium/core/fxge/renderdevicedriver_iface.cpp \ - $$PWD/pdfium/core/fxge/scoped_font_transform.cpp \ - $$PWD/pdfium/core/fxge/text_char_pos.cpp \ - $$PWD/pdfium/core/fxge/text_glyph_pos.cpp \ - $$PWD/pdfium/core/fxge/agg/fx_agg_driver.cpp \ - $$PWD/pdfium/core/fxcrt/cfx_fileaccess_posix.cpp - diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fpdfsdk.cmake b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fpdfsdk.cmake deleted file mode 100644 index 0bfe6cb45..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fpdfsdk.cmake +++ /dev/null @@ -1,119 +0,0 @@ -target_sources(pdfium - PRIVATE - # Headers - pdfium/fpdfsdk/formfiller/cffl_button.h - pdfium/fpdfsdk/formfiller/cffl_checkbox.h - pdfium/fpdfsdk/formfiller/cffl_combobox.h - pdfium/fpdfsdk/formfiller/cffl_formfiller.h - pdfium/fpdfsdk/formfiller/cffl_interactiveformfiller.h - pdfium/fpdfsdk/formfiller/cffl_listbox.h - pdfium/fpdfsdk/formfiller/cffl_pushbutton.h - pdfium/fpdfsdk/formfiller/cffl_radiobutton.h - pdfium/fpdfsdk/formfiller/cffl_textfield.h - pdfium/fpdfsdk/formfiller/cffl_textobject.h - pdfium/fpdfsdk/pwl/cpwl_button.h - pdfium/fpdfsdk/pwl/cpwl_caret.h - pdfium/fpdfsdk/pwl/cpwl_combo_box.h - pdfium/fpdfsdk/pwl/cpwl_edit.h - pdfium/fpdfsdk/pwl/cpwl_edit_ctrl.h - pdfium/fpdfsdk/pwl/cpwl_edit_impl.h - pdfium/fpdfsdk/pwl/cpwl_icon.h - pdfium/fpdfsdk/pwl/cpwl_list_box.h - pdfium/fpdfsdk/pwl/cpwl_list_impl.h - pdfium/fpdfsdk/pwl/cpwl_scroll_bar.h - pdfium/fpdfsdk/pwl/cpwl_special_button.h - pdfium/fpdfsdk/pwl/cpwl_wnd.h - pdfium/fpdfsdk/pwl/ipwl_systemhandler.h - pdfium/fpdfsdk/cpdfsdk_actionhandler.h - pdfium/fpdfsdk/cpdfsdk_annot.h - pdfium/fpdfsdk/cpdfsdk_annothandlermgr.h - pdfium/fpdfsdk/cpdfsdk_annotiteration.h - pdfium/fpdfsdk/cpdfsdk_annotiterator.h - pdfium/fpdfsdk/cpdfsdk_appstream.h - pdfium/fpdfsdk/cpdfsdk_baannot.h - pdfium/fpdfsdk/cpdfsdk_baannothandler.h - pdfium/fpdfsdk/cpdfsdk_customaccess.h - pdfium/fpdfsdk/cpdfsdk_fieldaction.h - pdfium/fpdfsdk/cpdfsdk_filewriteadapter.h - pdfium/fpdfsdk/cpdfsdk_formfillenvironment.h - pdfium/fpdfsdk/cpdfsdk_helpers.h - pdfium/fpdfsdk/cpdfsdk_interactiveform.h - pdfium/fpdfsdk/cpdfsdk_pageview.h - pdfium/fpdfsdk/cpdfsdk_pauseadapter.h - pdfium/fpdfsdk/cpdfsdk_renderpage.h - pdfium/fpdfsdk/cpdfsdk_widget.h - pdfium/fpdfsdk/cpdfsdk_widgethandler.h - pdfium/fpdfsdk/ipdfsdk_annothandler.h - - # Source files - pdfium/fpdfsdk/formfiller/cffl_button.cpp - pdfium/fpdfsdk/formfiller/cffl_checkbox.cpp - pdfium/fpdfsdk/formfiller/cffl_combobox.cpp - pdfium/fpdfsdk/formfiller/cffl_formfiller.cpp - pdfium/fpdfsdk/formfiller/cffl_interactiveformfiller.cpp - pdfium/fpdfsdk/formfiller/cffl_listbox.cpp - pdfium/fpdfsdk/formfiller/cffl_pushbutton.cpp - pdfium/fpdfsdk/formfiller/cffl_radiobutton.cpp - pdfium/fpdfsdk/formfiller/cffl_textfield.cpp - pdfium/fpdfsdk/formfiller/cffl_textobject.cpp - pdfium/fpdfsdk/pwl/cpwl_button.cpp - pdfium/fpdfsdk/pwl/cpwl_caret.cpp - pdfium/fpdfsdk/pwl/cpwl_combo_box.cpp - pdfium/fpdfsdk/pwl/cpwl_edit.cpp - pdfium/fpdfsdk/pwl/cpwl_edit_ctrl.cpp - pdfium/fpdfsdk/pwl/cpwl_edit_impl.cpp - pdfium/fpdfsdk/pwl/cpwl_icon.cpp - pdfium/fpdfsdk/pwl/cpwl_list_box.cpp - pdfium/fpdfsdk/pwl/cpwl_list_impl.cpp - pdfium/fpdfsdk/pwl/cpwl_scroll_bar.cpp - pdfium/fpdfsdk/pwl/cpwl_special_button.cpp - pdfium/fpdfsdk/pwl/cpwl_wnd.cpp - pdfium/fpdfsdk/cpdfsdk_actionhandler.cpp - pdfium/fpdfsdk/cpdfsdk_annot.cpp - pdfium/fpdfsdk/cpdfsdk_annothandlermgr.cpp - pdfium/fpdfsdk/cpdfsdk_annotiteration.cpp - pdfium/fpdfsdk/cpdfsdk_annotiterator.cpp - pdfium/fpdfsdk/cpdfsdk_appstream.cpp - pdfium/fpdfsdk/cpdfsdk_baannot.cpp - pdfium/fpdfsdk/cpdfsdk_baannothandler.cpp - pdfium/fpdfsdk/cpdfsdk_customaccess.cpp - pdfium/fpdfsdk/cpdfsdk_fieldaction.cpp - pdfium/fpdfsdk/cpdfsdk_filewriteadapter.cpp - pdfium/fpdfsdk/cpdfsdk_formfillenvironment.cpp - pdfium/fpdfsdk/cpdfsdk_helpers.cpp - pdfium/fpdfsdk/cpdfsdk_interactiveform.cpp - pdfium/fpdfsdk/cpdfsdk_pageview.cpp - pdfium/fpdfsdk/cpdfsdk_pauseadapter.cpp - pdfium/fpdfsdk/cpdfsdk_renderpage.cpp - pdfium/fpdfsdk/cpdfsdk_widget.cpp - pdfium/fpdfsdk/cpdfsdk_widgethandler.cpp - pdfium/fpdfsdk/fpdf_annot.cpp - pdfium/fpdfsdk/fpdf_attachment.cpp - pdfium/fpdfsdk/fpdf_catalog.cpp - pdfium/fpdfsdk/fpdf_dataavail.cpp - pdfium/fpdfsdk/fpdf_doc.cpp - pdfium/fpdfsdk/fpdf_editimg.cpp - pdfium/fpdfsdk/fpdf_editpage.cpp - pdfium/fpdfsdk/fpdf_editpath.cpp - pdfium/fpdfsdk/fpdf_edittext.cpp - pdfium/fpdfsdk/fpdf_ext.cpp - pdfium/fpdfsdk/fpdf_flatten.cpp - pdfium/fpdfsdk/fpdf_formfill.cpp - pdfium/fpdfsdk/fpdf_javascript.cpp - pdfium/fpdfsdk/fpdf_ppo.cpp - pdfium/fpdfsdk/fpdf_progressive.cpp - pdfium/fpdfsdk/fpdf_save.cpp - pdfium/fpdfsdk/fpdf_searchex.cpp - pdfium/fpdfsdk/fpdf_signature.cpp - pdfium/fpdfsdk/fpdf_structtree.cpp - pdfium/fpdfsdk/fpdf_sysfontinfo.cpp - pdfium/fpdfsdk/fpdf_text.cpp - pdfium/fpdfsdk/fpdf_thumbnail.cpp - pdfium/fpdfsdk/fpdf_transformpage.cpp - pdfium/fpdfsdk/fpdf_view.cpp -) - -# target_include_directories(pdfium -# PRIVATE -# pdfium/third_party/freetype/src/include -# ) \ No newline at end of file diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fpdfsdk.pri b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fpdfsdk.pri deleted file mode 100755 index 3c886221d..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fpdfsdk.pri +++ /dev/null @@ -1,118 +0,0 @@ -# module fpdfsdk -SOURCE_DIR = $$PWD/pdfium - -INCLUDEPATH += $$PWD/pdfium/third_party/freetype/src/include - -HEADERS += \ - $$PWD/pdfium/fpdfsdk/formfiller/cffl_button.h \ - $$PWD/pdfium/fpdfsdk/formfiller/cffl_checkbox.h \ - $$PWD/pdfium/fpdfsdk/formfiller/cffl_combobox.h \ - $$PWD/pdfium/fpdfsdk/formfiller/cffl_formfiller.h \ - $$PWD/pdfium/fpdfsdk/formfiller/cffl_interactiveformfiller.h \ - $$PWD/pdfium/fpdfsdk/formfiller/cffl_listbox.h \ - $$PWD/pdfium/fpdfsdk/formfiller/cffl_pushbutton.h \ - $$PWD/pdfium/fpdfsdk/formfiller/cffl_radiobutton.h \ - $$PWD/pdfium/fpdfsdk/formfiller/cffl_textfield.h \ - $$PWD/pdfium/fpdfsdk/formfiller/cffl_textobject.h \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_button.h \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_caret.h \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_combo_box.h \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_edit.h \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_edit_ctrl.h \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_edit_impl.h \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_icon.h \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_list_box.h \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_list_impl.h \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_scroll_bar.h \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_special_button.h \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_wnd.h \ - $$PWD/pdfium/fpdfsdk/pwl/ipwl_systemhandler.h \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_actionhandler.h \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_annot.h \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_annothandlermgr.h \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_annotiteration.h \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_annotiterator.h \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_appstream.h \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_baannot.h \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_baannothandler.h \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_customaccess.h \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_fieldaction.h \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_filewriteadapter.h \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_formfillenvironment.h \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_helpers.h \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_interactiveform.h \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_pageview.h \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_pauseadapter.h \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_renderpage.h \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_widget.h \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_widgethandler.h \ - $$PWD/pdfium/fpdfsdk/ipdfsdk_annothandler.h - -SOURCES += \ - $$PWD/pdfium/fpdfsdk/formfiller/cffl_button.cpp \ - $$PWD/pdfium/fpdfsdk/formfiller/cffl_checkbox.cpp \ - $$PWD/pdfium/fpdfsdk/formfiller/cffl_combobox.cpp \ - $$PWD/pdfium/fpdfsdk/formfiller/cffl_formfiller.cpp \ - $$PWD/pdfium/fpdfsdk/formfiller/cffl_interactiveformfiller.cpp \ - $$PWD/pdfium/fpdfsdk/formfiller/cffl_listbox.cpp \ - $$PWD/pdfium/fpdfsdk/formfiller/cffl_pushbutton.cpp \ - $$PWD/pdfium/fpdfsdk/formfiller/cffl_radiobutton.cpp \ - $$PWD/pdfium/fpdfsdk/formfiller/cffl_textfield.cpp \ - $$PWD/pdfium/fpdfsdk/formfiller/cffl_textobject.cpp \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_button.cpp \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_caret.cpp \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_combo_box.cpp \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_edit.cpp \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_edit_ctrl.cpp \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_edit_impl.cpp \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_icon.cpp \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_list_box.cpp \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_list_impl.cpp \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_scroll_bar.cpp \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_special_button.cpp \ - $$PWD/pdfium/fpdfsdk/pwl/cpwl_wnd.cpp \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_actionhandler.cpp \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_annot.cpp \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_annothandlermgr.cpp \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_annotiteration.cpp \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_annotiterator.cpp \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_appstream.cpp \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_baannot.cpp \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_baannothandler.cpp \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_customaccess.cpp \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_fieldaction.cpp \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_filewriteadapter.cpp \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_formfillenvironment.cpp \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_helpers.cpp \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_interactiveform.cpp \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_pageview.cpp \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_pauseadapter.cpp \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_renderpage.cpp \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_widget.cpp \ - $$PWD/pdfium/fpdfsdk/cpdfsdk_widgethandler.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_annot.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_attachment.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_catalog.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_dataavail.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_doc.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_editimg.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_editpage.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_editpath.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_edittext.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_ext.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_flatten.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_formfill.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_javascript.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_ppo.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_progressive.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_save.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_searchex.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_signature.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_structtree.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_sysfontinfo.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_text.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_thumbnail.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_transformpage.cpp \ - $$PWD/pdfium/fpdfsdk/fpdf_view.cpp - - diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_agg.cmake b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_agg.cmake deleted file mode 100644 index 9d4c9aeea..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_agg.cmake +++ /dev/null @@ -1,33 +0,0 @@ -target_sources(pdfium - PRIVATE - # Headers - pdfium/third_party/agg23/agg_array.h - pdfium/third_party/agg23/agg_basics.h - pdfium/third_party/agg23/agg_clip_liang_barsky.h - pdfium/third_party/agg23/agg_color_gray.h - pdfium/third_party/agg23/agg_conv_adaptor_vcgen.h - pdfium/third_party/agg23/agg_conv_dash.h - pdfium/third_party/agg23/agg_conv_stroke.h - pdfium/third_party/agg23/agg_curves.h - pdfium/third_party/agg23/agg_math.h - pdfium/third_party/agg23/agg_math_stroke.h - pdfium/third_party/agg23/agg_path_storage.h - pdfium/third_party/agg23/agg_pixfmt_gray.h - pdfium/third_party/agg23/agg_rasterizer_scanline_aa.h - pdfium/third_party/agg23/agg_render_scanlines.h - pdfium/third_party/agg23/agg_renderer_base.h - pdfium/third_party/agg23/agg_renderer_scanline.h - pdfium/third_party/agg23/agg_rendering_buffer.h - pdfium/third_party/agg23/agg_scanline_u.h - pdfium/third_party/agg23/agg_shorten_path.h - pdfium/third_party/agg23/agg_vcgen_dash.h - pdfium/third_party/agg23/agg_vcgen_stroke.h - pdfium/third_party/agg23/agg_vertex_sequence.h - - # Source files - pdfium/third_party/agg23/agg_curves.cpp - pdfium/third_party/agg23/agg_path_storage.cpp - pdfium/third_party/agg23/agg_rasterizer_scanline_aa.cpp - pdfium/third_party/agg23/agg_vcgen_dash.cpp - pdfium/third_party/agg23/agg_vcgen_stroke.cpp -) \ No newline at end of file diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_agg.pri b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_agg.pri deleted file mode 100755 index be66967d3..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_agg.pri +++ /dev/null @@ -1,35 +0,0 @@ -# module fx_agg -SOURCE_DIR = $$PWD/pdfium/third_party - -HEADERS += \ - $$PWD/pdfium/third_party/agg23/agg_array.h \ - $$PWD/pdfium/third_party/agg23/agg_basics.h \ - $$PWD/pdfium/third_party/agg23/agg_clip_liang_barsky.h \ - $$PWD/pdfium/third_party/agg23/agg_color_gray.h \ - $$PWD/pdfium/third_party/agg23/agg_conv_adaptor_vcgen.h \ - $$PWD/pdfium/third_party/agg23/agg_conv_dash.h \ - $$PWD/pdfium/third_party/agg23/agg_conv_stroke.h \ - $$PWD/pdfium/third_party/agg23/agg_curves.h \ - $$PWD/pdfium/third_party/agg23/agg_math.h \ - $$PWD/pdfium/third_party/agg23/agg_math_stroke.h \ - $$PWD/pdfium/third_party/agg23/agg_path_storage.h \ - $$PWD/pdfium/third_party/agg23/agg_pixfmt_gray.h \ - $$PWD/pdfium/third_party/agg23/agg_rasterizer_scanline_aa.h \ - $$PWD/pdfium/third_party/agg23/agg_render_scanlines.h \ - $$PWD/pdfium/third_party/agg23/agg_renderer_base.h \ - $$PWD/pdfium/third_party/agg23/agg_renderer_scanline.h \ - $$PWD/pdfium/third_party/agg23/agg_rendering_buffer.h \ - $$PWD/pdfium/third_party/agg23/agg_scanline_u.h \ - $$PWD/pdfium/third_party/agg23/agg_shorten_path.h \ - $$PWD/pdfium/third_party/agg23/agg_vcgen_dash.h \ - $$PWD/pdfium/third_party/agg23/agg_vcgen_stroke.h \ - $$PWD/pdfium/third_party/agg23/agg_vertex_sequence.h - -SOURCES += \ - $$PWD/pdfium/third_party/agg23/agg_curves.cpp \ - $$PWD/pdfium/third_party/agg23/agg_path_storage.cpp \ - $$PWD/pdfium/third_party/agg23/agg_rasterizer_scanline_aa.cpp \ - $$PWD/pdfium/third_party/agg23/agg_vcgen_dash.cpp \ - $$PWD/pdfium/third_party/agg23/agg_vcgen_stroke.cpp - - diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_base.cmake b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_base.cmake deleted file mode 100644 index db10c0230..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_base.cmake +++ /dev/null @@ -1,62 +0,0 @@ -target_sources(pdfium - PRIVATE - # Headers - pdfium/base/allocator/partition_allocator/address_space_randomization.h - pdfium/base/allocator/partition_allocator/oom.h - pdfium/base/allocator/partition_allocator/oom_callback.h - pdfium/base/allocator/partition_allocator/page_allocator.h - pdfium/base/allocator/partition_allocator/page_allocator_constants.h - pdfium/base/allocator/partition_allocator/page_allocator_internal.h - pdfium/base/allocator/partition_allocator/page_allocator_internals_posix.h - pdfium/base/allocator/partition_allocator/page_allocator_internals_win.h - pdfium/base/allocator/partition_allocator/partition_alloc.h - pdfium/base/allocator/partition_allocator/partition_alloc_constants.h - pdfium/base/allocator/partition_allocator/partition_bucket.h - pdfium/base/allocator/partition_allocator/partition_cookie.h - pdfium/base/allocator/partition_allocator/partition_direct_map_extent.h - pdfium/base/allocator/partition_allocator/partition_freelist_entry.h - pdfium/base/allocator/partition_allocator/partition_oom.h - pdfium/base/allocator/partition_allocator/partition_page.h - pdfium/base/allocator/partition_allocator/partition_root_base.h - pdfium/base/allocator/partition_allocator/random.h - pdfium/base/allocator/partition_allocator/spin_lock.h - pdfium/base/containers/adapters.h - pdfium/base/debug/alias.h - pdfium/base/memory/aligned_memory.h - pdfium/base/numerics/checked_math.h - pdfium/base/numerics/checked_math_impl.h - pdfium/base/numerics/clamped_math.h - pdfium/base/numerics/clamped_math_impl.h - pdfium/base/numerics/safe_conversions.h - pdfium/base/numerics/safe_conversions_arm_impl.h - pdfium/base/numerics/safe_conversions_impl.h - pdfium/base/numerics/safe_math.h - pdfium/base/numerics/safe_math_arm_impl.h - pdfium/base/numerics/safe_math_clang_gcc_impl.h - pdfium/base/numerics/safe_math_shared_impl.h - pdfium/base/base_export.h - pdfium/base/bits.h - pdfium/base/compiler_specific.h - pdfium/base/immediate_crash.h - pdfium/base/logging.h - pdfium/base/no_destructor.h - pdfium/base/optional.h - pdfium/base/span.h - pdfium/base/stl_util.h - pdfium/base/sys_byteorder.h - pdfium/base/template_util.h - - # Source files - pdfium/base/allocator/partition_allocator/address_space_randomization.cc - pdfium/base/allocator/partition_allocator/oom_callback.cc - pdfium/base/allocator/partition_allocator/page_allocator.cc - pdfium/base/allocator/partition_allocator/partition_alloc.cc - pdfium/base/allocator/partition_allocator/partition_bucket.cc - pdfium/base/allocator/partition_allocator/partition_oom.cc - pdfium/base/allocator/partition_allocator/partition_page.cc - pdfium/base/allocator/partition_allocator/partition_root_base.cc - pdfium/base/allocator/partition_allocator/random.cc - pdfium/base/allocator/partition_allocator/spin_lock.cc - pdfium/base/debug/alias.cc - pdfium/base/memory/aligned_memory.cc -) \ No newline at end of file diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_base.pri b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_base.pri deleted file mode 100755 index f98783905..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_base.pri +++ /dev/null @@ -1,62 +0,0 @@ -# module bigint -SOURCE_DIR = $$PWD/pdfium/third_party - -HEADERS += \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/address_space_randomization.h \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/oom.h \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/oom_callback.h \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/page_allocator.h \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/page_allocator_constants.h \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/page_allocator_internal.h \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/page_allocator_internals_win.h \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/partition_alloc.h \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/partition_alloc_constants.h \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/partition_bucket.h \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/partition_cookie.h \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/partition_direct_map_extent.h \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/partition_freelist_entry.h \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/partition_oom.h \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/partition_page.h \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/partition_root_base.h \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/random.h \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/spin_lock.h \ - $$PWD/pdfium/third_party/base/containers/adapters.h \ - $$PWD/pdfium/third_party/base/debug/alias.h \ - $$PWD/pdfium/third_party/base/memory/aligned_memory.h \ - $$PWD/pdfium/third_party/base/numerics/checked_math.h \ - $$PWD/pdfium/third_party/base/numerics/checked_math_impl.h \ - $$PWD/pdfium/third_party/base/numerics/clamped_math.h \ - $$PWD/pdfium/third_party/base/numerics/clamped_math_impl.h \ - $$PWD/pdfium/third_party/base/numerics/safe_conversions.h \ - $$PWD/pdfium/third_party/base/numerics/safe_conversions_arm_impl.h \ - $$PWD/pdfium/third_party/base/numerics/safe_conversions_impl.h \ - $$PWD/pdfium/third_party/base/numerics/safe_math.h \ - $$PWD/pdfium/third_party/base/numerics/safe_math_arm_impl.h \ - $$PWD/pdfium/third_party/base/numerics/safe_math_clang_gcc_impl.h \ - $$PWD/pdfium/third_party/base/numerics/safe_math_shared_impl.h \ - $$PWD/pdfium/third_party/base/base_export.h \ - $$PWD/pdfium/third_party/base/bits.h \ - $$PWD/pdfium/third_party/base/compiler_specific.h \ - $$PWD/pdfium/third_party/base/immediate_crash.h \ - $$PWD/pdfium/third_party/base/logging.h \ - $$PWD/pdfium/third_party/base/no_destructor.h \ - $$PWD/pdfium/third_party/base/optional.h \ - $$PWD/pdfium/third_party/base/span.h \ - $$PWD/pdfium/third_party/base/stl_util.h \ - $$PWD/pdfium/third_party/base/sys_byteorder.h \ - $$PWD/pdfium/third_party/base/template_util.h - -SOURCES += \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/address_space_randomization.cc \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/oom_callback.cc \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/page_allocator.cc \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/partition_alloc.cc \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/partition_bucket.cc \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/partition_oom.cc \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/partition_page.cc \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/partition_root_base.cc \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/random.cc \ - $$PWD/pdfium/third_party/base/allocator/partition_allocator/spin_lock.cc \ - $$PWD/pdfium/third_party/base/debug/alias.cc \ - $$PWD/pdfium/third_party/base/memory/aligned_memory.cc diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_freetype.pri b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_freetype.pri deleted file mode 100755 index 2f5d40c4a..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_freetype.pri +++ /dev/null @@ -1,16 +0,0 @@ -# module fx_freetype -SOURCE_DIR = $$PWD/pdfium/third_party - -INCLUDEPATH += $$PWD/pdfium/third_party/freetype/include \ - $$PWD/pdfium/third_party/freetype/include/freetype - -HEADERS += \ - $$PWD/pdfium/third_party/freetype/include/pstables.h \ - $$PWD/pdfium/third_party/freetype/src/src/cff/cffobjs.h \ - -HEADERS += \ - $$PWD/pdfium/third_party/freetype/include/freetype-custom-config/ftmodule.h \ - $$PWD/pdfium/third_party/freetype/include/freetype-custom-config/ftoption.h - -DISTFILES += \ - $$PWD/pdfium/third_party/freetype/src/src/autofit/afblue.dat diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_lcms2.pri b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_lcms2.pri deleted file mode 100755 index 8ac7111a1..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_lcms2.pri +++ /dev/null @@ -1,39 +0,0 @@ -# module fx_lcms2 -SOURCE_DIR = $$PWD/pdfium/third_party - -SOURCES += \ - $$PWD/pdfium/third_party/lcms/src/cmsalpha.c \ - $$PWD/pdfium/third_party/lcms/src/cmscam02.c \ - $$PWD/pdfium/third_party/lcms/src/cmscgats.c \ - $$PWD/pdfium/third_party/lcms/src/cmscnvrt.c \ - $$PWD/pdfium/third_party/lcms/src/cmserr.c \ - $$PWD/pdfium/third_party/lcms/src/cmsgamma.c \ - $$PWD/pdfium/third_party/lcms/src/cmsgmt.c \ - $$PWD/pdfium/third_party/lcms/src/cmshalf.c \ - $$PWD/pdfium/third_party/lcms/src/cmsintrp.c \ - $$PWD/pdfium/third_party/lcms/src/cmsio0.c \ - $$PWD/pdfium/third_party/lcms/src/cmsio1.c \ - $$PWD/pdfium/third_party/lcms/src/cmslut.c \ - $$PWD/pdfium/third_party/lcms/src/cmsmd5.c \ - $$PWD/pdfium/third_party/lcms/src/cmsmtrx.c \ - $$PWD/pdfium/third_party/lcms/src/cmsnamed.c \ - $$PWD/pdfium/third_party/lcms/src/cmsopt.c \ - $$PWD/pdfium/third_party/lcms/src/cmspack.c \ - $$PWD/pdfium/third_party/lcms/src/cmspcs.c \ - $$PWD/pdfium/third_party/lcms/src/cmsplugin.c \ - $$PWD/pdfium/third_party/lcms/src/cmsps2.c \ - $$PWD/pdfium/third_party/lcms/src/cmssamp.c \ - $$PWD/pdfium/third_party/lcms/src/cmssm.c \ - $$PWD/pdfium/third_party/lcms/src/cmstypes.c \ - $$PWD/pdfium/third_party/lcms/src/cmsvirt.c \ - $$PWD/pdfium/third_party/lcms/src/cmswtpnt.c \ - $$PWD/pdfium/third_party/lcms/src/cmsxform.c - -HEADERS += \ - $$PWD/pdfium/third_party/lcms/include/lcms2.h \ - $$PWD/pdfium/third_party/lcms/include/lcms2_plugin.h \ - $$PWD/pdfium/third_party/lcms/src/lcms2_internal.h - - - - diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_libopenjpeg.pri b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_libopenjpeg.pri deleted file mode 100755 index e9e094403..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_libopenjpeg.pri +++ /dev/null @@ -1,59 +0,0 @@ -# module fx_libopenjpeg -SOURCE_DIR = $$PWD/pdfium/third_party - -HEADERS += \ - $$PWD/pdfium/third_party/libopenjpeg20/bio.h \ - $$PWD/pdfium/third_party/libopenjpeg20/cio.h \ - $$PWD/pdfium/third_party/libopenjpeg20/dwt.h \ - $$PWD/pdfium/third_party/libopenjpeg20/event.h \ - $$PWD/pdfium/third_party/libopenjpeg20/function_list.h \ - $$PWD/pdfium/third_party/libopenjpeg20/image.h \ - $$PWD/pdfium/third_party/libopenjpeg20/invert.h \ - $$PWD/pdfium/third_party/libopenjpeg20/j2k.h \ - $$PWD/pdfium/third_party/libopenjpeg20/jp2.h \ - $$PWD/pdfium/third_party/libopenjpeg20/mct.h \ - $$PWD/pdfium/third_party/libopenjpeg20/mqc.h \ - $$PWD/pdfium/third_party/libopenjpeg20/mqc_inl.h \ - $$PWD/pdfium/third_party/libopenjpeg20/openjpeg.h \ - $$PWD/pdfium/third_party/libopenjpeg20/opj_clock.h \ - $$PWD/pdfium/third_party/libopenjpeg20/opj_codec.h \ - $$PWD/pdfium/third_party/libopenjpeg20/opj_common.h \ - $$PWD/pdfium/third_party/libopenjpeg20/opj_config.h \ - $$PWD/pdfium/third_party/libopenjpeg20/opj_config_private.h \ - $$PWD/pdfium/third_party/libopenjpeg20/opj_includes.h \ - $$PWD/pdfium/third_party/libopenjpeg20/opj_intmath.h \ - $$PWD/pdfium/third_party/libopenjpeg20/opj_inttypes.h \ - $$PWD/pdfium/third_party/libopenjpeg20/opj_malloc.h \ - $$PWD/pdfium/third_party/libopenjpeg20/opj_stdint.h \ - $$PWD/pdfium/third_party/libopenjpeg20/pi.h \ - $$PWD/pdfium/third_party/libopenjpeg20/sparse_array.h \ - $$PWD/pdfium/third_party/libopenjpeg20/t1.h \ - $$PWD/pdfium/third_party/libopenjpeg20/t1_luts.h \ - $$PWD/pdfium/third_party/libopenjpeg20/t2.h \ - $$PWD/pdfium/third_party/libopenjpeg20/tcd.h \ - $$PWD/pdfium/third_party/libopenjpeg20/tgt.h \ - $$PWD/pdfium/third_party/libopenjpeg20/thread.h \ - $$PWD/pdfium/third_party/libopenjpeg20/tls_keys.h - -SOURCES += \ - $$PWD/pdfium/third_party/libopenjpeg20/opj_malloc.cc \ - $$PWD/pdfium/third_party/libopenjpeg20/bio.c \ - $$PWD/pdfium/third_party/libopenjpeg20/cio.c \ - $$PWD/pdfium/third_party/libopenjpeg20/dwt.c \ - $$PWD/pdfium/third_party/libopenjpeg20/event.c \ - $$PWD/pdfium/third_party/libopenjpeg20/function_list.c \ - $$PWD/pdfium/third_party/libopenjpeg20/image.c \ - $$PWD/pdfium/third_party/libopenjpeg20/invert.c \ - $$PWD/pdfium/third_party/libopenjpeg20/j2k.c \ - $$PWD/pdfium/third_party/libopenjpeg20/jp2.c \ - $$PWD/pdfium/third_party/libopenjpeg20/mct.c \ - $$PWD/pdfium/third_party/libopenjpeg20/mqc.c \ - $$PWD/pdfium/third_party/libopenjpeg20/openjpeg.c \ - $$PWD/pdfium/third_party/libopenjpeg20/opj_clock.c \ - $$PWD/pdfium/third_party/libopenjpeg20/pi.c \ - $$PWD/pdfium/third_party/libopenjpeg20/sparse_array.c \ - $$PWD/pdfium/third_party/libopenjpeg20/t1.c \ - $$PWD/pdfium/third_party/libopenjpeg20/t2.c \ - $$PWD/pdfium/third_party/libopenjpeg20/tcd.c \ - $$PWD/pdfium/third_party/libopenjpeg20/tgt.c \ - $$PWD/pdfium/third_party/libopenjpeg20/thread.c diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_skia.cmake b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_skia.cmake deleted file mode 100644 index 42e8603b8..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_skia.cmake +++ /dev/null @@ -1,8 +0,0 @@ -target_sources(pdfium - PRIVATE - # Headers - pdfium/third_party/skia_shared/SkFloatToDecimal.h - - # Source files - pdfium/third_party/skia_shared/SkFloatToDecimal.cpp -) \ No newline at end of file diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_skia.pri b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_skia.pri deleted file mode 100755 index 69d13454d..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_skia.pri +++ /dev/null @@ -1,9 +0,0 @@ -# module xfa -SOURCE_DIR = $$PWD/pdfium - -HEADERS += \ - $$PWD/pdfium/third_party/skia_shared/SkFloatToDecimal.h - -SOURCES += \ - $$PWD/pdfium/third_party/skia_shared/SkFloatToDecimal.cpp - diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_zlib.pri b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_zlib.pri deleted file mode 100755 index 659aa0383..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fx_zlib.pri +++ /dev/null @@ -1,71 +0,0 @@ -# module fx_zlib -SOURCE_DIR = $$PWD/pdfium/third_party - -QMAKE_CXXFLAGS += "-Wno-parentheses-equality" - -INCLUDEPATH += $$PWD/pdfium/third_party/zlib -INCLUDEPATH += $$PWD/pdfium/third_party/zlib/contrib/optimizations -INCLUDEPATH += $$PWD/pdfium/third_party/zlib/contrib/minizip - -HEADERS += \ - $$PWD/pdfium/third_party/zlib/contrib/optimizations/insert_string.h \ - $$PWD/pdfium/third_party/zlib/chromeconf.h \ - $$PWD/pdfium/third_party/zlib/cpu_features.h \ - $$PWD/pdfium/third_party/zlib/crc32.h \ - $$PWD/pdfium/third_party/zlib/crc32_simd.h \ - $$PWD/pdfium/third_party/zlib/deflate.h \ - $$PWD/pdfium/third_party/zlib/gzguts.h \ - $$PWD/pdfium/third_party/zlib/inffast.h \ - $$PWD/pdfium/third_party/zlib/inffixed.h \ - $$PWD/pdfium/third_party/zlib/inflate.h \ - $$PWD/pdfium/third_party/zlib/inftrees.h \ - $$PWD/pdfium/third_party/zlib/trees.h \ - $$PWD/pdfium/third_party/zlib/zconf.h \ - $$PWD/pdfium/third_party/zlib/zlib.h \ - $$PWD/pdfium/third_party/zlib/zutil.h \ - $$PWD/pdfium/third_party/zlib/contrib/minizip/ioapi.h \ - $$PWD/pdfium/third_party/zlib/contrib/minizip/unzip.h \ - $$PWD/pdfium/third_party/zlib/contrib/minizip/zip.h - -# $$PWD/pdfium/third_party/zlib/contrib/optimizations/chunkcopy.h \ -# $$PWD/pdfium/third_party/zlib/contrib/optimizations/inffast_chunk.h \ -# $$PWD/pdfium/third_party/zlib/contrib/optimizations/slide_hash_neon.h \ -# $$PWD/pdfium/third_party/zlib/contrib/tests/infcover.h \ -# $$PWD/pdfium/third_party/zlib/google/compression_utils.h \ -# $$PWD/pdfium/third_party/zlib/google/compression_utils_portable.h \ -# $$PWD/pdfium/third_party/zlib/google/zip.h \ -# $$PWD/pdfium/third_party/zlib/google/zip_internal.h \ -# $$PWD/pdfium/third_party/zlib/google/zip_reader.h \ -# $$PWD/pdfium/third_party/zlib/google/zip_writer.h \ -# $$PWD/pdfium/third_party/zlib/adler32_simd.h \ - -SOURCES += \ - $$PWD/pdfium/third_party/zlib/adler32.c \ - $$PWD/pdfium/third_party/zlib/compress.c \ - $$PWD/pdfium/third_party/zlib/cpu_features.c \ - $$PWD/pdfium/third_party/zlib/crc32.c \ - $$PWD/pdfium/third_party/zlib/crc32_simd.c \ - $$PWD/pdfium/third_party/zlib/deflate.c \ - $$PWD/pdfium/third_party/zlib/gzclose.c \ - $$PWD/pdfium/third_party/zlib/gzlib.c \ - $$PWD/pdfium/third_party/zlib/gzread.c \ - $$PWD/pdfium/third_party/zlib/gzwrite.c \ - $$PWD/pdfium/third_party/zlib/infback.c \ - $$PWD/pdfium/third_party/zlib/inffast.c \ - $$PWD/pdfium/third_party/zlib/inftrees.c \ - $$PWD/pdfium/third_party/zlib/trees.c \ - $$PWD/pdfium/third_party/zlib/uncompr.c \ - $$PWD/pdfium/third_party/zlib/zutil.c \ - $$PWD/pdfium/third_party/zlib/contrib/minizip/ioapi.c \ - $$PWD/pdfium/third_party/zlib/contrib/minizip/unzip.c \ - $$PWD/pdfium/third_party/zlib/contrib/minizip/zip.c - -# $$PWD/pdfium/third_party/zlib/contrib/minizip/unzip.c \ -# $$PWD/pdfium/third_party/zlib/contrib/minizip/zip.c \ -# $$PWD/pdfium/third_party/zlib/contrib/optimizations/inffast_chunk.c \ -# $$PWD/pdfium/third_party/zlib/contrib/optimizations/inflate.c \ -# $$PWD/pdfium/third_party/zlib/crc_folding.c \ -# $$PWD/pdfium/third_party/zlib/fill_window_sse.c \ -# $$PWD/pdfium/third_party/zlib/inflate.c \ -# $$PWD/pdfium/third_party/zlib/adler32_simd.c \ - diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fxjs.cmake b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fxjs.cmake deleted file mode 100644 index 626477611..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fxjs.cmake +++ /dev/null @@ -1,13 +0,0 @@ -target_sources(pdfium - PRIVATE - # Headers - pdfium/fxjs/cjs_event_context_stub.h - pdfium/fxjs/cjs_runtimestub.h - pdfium/fxjs/cjs_event_context.h - pdfium/fxjs/ijs_runtime.h - - # Source files - pdfium/fxjs/cjs_event_context_stub.cpp - pdfium/fxjs/cjs_runtimestub.cpp - pdfium/fxjs/ijs_runtime.cpp -) diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fxjs.pri b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fxjs.pri deleted file mode 100755 index 81bf4a249..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/fxjs.pri +++ /dev/null @@ -1,14 +0,0 @@ -# module fxjs -SOURCE_DIR = $$PWD/pdfium - -HEADERS += \ - $$PWD/pdfium/fxjs/cjs_event_context_stub.h \ - $$PWD/pdfium/fxjs/cjs_runtimestub.h \ - $$PWD/pdfium/fxjs/cjs_event_context.h \ - $$PWD/pdfium/fxjs/ijs_runtime.h - -SOURCES += \ - $$PWD/pdfium/fxjs/cjs_event_context_stub.cpp \ - $$PWD/pdfium/fxjs/cjs_runtimestub.cpp \ - $$PWD/pdfium/fxjs/ijs_runtime.cpp - diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium.pri b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium.pri deleted file mode 100755 index 894b0ac71..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium.pri +++ /dev/null @@ -1,80 +0,0 @@ -SOURCE_DIR = $$PWD/pdfium - -INCLUDEPATH += $$SOURCE_DIR - -#OPJ_STATIC -#FT2_BUILD_LIBRARY - -DEFINES += __QT__ \ - PNG_PREFIX \ - PNG_USE_READ_MACROS \ - BUILD_DEEPIN_PDFIUM_LIB \ - DEFINE_PS_TABLES_DATA \ - FT_CONFIG_OPTION_ADOBE_GLYPH_LIST - -DEFINES += USE_SYSTEM_LIBJPEG \ - USE_SYSTEM_ZLIB \ - USE_SYSTEM_LIBPNG \ - USE_SYSTEM_ICUUC \ - USE_SYSTEM_LCMS2 \ - USE_SYSTEM_LIBOPENJPEG2 \ - USE_SYSTEM_FREETYPE - -CONFIG += link_pkgconfig -PKGCONFIG += libopenjp2 lcms2 freetype2 - -#QMAKE_CXXFLAGS += "-Wc++11-narrowing" #is_clang -#QMAKE_CXXFLAGS += "-Wno-inconsistent-missing-override" #is_clang Suppress no override warning for overridden functions. -#QMAKE_CXXFLAGS += "-Wno-switch" #is_clang http://code.google.com/p/pdfium/issues/detail?id=188 - -contains(QMAKE_HOST.arch, x86_64) { - DEFINES += "_FX_CPU_=_FX_X64_" - QMAKE_CXXFLAGS += "-fPIC" - DEFINES += ARCH_CPU_ARM64 -} - -contains(QMAKE_HOST.arch, mips64):{ - DEFINES += _MIPS_ARCH_LOONGSON #mips暂时默认为龙芯 调整最小页尺寸 - QMAKE_CXXFLAGS += "-O3 -ftree-vectorize -march=loongson3a -mhard-float -mno-micromips -mno-mips16 -flax-vector-conversions -mloongson-ext2 -mloongson-mmi" -} - -contains(QMAKE_HOST.arch, sw64):{ - DEFINES += ARCH_CPU_SW64 - QMAKE_CXXFLAGS += "-fPIC" -} - -include(fx_freetype.pri) -include(fpdfsdk.pri) -include(core.pri) -#include(fx_libopenjpeg.pri) -include(fx_agg.pri) -include(fxjs.pri) -#include(fx_lcms2.pri) -include(fx_skia.pri) -include(fx_base.pri) - -HEADERS += \ - $$PWD/pdfium/public/cpp/fpdf_deleters.h \ - $$PWD/pdfium/public/cpp/fpdf_scopers.h \ - $$PWD/pdfium/public/fpdf_annot.h \ - $$PWD/pdfium/public/fpdf_attachment.h \ - $$PWD/pdfium/public/fpdf_catalog.h \ - $$PWD/pdfium/public/fpdf_dataavail.h \ - $$PWD/pdfium/public/fpdf_doc.h \ - $$PWD/pdfium/public/fpdf_edit.h \ - $$PWD/pdfium/public/fpdf_ext.h \ - $$PWD/pdfium/public/fpdf_flatten.h \ - $$PWD/pdfium/public/fpdf_formfill.h \ - $$PWD/pdfium/public/fpdf_fwlevent.h \ - $$PWD/pdfium/public/fpdf_javascript.h \ - $$PWD/pdfium/public/fpdf_ppo.h \ - $$PWD/pdfium/public/fpdf_progressive.h \ - $$PWD/pdfium/public/fpdf_save.h \ - $$PWD/pdfium/public/fpdf_searchex.h \ - $$PWD/pdfium/public/fpdf_signature.h \ - $$PWD/pdfium/public/fpdf_structtree.h \ - $$PWD/pdfium/public/fpdf_sysfontinfo.h \ - $$PWD/pdfium/public/fpdf_text.h \ - $$PWD/pdfium/public/fpdf_thumbnail.h \ - $$PWD/pdfium/public/fpdf_transformpage.h \ - $$PWD/pdfium/public/fpdfview.h diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/LICENSE b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/LICENSE deleted file mode 100644 index bb158cbf4..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/LICENSE +++ /dev/null @@ -1,230 +0,0 @@ -// Copyright 2014 PDFium Authors. All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - - Apache License - Version 2.0, January 2004 - https://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/OWNERS b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/OWNERS deleted file mode 100644 index b0a2a850f..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/OWNERS +++ /dev/null @@ -1,8 +0,0 @@ -ajwong@chromium.org -haraken@chromium.org -palmer@chromium.org -tsepez@chromium.org - -# TEAM: platform-architecture-dev@chromium.org -# Also: security-dev@chromium.org -# COMPONENT: Blink>MemoryAllocator>Partition diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/address_space_randomization.cc b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/address_space_randomization.cc deleted file mode 100644 index c6f268fe6..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/address_space_randomization.cc +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright 2014 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "third_party/base/allocator/partition_allocator/address_space_randomization.h" - -#include "build/build_config.h" -#include "third_party/base/allocator/partition_allocator/page_allocator.h" -#include "third_party/base/allocator/partition_allocator/random.h" -#include "third_party/base/allocator/partition_allocator/spin_lock.h" -#include "third_party/base/logging.h" - -#if defined(OS_WIN) -#include // Must be in front of other Windows header files. - -#include -#endif - -namespace pdfium { -namespace base { - -void* GetRandomPageBase() { - uintptr_t random = static_cast(RandomValue()); - -#if defined(ARCH_CPU_64_BITS) - random <<= 32ULL; - random |= static_cast(RandomValue()); - -// The kASLRMask and kASLROffset constants will be suitable for the -// OS and build configuration. -#if defined(OS_WIN) && !defined(MEMORY_TOOL_REPLACES_ALLOCATOR) - // Windows >= 8.1 has the full 47 bits. Use them where available. - static bool windows_81 = false; - static bool windows_81_initialized = false; - if (!windows_81_initialized) { - windows_81 = IsWindows8Point1OrGreater(); - windows_81_initialized = true; - } - if (!windows_81) { - random &= internal::kASLRMaskBefore8_10; - } else { - random &= internal::kASLRMask; - } - random += internal::kASLROffset; -#else - random &= internal::kASLRMask; - random += internal::kASLROffset; -#endif // defined(OS_WIN) && !defined(MEMORY_TOOL_REPLACES_ALLOCATOR) -#else // defined(ARCH_CPU_32_BITS) -#if defined(OS_WIN) - // On win32 host systems the randomization plus huge alignment causes - // excessive fragmentation. Plus most of these systems lack ASLR, so the - // randomization isn't buying anything. In that case we just skip it. - // TODO(palmer): Just dump the randomization when HE-ASLR is present. - static BOOL is_wow64 = -1; - if (is_wow64 == -1 && !IsWow64Process(GetCurrentProcess(), &is_wow64)) - is_wow64 = FALSE; - if (!is_wow64) - return nullptr; -#endif // defined(OS_WIN) - random &= internal::kASLRMask; - random += internal::kASLROffset; -#endif // defined(ARCH_CPU_32_BITS) - - DCHECK_EQ(0ULL, (random & kPageAllocationGranularityOffsetMask)); - return reinterpret_cast(random); -} - -} // namespace base -} // namespace pdfium diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/address_space_randomization.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/address_space_randomization.h deleted file mode 100644 index c6d8ca97b..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/address_space_randomization.h +++ /dev/null @@ -1,203 +0,0 @@ -// Copyright 2014 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_ADDRESS_SPACE_RANDOMIZATION_H_ -#define THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_ADDRESS_SPACE_RANDOMIZATION_H_ - -#include "build/build_config.h" -#include "third_party/base/allocator/partition_allocator/page_allocator.h" -#include "third_party/base/base_export.h" - -namespace pdfium { -namespace base { - -// Calculates a random preferred mapping address. In calculating an address, we -// balance good ASLR against not fragmenting the address space too badly. -BASE_EXPORT void* GetRandomPageBase(); - -namespace internal { - -constexpr uintptr_t AslrAddress(uintptr_t mask) { - return mask & kPageAllocationGranularityBaseMask; -} -constexpr uintptr_t AslrMask(uintptr_t bits) { - return AslrAddress((1ULL << bits) - 1ULL); -} - -// Turn off formatting, because the thicket of nested ifdefs below is -// incomprehensible without indentation. It is also incomprehensible with -// indentation, but the only other option is a combinatorial explosion of -// *_{win,linux,mac,foo}_{32,64}.h files. -// -// clang-format off - -#if defined(ARCH_CPU_64_BITS) - - #if defined(MEMORY_TOOL_REPLACES_ALLOCATOR) - - // We shouldn't allocate system pages at all for sanitizer builds. However, - // we do, and if random hint addresses interfere with address ranges - // hard-coded in those tools, bad things happen. This address range is - // copied from TSAN source but works with all tools. See - // https://crbug.com/539863. - constexpr uintptr_t kASLRMask = AslrAddress(0x007fffffffffULL); - constexpr uintptr_t kASLROffset = AslrAddress(0x7e8000000000ULL); - - #elif defined(OS_WIN) - - // Windows 8.10 and newer support the full 48 bit address range. Older - // versions of Windows only support 44 bits. Since kASLROffset is non-zero - // and may cause a carry, use 47 and 43 bit masks. See - // http://www.alex-ionescu.com/?p=246 - constexpr uintptr_t kASLRMask = AslrMask(47); - constexpr uintptr_t kASLRMaskBefore8_10 = AslrMask(43); - // Try not to map pages into the range where Windows loads DLLs by default. - constexpr uintptr_t kASLROffset = 0x80000000ULL; - - #elif defined(OS_APPLE) - - // macOS as of 10.12.5 does not clean up entries in page map levels 3/4 - // [PDP/PML4] created from mmap or mach_vm_allocate, even after the region - // is destroyed. Using a virtual address space that is too large causes a - // leak of about 1 wired [can never be paged out] page per call to mmap. The - // page is only reclaimed when the process is killed. Confine the hint to a - // 39-bit section of the virtual address space. - // - // This implementation adapted from - // https://chromium-review.googlesource.com/c/v8/v8/+/557958. The difference - // is that here we clamp to 39 bits, not 32. - // - // TODO(crbug.com/738925): Remove this limitation if/when the macOS behavior - // changes. - constexpr uintptr_t kASLRMask = AslrMask(38); - constexpr uintptr_t kASLROffset = AslrAddress(0x1000000000ULL); - - #elif defined(OS_POSIX) || defined(OS_FUCHSIA) - - #if defined(ARCH_CPU_X86_64) - - // Linux (and macOS) support the full 47-bit user space of x64 processors. - // Use only 46 to allow the kernel a chance to fulfill the request. - constexpr uintptr_t kASLRMask = AslrMask(46); - constexpr uintptr_t kASLROffset = AslrAddress(0); - - #elif defined(ARCH_CPU_ARM64) - - #if defined(OS_ANDROID) - - // Restrict the address range on Android to avoid a large performance - // regression in single-process WebViews. See https://crbug.com/837640. - constexpr uintptr_t kASLRMask = AslrMask(30); - constexpr uintptr_t kASLROffset = AslrAddress(0x20000000ULL); - - #else - - // ARM64 on Linux has 39-bit user space. Use 38 bits since kASLROffset - // could cause a carry. - constexpr uintptr_t kASLRMask = AslrMask(38); - constexpr uintptr_t kASLROffset = AslrAddress(0x1000000000ULL); - - #endif - - #elif defined(ARCH_CPU_PPC64) - - #if defined(OS_AIX) - - // AIX has 64 bits of virtual addressing, but we limit the address range - // to (a) minimize segment lookaside buffer (SLB) misses; and (b) use - // extra address space to isolate the mmap regions. - constexpr uintptr_t kASLRMask = AslrMask(30); - constexpr uintptr_t kASLROffset = AslrAddress(0x400000000000ULL); - - #elif defined(ARCH_CPU_BIG_ENDIAN) - - // Big-endian Linux PPC has 44 bits of virtual addressing. Use 42. - constexpr uintptr_t kASLRMask = AslrMask(42); - constexpr uintptr_t kASLROffset = AslrAddress(0); - - #else // !defined(OS_AIX) && !defined(ARCH_CPU_BIG_ENDIAN) - - // Little-endian Linux PPC has 48 bits of virtual addressing. Use 46. - constexpr uintptr_t kASLRMask = AslrMask(46); - constexpr uintptr_t kASLROffset = AslrAddress(0); - - #endif // !defined(OS_AIX) && !defined(ARCH_CPU_BIG_ENDIAN) - - #elif defined(ARCH_CPU_S390X) - - // Linux on Z uses bits 22 - 32 for Region Indexing, which translates to - // 42 bits of virtual addressing. Truncate to 40 bits to allow kernel a - // chance to fulfill the request. - constexpr uintptr_t kASLRMask = AslrMask(40); - constexpr uintptr_t kASLROffset = AslrAddress(0); - - #elif defined(ARCH_CPU_S390) - - // 31 bits of virtual addressing. Truncate to 29 bits to allow the kernel - // a chance to fulfill the request. - constexpr uintptr_t kASLRMask = AslrMask(29); - constexpr uintptr_t kASLROffset = AslrAddress(0); - - #else // !defined(ARCH_CPU_X86_64) && !defined(ARCH_CPU_PPC64) && - // !defined(ARCH_CPU_S390X) && !defined(ARCH_CPU_S390) - - // For all other POSIX variants, use 30 bits. - constexpr uintptr_t kASLRMask = AslrMask(30); - - #if defined(OS_SOLARIS) - - // For our Solaris/illumos mmap hint, we pick a random address in the - // bottom half of the top half of the address space (that is, the third - // quarter). Because we do not MAP_FIXED, this will be treated only as a - // hint -- the system will not fail to mmap because something else - // happens to already be mapped at our random address. We deliberately - // set the hint high enough to get well above the system's break (that - // is, the heap); Solaris and illumos will try the hint and if that - // fails allocate as if there were no hint at all. The high hint - // prevents the break from getting hemmed in at low values, ceding half - // of the address space to the system heap. - constexpr uintptr_t kASLROffset = AslrAddress(0x80000000ULL); - - #elif defined(OS_AIX) - - // The range 0x30000000 - 0xD0000000 is available on AIX; choose the - // upper range. - constexpr uintptr_t kASLROffset = AslrAddress(0x90000000ULL); - - #else // !defined(OS_SOLARIS) && !defined(OS_AIX) - - // The range 0x20000000 - 0x60000000 is relatively unpopulated across a - // variety of ASLR modes (PAE kernel, NX compat mode, etc) and on macOS - // 10.6 and 10.7. - constexpr uintptr_t kASLROffset = AslrAddress(0x20000000ULL); - - #endif // !defined(OS_SOLARIS) && !defined(OS_AIX) - - #endif // !defined(ARCH_CPU_X86_64) && !defined(ARCH_CPU_PPC64) && - // !defined(ARCH_CPU_S390X) && !defined(ARCH_CPU_S390) - - #endif // defined(OS_POSIX) - -#elif defined(ARCH_CPU_32_BITS) - - // This is a good range on 32-bit Windows and Android (the only platforms on - // which we support 32-bitness). Allocates in the 0.5 - 1.5 GiB region. There - // is no issue with carries here. - constexpr uintptr_t kASLRMask = AslrMask(30); - constexpr uintptr_t kASLROffset = AslrAddress(0x20000000ULL); - -#else - - #error Please tell us about your exotic hardware! Sounds interesting. - -#endif // defined(ARCH_CPU_32_BITS) - -// clang-format on - -} // namespace internal - -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_ADDRESS_SPACE_RANDOMIZATION_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/oom.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/oom.h deleted file mode 100644 index 8f3e9c6a5..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/oom.h +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_OOM_H_ -#define THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_OOM_H_ - -#include "third_party/base/allocator/partition_allocator/oom_callback.h" -#include "third_party/base/logging.h" - -#if defined(OS_WIN) -#include -#endif - -// Do not want trivial entry points just calling OOM_CRASH() to be -// commoned up by linker icf/comdat folding. -#define OOM_CRASH_PREVENT_ICF() \ - volatile int oom_crash_inhibit_icf = __LINE__; \ - ALLOW_UNUSED_LOCAL(oom_crash_inhibit_icf) - -// OOM_CRASH() - Specialization of IMMEDIATE_CRASH which will raise a custom -// exception on Windows to signal this is OOM and not a normal assert. -#if defined(OS_WIN) -#define OOM_CRASH(size) \ - do { \ - OOM_CRASH_PREVENT_ICF(); \ - base::internal::RunPartitionAllocOomCallback(); \ - ::RaiseException(0xE0000008, EXCEPTION_NONCONTINUABLE, 0, nullptr); \ - IMMEDIATE_CRASH(); \ - } while (0) -#else -#define OOM_CRASH(size) \ - do { \ - base::internal::RunPartitionAllocOomCallback(); \ - OOM_CRASH_PREVENT_ICF(); \ - IMMEDIATE_CRASH(); \ - } while (0) -#endif - -#endif // THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_OOM_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/oom_callback.cc b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/oom_callback.cc deleted file mode 100644 index 914343829..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/oom_callback.cc +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "third_party/base/allocator/partition_allocator/oom_callback.h" - -#include "third_party/base/logging.h" - -namespace pdfium { -namespace base { - -namespace { -PartitionAllocOomCallback g_oom_callback; -} // namespace - -void SetPartitionAllocOomCallback(PartitionAllocOomCallback callback) { - DCHECK(!g_oom_callback); - g_oom_callback = callback; -} - -namespace internal { -void RunPartitionAllocOomCallback() { - if (g_oom_callback) - g_oom_callback(); -} -} // namespace internal - -} // namespace base -} // namespace pdfium diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/oom_callback.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/oom_callback.h deleted file mode 100644 index 044b167ff..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/oom_callback.h +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_OOM_CALLBACK_H_ -#define THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_OOM_CALLBACK_H_ - -#include "third_party/base/base_export.h" - -namespace pdfium { -namespace base { -typedef void (*PartitionAllocOomCallback)(); -// Registers a callback to be invoked during an OOM_CRASH(). OOM_CRASH is -// invoked by users of PageAllocator (including PartitionAlloc) to signify an -// allocation failure from the platform. -BASE_EXPORT void SetPartitionAllocOomCallback( - PartitionAllocOomCallback callback); - -namespace internal { -BASE_EXPORT void RunPartitionAllocOomCallback(); -} // namespace internal - -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_OOM_CALLBACK_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator.cc b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator.cc deleted file mode 100644 index e158bd133..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator.cc +++ /dev/null @@ -1,259 +0,0 @@ -// Copyright (c) 2013 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "third_party/base/allocator/partition_allocator/page_allocator.h" - -#include - -#include - -#include "build/build_config.h" -#include "third_party/base/allocator/partition_allocator/address_space_randomization.h" -#include "third_party/base/allocator/partition_allocator/page_allocator_internal.h" -#include "third_party/base/allocator/partition_allocator/spin_lock.h" -#include "third_party/base/bits.h" -#include "third_party/base/logging.h" -#include "third_party/base/numerics/safe_math.h" - -#if defined(OS_WIN) -#include -#endif - -#if defined(OS_WIN) -#include "third_party/base/allocator/partition_allocator/page_allocator_internals_win.h" -#elif defined(OS_POSIX) || defined(OS_FUCHSIA) -#include "third_party/base/allocator/partition_allocator/page_allocator_internals_posix.h" -#else -#error Platform not supported. -#endif - -namespace pdfium { -namespace base { - -namespace { - -// We may reserve/release address space on different threads. -subtle::SpinLock* GetReserveLock() { - static subtle::SpinLock* s_reserveLock = nullptr; - if (!s_reserveLock) - s_reserveLock = new subtle::SpinLock(); - return s_reserveLock; -} - -// We only support a single block of reserved address space. -void* s_reservation_address = nullptr; -size_t s_reservation_size = 0; - -void* AllocPagesIncludingReserved(void* address, - size_t length, - PageAccessibilityConfiguration accessibility, - PageTag page_tag, - bool commit) { - void* ret = - SystemAllocPages(address, length, accessibility, page_tag, commit); - if (ret == nullptr) { - const bool cant_alloc_length = kHintIsAdvisory || address == nullptr; - if (cant_alloc_length) { - // The system cannot allocate |length| bytes. Release any reserved address - // space and try once more. - ReleaseReservation(); - ret = SystemAllocPages(address, length, accessibility, page_tag, commit); - } - } - return ret; -} - -// Trims |base| to given |trim_length| and |alignment|. -// -// On failure, on Windows, this function returns nullptr and frees |base|. -void* TrimMapping(void* base, - size_t base_length, - size_t trim_length, - uintptr_t alignment, - PageAccessibilityConfiguration accessibility, - bool commit) { - size_t pre_slack = reinterpret_cast(base) & (alignment - 1); - if (pre_slack) { - pre_slack = alignment - pre_slack; - } - size_t post_slack = base_length - pre_slack - trim_length; - DCHECK(base_length >= trim_length || pre_slack || post_slack); - DCHECK(pre_slack < base_length); - DCHECK(post_slack < base_length); - return TrimMappingInternal(base, base_length, trim_length, accessibility, - commit, pre_slack, post_slack); -} - -} // namespace - -void* SystemAllocPages(void* hint, - size_t length, - PageAccessibilityConfiguration accessibility, - PageTag page_tag, - bool commit) { - DCHECK(!(length & kPageAllocationGranularityOffsetMask)); - DCHECK(!(reinterpret_cast(hint) & - kPageAllocationGranularityOffsetMask)); - DCHECK(commit || accessibility == PageInaccessible); - return SystemAllocPagesInternal(hint, length, accessibility, page_tag, - commit); -} - -void* AllocPages(void* address, - size_t length, - size_t align, - PageAccessibilityConfiguration accessibility, - PageTag page_tag, - bool commit) { - DCHECK(length >= kPageAllocationGranularity); - DCHECK(!(length & kPageAllocationGranularityOffsetMask)); - DCHECK(align >= kPageAllocationGranularity); - // Alignment must be power of 2 for masking math to work. - DCHECK(pdfium::base::bits::IsPowerOfTwo(align)); - DCHECK(!(reinterpret_cast(address) & - kPageAllocationGranularityOffsetMask)); - uintptr_t align_offset_mask = align - 1; - uintptr_t align_base_mask = ~align_offset_mask; - DCHECK(!(reinterpret_cast(address) & align_offset_mask)); - - // If the client passed null as the address, choose a good one. - if (address == nullptr) { - address = GetRandomPageBase(); - address = reinterpret_cast(reinterpret_cast(address) & - align_base_mask); - } - - // First try to force an exact-size, aligned allocation from our random base. -#if defined(ARCH_CPU_32_BITS) - // On 32 bit systems, first try one random aligned address, and then try an - // aligned address derived from the value of |ret|. - constexpr int kExactSizeTries = 2; -#else - // On 64 bit systems, try 3 random aligned addresses. - constexpr int kExactSizeTries = 3; -#endif - - for (int i = 0; i < kExactSizeTries; ++i) { - void* ret = AllocPagesIncludingReserved(address, length, accessibility, - page_tag, commit); - if (ret != nullptr) { - // If the alignment is to our liking, we're done. - if (!(reinterpret_cast(ret) & align_offset_mask)) - return ret; - // Free the memory and try again. - FreePages(ret, length); - } else { - // |ret| is null; if this try was unhinted, we're OOM. - if (kHintIsAdvisory || address == nullptr) - return nullptr; - } - -#if defined(ARCH_CPU_32_BITS) - // For small address spaces, try the first aligned address >= |ret|. Note - // |ret| may be null, in which case |address| becomes null. - address = reinterpret_cast( - (reinterpret_cast(ret) + align_offset_mask) & - align_base_mask); -#else // defined(ARCH_CPU_64_BITS) - // Keep trying random addresses on systems that have a large address space. - address = GetRandomPageBase(); - address = reinterpret_cast(reinterpret_cast(address) & - align_base_mask); -#endif - } - - // Make a larger allocation so we can force alignment. - size_t try_length = length + (align - kPageAllocationGranularity); - CHECK(try_length >= length); - void* ret; - - do { - // Continue randomizing only on POSIX. - address = kHintIsAdvisory ? GetRandomPageBase() : nullptr; - ret = AllocPagesIncludingReserved(address, try_length, accessibility, - page_tag, commit); - // The retries are for Windows, where a race can steal our mapping on - // resize. - } while (ret != nullptr && - (ret = TrimMapping(ret, try_length, length, align, accessibility, - commit)) == nullptr); - - return ret; -} - -void FreePages(void* address, size_t length) { - DCHECK(!(reinterpret_cast(address) & - kPageAllocationGranularityOffsetMask)); - DCHECK(!(length & kPageAllocationGranularityOffsetMask)); - FreePagesInternal(address, length); -} - -bool TrySetSystemPagesAccess(void* address, - size_t length, - PageAccessibilityConfiguration accessibility) { - DCHECK(!(length & kSystemPageOffsetMask)); - return TrySetSystemPagesAccessInternal(address, length, accessibility); -} - -void SetSystemPagesAccess(void* address, - size_t length, - PageAccessibilityConfiguration accessibility) { - DCHECK(!(length & kSystemPageOffsetMask)); - SetSystemPagesAccessInternal(address, length, accessibility); -} - -void DecommitSystemPages(void* address, size_t length) { - DCHECK_EQ(0UL, length & kSystemPageOffsetMask); - DecommitSystemPagesInternal(address, length); -} - -bool RecommitSystemPages(void* address, - size_t length, - PageAccessibilityConfiguration accessibility) { - DCHECK_EQ(0UL, length & kSystemPageOffsetMask); - DCHECK(PageInaccessible != accessibility); - return RecommitSystemPagesInternal(address, length, accessibility); -} - -void DiscardSystemPages(void* address, size_t length) { - DCHECK_EQ(0UL, length & kSystemPageOffsetMask); - DiscardSystemPagesInternal(address, length); -} - -bool ReserveAddressSpace(size_t size) { - // To avoid deadlock, call only SystemAllocPages. - subtle::SpinLock::Guard guard(*GetReserveLock()); - if (s_reservation_address == nullptr) { - void* mem = SystemAllocPages(nullptr, size, PageInaccessible, - PageTag::kChromium, false); - if (mem != nullptr) { - // We guarantee this alignment when reserving address space. - DCHECK(!(reinterpret_cast(mem) & - kPageAllocationGranularityOffsetMask)); - s_reservation_address = mem; - s_reservation_size = size; - return true; - } - } - return false; -} - -bool ReleaseReservation() { - // To avoid deadlock, call only FreePages. - subtle::SpinLock::Guard guard(*GetReserveLock()); - if (!s_reservation_address) - return false; - - FreePages(s_reservation_address, s_reservation_size); - s_reservation_address = nullptr; - s_reservation_size = 0; - return true; -} - -uint32_t GetAllocPageErrorCode() { - return s_allocPageErrorCode; -} - -} // namespace base -} // namespace pdfium diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator.h deleted file mode 100644 index c50b908c7..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator.h +++ /dev/null @@ -1,197 +0,0 @@ -// Copyright (c) 2013 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PAGE_ALLOCATOR_H_ -#define THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PAGE_ALLOCATOR_H_ - -#include - -#include - -#include "build/build_config.h" -#include "third_party/base/allocator/partition_allocator/page_allocator_constants.h" -#include "third_party/base/base_export.h" -#include "third_party/base/compiler_specific.h" - -namespace pdfium { -namespace base { - -enum PageAccessibilityConfiguration { - PageInaccessible, - PageRead, - PageReadWrite, - PageReadExecute, - // This flag is deprecated and will go away soon. - // TODO(bbudge) Remove this as soon as V8 doesn't need RWX pages. - PageReadWriteExecute, -}; - -// macOS supports tagged memory regions, to help in debugging. On Android, -// these tags are used to name anonymous mappings. -enum class PageTag { - kFirst = 240, // Minimum tag value. - kBlinkGC = 252, // Blink GC pages. - kPartitionAlloc = 253, // PartitionAlloc, no matter the partition. - kChromium = 254, // Chromium page. - kV8 = 255, // V8 heap pages. - kLast = kV8 // Maximum tag value. -}; - -// Allocate one or more pages. -// -// The requested |address| is just a hint; the actual address returned may -// differ. The returned address will be aligned at least to |align| bytes. -// |length| is in bytes, and must be a multiple of |kPageAllocationGranularity|. -// |align| is in bytes, and must be a power-of-two multiple of -// |kPageAllocationGranularity|. -// -// If |address| is null, then a suitable and randomized address will be chosen -// automatically. -// -// |page_accessibility| controls the permission of the allocated pages. -// |page_tag| is used on some platforms to identify the source of the -// allocation. Use PageTag::kChromium as a catch-all category. -// -// This call will return null if the allocation cannot be satisfied. -BASE_EXPORT void* AllocPages(void* address, - size_t length, - size_t align, - PageAccessibilityConfiguration page_accessibility, - PageTag tag, - bool commit = true); - -// Free one or more pages starting at |address| and continuing for |length| -// bytes. -// -// |address| and |length| must match a previous call to |AllocPages|. Therefore, -// |address| must be aligned to |kPageAllocationGranularity| bytes, and |length| -// must be a multiple of |kPageAllocationGranularity|. -BASE_EXPORT void FreePages(void* address, size_t length); - -// Mark one or more system pages, starting at |address| with the given -// |page_accessibility|. |length| must be a multiple of |kSystemPageSize| bytes. -// -// Returns true if the permission change succeeded. In most cases you must -// |CHECK| the result. -BASE_EXPORT WARN_UNUSED_RESULT bool TrySetSystemPagesAccess( - void* address, - size_t length, - PageAccessibilityConfiguration page_accessibility); - -// Mark one or more system pages, starting at |address| with the given -// |page_accessibility|. |length| must be a multiple of |kSystemPageSize| bytes. -// -// Performs a CHECK that the operation succeeds. -BASE_EXPORT void SetSystemPagesAccess( - void* address, - size_t length, - PageAccessibilityConfiguration page_accessibility); - -// Decommit one or more system pages starting at |address| and continuing for -// |length| bytes. |length| must be a multiple of |kSystemPageSize|. -// -// Decommitted means that physical resources (RAM or swap) backing the allocated -// virtual address range are released back to the system, but the address space -// is still allocated to the process (possibly using up page table entries or -// other accounting resources). Any access to a decommitted region of memory -// is an error and will generate a fault. -// -// This operation is not atomic on all platforms. -// -// Note: "Committed memory" is a Windows Memory Subsystem concept that ensures -// processes will not fault when touching a committed memory region. There is -// no analogue in the POSIX memory API where virtual memory pages are -// best-effort allocated resources on the first touch. To create a -// platform-agnostic abstraction, this API simulates the Windows "decommit" -// state by both discarding the region (allowing the OS to avoid swap -// operations) and changing the page protections so accesses fault. -// -// TODO(ajwong): This currently does not change page protections on POSIX -// systems due to a perf regression. Tracked at http://crbug.com/766882. -BASE_EXPORT void DecommitSystemPages(void* address, size_t length); - -// Recommit one or more system pages, starting at |address| and continuing for -// |length| bytes with the given |page_accessibility|. |length| must be a -// multiple of |kSystemPageSize|. -// -// Decommitted system pages must be recommitted with their original permissions -// before they are used again. -// -// Returns true if the recommit change succeeded. In most cases you must |CHECK| -// the result. -BASE_EXPORT WARN_UNUSED_RESULT bool RecommitSystemPages( - void* address, - size_t length, - PageAccessibilityConfiguration page_accessibility); - -// Discard one or more system pages starting at |address| and continuing for -// |length| bytes. |length| must be a multiple of |kSystemPageSize|. -// -// Discarding is a hint to the system that the page is no longer required. The -// hint may: -// - Do nothing. -// - Discard the page immediately, freeing up physical pages. -// - Discard the page at some time in the future in response to memory -// pressure. -// -// Only committed pages should be discarded. Discarding a page does not decommit -// it, and it is valid to discard an already-discarded page. A read or write to -// a discarded page will not fault. -// -// Reading from a discarded page may return the original page content, or a page -// full of zeroes. -// -// Writing to a discarded page is the only guaranteed way to tell the system -// that the page is required again. Once written to, the content of the page is -// guaranteed stable once more. After being written to, the page content may be -// based on the original page content, or a page of zeroes. -BASE_EXPORT void DiscardSystemPages(void* address, size_t length); - -// Rounds up |address| to the next multiple of |kSystemPageSize|. Returns -// 0 for an |address| of 0. -constexpr ALWAYS_INLINE uintptr_t RoundUpToSystemPage(uintptr_t address) { - return (address + kSystemPageOffsetMask) & kSystemPageBaseMask; -} - -// Rounds down |address| to the previous multiple of |kSystemPageSize|. Returns -// 0 for an |address| of 0. -constexpr ALWAYS_INLINE uintptr_t RoundDownToSystemPage(uintptr_t address) { - return address & kSystemPageBaseMask; -} - -// Rounds up |address| to the next multiple of |kPageAllocationGranularity|. -// Returns 0 for an |address| of 0. -constexpr ALWAYS_INLINE uintptr_t -RoundUpToPageAllocationGranularity(uintptr_t address) { - return (address + kPageAllocationGranularityOffsetMask) & - kPageAllocationGranularityBaseMask; -} - -// Rounds down |address| to the previous multiple of -// |kPageAllocationGranularity|. Returns 0 for an |address| of 0. -constexpr ALWAYS_INLINE uintptr_t -RoundDownToPageAllocationGranularity(uintptr_t address) { - return address & kPageAllocationGranularityBaseMask; -} - -// Reserves (at least) |size| bytes of address space, aligned to -// |kPageAllocationGranularity|. This can be called early on to make it more -// likely that large allocations will succeed. Returns true if the reservation -// succeeded, false if the reservation failed or a reservation was already made. -BASE_EXPORT bool ReserveAddressSpace(size_t size); - -// Releases any reserved address space. |AllocPages| calls this automatically on -// an allocation failure. External allocators may also call this on failure. -// -// Returns true when an existing reservation was released. -BASE_EXPORT bool ReleaseReservation(); - -// Returns |errno| (POSIX) or the result of |GetLastError| (Windows) when |mmap| -// (POSIX) or |VirtualAlloc| (Windows) fails. -BASE_EXPORT uint32_t GetAllocPageErrorCode(); - -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PAGE_ALLOCATOR_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator_constants.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator_constants.h deleted file mode 100644 index 17e29ecb9..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator_constants.h +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PAGE_ALLOCATOR_CONSTANTS_H_ -#define THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PAGE_ALLOCATOR_CONSTANTS_H_ - -#include - -#include "build/build_config.h" - -namespace pdfium { -namespace base { -#if defined(OS_WIN) || defined(ARCH_CPU_PPC64) -static constexpr size_t kPageAllocationGranularityShift = 16; // 64KB -#elif defined(_MIPS_ARCH_LOONGSON) || defined(ARCH_CPU_LOONGARCH64) -static constexpr size_t kPageAllocationGranularityShift = 14; // 16KB -#elif defined(ARCH_CPU_SW64) -static constexpr size_t kPageAllocationGranularityShift = 13; // 8KB -#elif defined(OS_APPLE) && defined(ARCH_CPU_ARM64) -static constexpr size_t kPageAllocationGranularityShift = 14; // 16KB -#else -static constexpr size_t kPageAllocationGranularityShift = 12; // 4KB -#endif -static constexpr size_t kPageAllocationGranularity = - 1 << kPageAllocationGranularityShift; -static constexpr size_t kPageAllocationGranularityOffsetMask = - kPageAllocationGranularity - 1; -static constexpr size_t kPageAllocationGranularityBaseMask = - ~kPageAllocationGranularityOffsetMask; - -#if defined(_MIPS_ARCH_LOONGSON) || defined(ARCH_CPU_LOONGARCH64) -static constexpr size_t kSystemPageSize = 16384; -#elif defined(ARCH_CPU_PPC64) -// Modern ppc64 systems support 4KB and 64KB page sizes. -// Since 64KB is the de-facto standard on the platform -// and binaries compiled for 64KB are likely to work on 4KB systems, -// 64KB is a good choice here. -static constexpr size_t kSystemPageSize = 65536; -#elif defined(OS_APPLE) && defined(ARCH_CPU_ARM64) -static constexpr size_t kSystemPageSize = 16384; -#elif defined(ARCH_CPU_SW64) -static constexpr size_t kSystemPageSize = 8192; -#else -//default page size changed to 64k. -//binaries compiled for 64KB are likely to work on 4KB systems, -//64KB is a good choice here. -//根据系统页大小分配 -#if defined(SYSTEMPAGESIZE) -static constexpr size_t kSystemPageSize = SYSTEMPAGESIZE; -#else -static constexpr size_t kSystemPageSize = 4096; -#endif -#endif -static constexpr size_t kSystemPageOffsetMask = kSystemPageSize - 1; -static_assert((kSystemPageSize & (kSystemPageSize - 1)) == 0, - "kSystemPageSize must be power of 2"); -static constexpr size_t kSystemPageBaseMask = ~kSystemPageOffsetMask; - -static constexpr size_t kPageMetadataShift = 5; // 32 bytes per partition page. -static constexpr size_t kPageMetadataSize = 1 << kPageMetadataShift; - -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PAGE_ALLOCATOR_CONSTANTS_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator_internal.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator_internal.h deleted file mode 100644 index 22843149e..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator_internal.h +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PAGE_ALLOCATOR_INTERNAL_H_ -#define THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PAGE_ALLOCATOR_INTERNAL_H_ - -namespace pdfium { -namespace base { - -void* SystemAllocPages(void* hint, - size_t length, - PageAccessibilityConfiguration accessibility, - PageTag page_tag, - bool commit); - -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PAGE_ALLOCATOR_INTERNAL_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator_internals_posix.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator_internals_posix.h deleted file mode 100644 index bfc5592d7..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator_internals_posix.h +++ /dev/null @@ -1,218 +0,0 @@ -// Copyright (c) 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PAGE_ALLOCATOR_INTERNALS_POSIX_H_ -#define THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PAGE_ALLOCATOR_INTERNALS_POSIX_H_ - -#include -#include - -#include "build/build_config.h" - -#if defined(OS_APPLE) -#include -#endif -#if defined(OS_ANDROID) -#include -#endif -#if defined(OS_LINUX) || defined(OS_CHROMEOS) -#include - -#include -#endif - -#include "third_party/base/allocator/partition_allocator/page_allocator.h" -#include "third_party/base/logging.h" -#include - -#ifndef MAP_ANONYMOUS -#define MAP_ANONYMOUS MAP_ANON -#endif - -namespace pdfium { -namespace base { - -#if defined(OS_ANDROID) -namespace { -const char* PageTagToName(PageTag tag) { - // Important: All the names should be string literals. As per prctl.h in - // //third_party/android_ndk the kernel keeps a pointer to the name instead - // of copying it. - // - // Having the name in .rodata ensures that the pointer remains valid as - // long as the mapping is alive. - switch (tag) { - case PageTag::kBlinkGC: - return "blink_gc"; - case PageTag::kPartitionAlloc: - return "partition_alloc"; - case PageTag::kChromium: - return "chromium"; - case PageTag::kV8: - return "v8"; - default: - DCHECK(false); - return ""; - } -} -} // namespace -#endif // defined(OS_ANDROID) - -// |mmap| uses a nearby address if the hint address is blocked. -constexpr bool kHintIsAdvisory = true; -std::atomic s_allocPageErrorCode{0}; - -int GetAccessFlags(PageAccessibilityConfiguration accessibility) { - switch (accessibility) { - case PageRead: - return PROT_READ; - case PageReadWrite: - return PROT_READ | PROT_WRITE; - case PageReadExecute: - return PROT_READ | PROT_EXEC; - case PageReadWriteExecute: - return PROT_READ | PROT_WRITE | PROT_EXEC; - default: - NOTREACHED(); - FALLTHROUGH; - case PageInaccessible: - return PROT_NONE; - } -} - -void* SystemAllocPagesInternal(void* hint, - size_t length, - PageAccessibilityConfiguration accessibility, - PageTag page_tag, - bool commit) { -#if defined(OS_APPLE) - // Use a custom tag to make it easier to distinguish Partition Alloc regions - // in vmmap(1). Tags between 240-255 are supported. - DCHECK(PageTag::kFirst <= page_tag); - DCHECK(PageTag::kLast >= page_tag); - int fd = VM_MAKE_TAG(static_cast(page_tag)); -#else - int fd = -1; -#endif - - int access_flag = GetAccessFlags(accessibility); - int map_flags = MAP_ANONYMOUS | MAP_PRIVATE; - - // TODO(https://crbug.com/927411): Remove once Fuchsia uses a native page - // allocator, rather than relying on POSIX compatibility. -#if defined(OS_FUCHSIA) - if (page_tag == PageTag::kV8) { - map_flags |= MAP_JIT; - } -#endif - - void* ret = mmap(hint, length, access_flag, map_flags, fd, 0); - if (ret == MAP_FAILED) { - s_allocPageErrorCode = errno; - ret = nullptr; - } - -#if defined(OS_ANDROID) - // On Android, anonymous mappings can have a name attached to them. This is - // useful for debugging, and double-checking memory attribution. - if (ret) { - // No error checking on purpose, testing only. - prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, ret, length, - PageTagToName(page_tag)); - } -#endif - - return ret; -} - -void* TrimMappingInternal(void* base, - size_t base_length, - size_t trim_length, - PageAccessibilityConfiguration accessibility, - bool commit, - size_t pre_slack, - size_t post_slack) { - void* ret = base; - // We can resize the allocation run. Release unneeded memory before and after - // the aligned range. - if (pre_slack) { - int res = munmap(base, pre_slack); - CHECK(!res); - ret = reinterpret_cast(base) + pre_slack; - } - if (post_slack) { - int res = munmap(reinterpret_cast(ret) + trim_length, post_slack); - CHECK(!res); - } - return ret; -} - -bool TrySetSystemPagesAccessInternal( - void* address, - size_t length, - PageAccessibilityConfiguration accessibility) { - return 0 == mprotect(address, length, GetAccessFlags(accessibility)); -} - -void SetSystemPagesAccessInternal( - void* address, - size_t length, - PageAccessibilityConfiguration accessibility) { - CHECK_EQ(0, mprotect(address, length, GetAccessFlags(accessibility))); -} - -void FreePagesInternal(void* address, size_t length) { - CHECK(!munmap(address, length)); -} - -void DecommitSystemPagesInternal(void* address, size_t length) { - // In POSIX, there is no decommit concept. Discarding is an effective way of - // implementing the Windows semantics where the OS is allowed to not swap the - // pages in the region. - // - // TODO(ajwong): Also explore setting PageInaccessible to make the protection - // semantics consistent between Windows and POSIX. This might have a perf cost - // though as both decommit and recommit would incur an extra syscall. - // http://crbug.com/766882 - DiscardSystemPages(address, length); -} - -bool RecommitSystemPagesInternal(void* address, - size_t length, - PageAccessibilityConfiguration accessibility) { -#if defined(OS_APPLE) - // On macOS, to update accounting, we need to make another syscall. For more - // details, see https://crbug.com/823915. - madvise(address, length, MADV_FREE_REUSE); -#endif - - // On POSIX systems, the caller need simply read the memory to recommit it. - // This has the correct behavior because the API requires the permissions to - // be the same as before decommitting and all configurations can read. - return true; -} - -void DiscardSystemPagesInternal(void* address, size_t length) { -#if defined(OS_APPLE) - int ret = madvise(address, length, MADV_FREE_REUSABLE); - if (ret) { - // MADV_FREE_REUSABLE sometimes fails, so fall back to MADV_DONTNEED. - ret = madvise(address, length, MADV_DONTNEED); - } - CHECK(0 == ret); -#else - // We have experimented with other flags, but with suboptimal results. - // - // MADV_FREE (Linux): Makes our memory measurements less predictable; - // performance benefits unclear. - // - // Therefore, we just do the simple thing: MADV_DONTNEED. - CHECK(!madvise(address, length, MADV_DONTNEED)); -#endif -} - -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PAGE_ALLOCATOR_INTERNALS_POSIX_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator_internals_win.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator_internals_win.h deleted file mode 100644 index 9174ee867..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/page_allocator_internals_win.h +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PAGE_ALLOCATOR_INTERNALS_WIN_H_ -#define THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PAGE_ALLOCATOR_INTERNALS_WIN_H_ - -#include "third_party/base/allocator/partition_allocator/oom.h" -#include "third_party/base/allocator/partition_allocator/page_allocator_internal.h" - -namespace pdfium { -namespace base { - -// |VirtualAlloc| will fail if allocation at the hint address is blocked. -constexpr bool kHintIsAdvisory = false; -std::atomic s_allocPageErrorCode{ERROR_SUCCESS}; - -int GetAccessFlags(PageAccessibilityConfiguration accessibility) { - switch (accessibility) { - case PageRead: - return PAGE_READONLY; - case PageReadWrite: - return PAGE_READWRITE; - case PageReadExecute: - return PAGE_EXECUTE_READ; - case PageReadWriteExecute: - return PAGE_EXECUTE_READWRITE; - default: - NOTREACHED(); - FALLTHROUGH; - case PageInaccessible: - return PAGE_NOACCESS; - } -} - -void* SystemAllocPagesInternal(void* hint, - size_t length, - PageAccessibilityConfiguration accessibility, - PageTag page_tag, - bool commit) { - DWORD access_flag = GetAccessFlags(accessibility); - const DWORD type_flags = commit ? (MEM_RESERVE | MEM_COMMIT) : MEM_RESERVE; - void* ret = VirtualAlloc(hint, length, type_flags, access_flag); - if (ret == nullptr) { - s_allocPageErrorCode = GetLastError(); - } - return ret; -} - -void* TrimMappingInternal(void* base, - size_t base_length, - size_t trim_length, - PageAccessibilityConfiguration accessibility, - bool commit, - size_t pre_slack, - size_t post_slack) { - void* ret = base; - if (pre_slack || post_slack) { - // We cannot resize the allocation run. Free it and retry at the aligned - // address within the freed range. - ret = reinterpret_cast(base) + pre_slack; - FreePages(base, base_length); - ret = SystemAllocPages(ret, trim_length, accessibility, PageTag::kChromium, - commit); - } - return ret; -} - -bool TrySetSystemPagesAccessInternal( - void* address, - size_t length, - PageAccessibilityConfiguration accessibility) { - if (accessibility == PageInaccessible) - return VirtualFree(address, length, MEM_DECOMMIT) != 0; - return nullptr != VirtualAlloc(address, length, MEM_COMMIT, - GetAccessFlags(accessibility)); -} - -void SetSystemPagesAccessInternal( - void* address, - size_t length, - PageAccessibilityConfiguration accessibility) { - if (accessibility == PageInaccessible) { - if (!VirtualFree(address, length, MEM_DECOMMIT)) { - // We check `GetLastError` for `ERROR_SUCCESS` here so that in a crash - // report we get the error number. - CHECK_EQ(static_cast(ERROR_SUCCESS), GetLastError()); - } - } else { - if (!VirtualAlloc(address, length, MEM_COMMIT, - GetAccessFlags(accessibility))) { - int32_t error = GetLastError(); - if (error == ERROR_COMMITMENT_LIMIT) - OOM_CRASH(length); - // We check `GetLastError` for `ERROR_SUCCESS` here so that in a crash - // report we get the error number. - CHECK_EQ(ERROR_SUCCESS, error); - } - } -} - -void FreePagesInternal(void* address, size_t length) { - CHECK(VirtualFree(address, 0, MEM_RELEASE)); -} - -void DecommitSystemPagesInternal(void* address, size_t length) { - SetSystemPagesAccess(address, length, PageInaccessible); -} - -bool RecommitSystemPagesInternal(void* address, - size_t length, - PageAccessibilityConfiguration accessibility) { - return TrySetSystemPagesAccess(address, length, accessibility); -} - -void DiscardSystemPagesInternal(void* address, size_t length) { - // On Windows, discarded pages are not returned to the system immediately and - // not guaranteed to be zeroed when returned to the application. - using DiscardVirtualMemoryFunction = - DWORD(WINAPI*)(PVOID virtualAddress, SIZE_T size); - static DiscardVirtualMemoryFunction discard_virtual_memory = - reinterpret_cast(-1); - if (discard_virtual_memory == - reinterpret_cast(-1)) - discard_virtual_memory = - reinterpret_cast(GetProcAddress( - GetModuleHandle(L"Kernel32.dll"), "DiscardVirtualMemory")); - // Use DiscardVirtualMemory when available because it releases faster than - // MEM_RESET. - DWORD ret = 1; - if (discard_virtual_memory) { - ret = discard_virtual_memory(address, length); - } - // DiscardVirtualMemory is buggy in Win10 SP0, so fall back to MEM_RESET on - // failure. - if (ret) { - void* ptr = VirtualAlloc(address, length, MEM_RESET, PAGE_READWRITE); - CHECK(ptr); - } -} - -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PAGE_ALLOCATOR_INTERNALS_WIN_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_alloc.cc b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_alloc.cc deleted file mode 100644 index 910891b38..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_alloc.cc +++ /dev/null @@ -1,852 +0,0 @@ -// Copyright (c) 2013 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "third_party/base/allocator/partition_allocator/partition_alloc.h" - -#include - -#include -#include - -#include "third_party/base/allocator/partition_allocator/partition_direct_map_extent.h" -#include "third_party/base/allocator/partition_allocator/partition_oom.h" -#include "third_party/base/allocator/partition_allocator/partition_page.h" -#include "third_party/base/allocator/partition_allocator/spin_lock.h" - -namespace pdfium { -namespace base { - -namespace { - -bool InitializeOnce() { - // We mark the sentinel bucket/page as free to make sure it is skipped by our - // logic to find a new active page. - internal::PartitionBucket::get_sentinel_bucket()->active_pages_head = - internal::PartitionPage::get_sentinel_page(); - return true; -} - -} // namespace - -// Two partition pages are used as guard / metadata page so make sure the super -// page size is bigger. -static_assert(kPartitionPageSize * 4 <= kSuperPageSize, "ok super page size"); -static_assert(!(kSuperPageSize % kPartitionPageSize), "ok super page multiple"); -// Four system pages gives us room to hack out a still-guard-paged piece -// of metadata in the middle of a guard partition page. -static_assert(kSystemPageSize * 4 <= kPartitionPageSize, - "ok partition page size"); -static_assert(!(kPartitionPageSize % kSystemPageSize), - "ok partition page multiple"); -static_assert(sizeof(internal::PartitionPage) <= kPageMetadataSize, - "PartitionPage should not be too big"); -static_assert(sizeof(internal::PartitionBucket) <= kPageMetadataSize, - "PartitionBucket should not be too big"); -static_assert(sizeof(internal::PartitionSuperPageExtentEntry) <= - kPageMetadataSize, - "PartitionSuperPageExtentEntry should not be too big"); -static_assert(kPageMetadataSize * kNumPartitionPagesPerSuperPage <= - kSystemPageSize, - "page metadata fits in hole"); -// Limit to prevent callers accidentally overflowing an int size. -static_assert(kGenericMaxDirectMapped <= - (1UL << 31) + kPageAllocationGranularity, - "maximum direct mapped allocation"); -// Check that some of our zanier calculations worked out as expected. -static_assert(kGenericSmallestBucket == 8, "generic smallest bucket"); -static_assert(kGenericMaxBucketed == 983040, "generic max bucketed"); -static_assert(kMaxSystemPagesPerSlotSpan < (1 << 8), - "System pages per slot span must be less than 128."); - -internal::PartitionRootBase::PartitionRootBase() = default; -internal::PartitionRootBase::~PartitionRootBase() = default; -PartitionRoot::PartitionRoot() = default; -PartitionRoot::~PartitionRoot() = default; -PartitionRootGeneric::PartitionRootGeneric() = default; -PartitionRootGeneric::~PartitionRootGeneric() = default; -PartitionAllocatorGeneric::PartitionAllocatorGeneric() = default; -PartitionAllocatorGeneric::~PartitionAllocatorGeneric() = default; - -subtle::SpinLock* GetLock() { - static subtle::SpinLock* s_initialized_lock = nullptr; - if (!s_initialized_lock) - s_initialized_lock = new subtle::SpinLock(); - return s_initialized_lock; -} - -OomFunction internal::PartitionRootBase::g_oom_handling_function = nullptr; -std::atomic PartitionAllocHooks::hooks_enabled_(false); -subtle::SpinLock PartitionAllocHooks::set_hooks_lock_; -std::atomic - PartitionAllocHooks::allocation_observer_hook_(nullptr); -std::atomic - PartitionAllocHooks::free_observer_hook_(nullptr); -std::atomic - PartitionAllocHooks::allocation_override_hook_(nullptr); -std::atomic - PartitionAllocHooks::free_override_hook_(nullptr); -std::atomic - PartitionAllocHooks::realloc_override_hook_(nullptr); - -void PartitionAllocHooks::SetObserverHooks(AllocationObserverHook* alloc_hook, - FreeObserverHook* free_hook) { - subtle::SpinLock::Guard guard(set_hooks_lock_); - - // Chained hooks are not supported. Registering a non-null hook when a - // non-null hook is already registered indicates somebody is trying to - // overwrite a hook. - CHECK((!allocation_observer_hook_ && !free_observer_hook_) || - (!alloc_hook && !free_hook)); - allocation_observer_hook_ = alloc_hook; - free_observer_hook_ = free_hook; - - hooks_enabled_ = allocation_observer_hook_ || allocation_override_hook_; -} - -void PartitionAllocHooks::SetOverrideHooks(AllocationOverrideHook* alloc_hook, - FreeOverrideHook* free_hook, - ReallocOverrideHook realloc_hook) { - subtle::SpinLock::Guard guard(set_hooks_lock_); - - CHECK((!allocation_override_hook_ && !free_override_hook_ && - !realloc_override_hook_) || - (!alloc_hook && !free_hook && !realloc_hook)); - allocation_override_hook_ = alloc_hook; - free_override_hook_ = free_hook; - realloc_override_hook_ = realloc_hook; - - hooks_enabled_ = allocation_observer_hook_ || allocation_override_hook_; -} - -void PartitionAllocHooks::AllocationObserverHookIfEnabled( - void* address, - size_t size, - const char* type_name) { - if (AllocationObserverHook* hook = - allocation_observer_hook_.load(std::memory_order_relaxed)) { - hook(address, size, type_name); - } -} - -bool PartitionAllocHooks::AllocationOverrideHookIfEnabled( - void** out, - int flags, - size_t size, - const char* type_name) { - if (AllocationOverrideHook* hook = - allocation_override_hook_.load(std::memory_order_relaxed)) { - return hook(out, flags, size, type_name); - } - return false; -} - -void PartitionAllocHooks::FreeObserverHookIfEnabled(void* address) { - if (FreeObserverHook* hook = - free_observer_hook_.load(std::memory_order_relaxed)) { - hook(address); - } -} - -bool PartitionAllocHooks::FreeOverrideHookIfEnabled(void* address) { - if (FreeOverrideHook* hook = - free_override_hook_.load(std::memory_order_relaxed)) { - return hook(address); - } - return false; -} - -void PartitionAllocHooks::ReallocObserverHookIfEnabled(void* old_address, - void* new_address, - size_t size, - const char* type_name) { - // Report a reallocation as a free followed by an allocation. - AllocationObserverHook* allocation_hook = - allocation_observer_hook_.load(std::memory_order_relaxed); - FreeObserverHook* free_hook = - free_observer_hook_.load(std::memory_order_relaxed); - if (allocation_hook && free_hook) { - free_hook(old_address); - allocation_hook(new_address, size, type_name); - } -} -bool PartitionAllocHooks::ReallocOverrideHookIfEnabled(size_t* out, - void* address) { - if (ReallocOverrideHook* hook = - realloc_override_hook_.load(std::memory_order_relaxed)) { - return hook(out, address); - } - return false; -} - -static void PartitionAllocBaseInit(internal::PartitionRootBase* root) { - DCHECK(!root->initialized); - static bool initialized = InitializeOnce(); - static_cast(initialized); - - // This is a "magic" value so we can test if a root pointer is valid. - root->inverted_self = ~reinterpret_cast(root); - root->initialized = true; -} - -void PartitionAllocGlobalInit(OomFunction on_out_of_memory) { - DCHECK(on_out_of_memory); - internal::PartitionRootBase::g_oom_handling_function = on_out_of_memory; -} - -void PartitionRoot::Init(size_t bucket_count, size_t maximum_allocation) { - PartitionAllocBaseInit(this); - - num_buckets = bucket_count; - max_allocation = maximum_allocation; - for (size_t i = 0; i < num_buckets; ++i) { - internal::PartitionBucket& bucket = buckets()[i]; - bucket.Init(i == 0 ? kAllocationGranularity : (i << kBucketShift)); - } -} - -void PartitionRootGeneric::Init() { - subtle::SpinLock::Guard guard(lock); - - PartitionAllocBaseInit(this); - - // Precalculate some shift and mask constants used in the hot path. - // Example: malloc(41) == 101001 binary. - // Order is 6 (1 << 6-1) == 32 is highest bit set. - // order_index is the next three MSB == 010 == 2. - // sub_order_index_mask is a mask for the remaining bits == 11 (masking to 01 - // for - // the sub_order_index). - size_t order; - for (order = 0; order <= kBitsPerSizeT; ++order) { - size_t order_index_shift; - if (order < kGenericNumBucketsPerOrderBits + 1) - order_index_shift = 0; - else - order_index_shift = order - (kGenericNumBucketsPerOrderBits + 1); - order_index_shifts[order] = order_index_shift; - size_t sub_order_index_mask; - if (order == kBitsPerSizeT) { - // This avoids invoking undefined behavior for an excessive shift. - sub_order_index_mask = - static_cast(-1) >> (kGenericNumBucketsPerOrderBits + 1); - } else { - sub_order_index_mask = ((static_cast(1) << order) - 1) >> - (kGenericNumBucketsPerOrderBits + 1); - } - order_sub_index_masks[order] = sub_order_index_mask; - } - - // Set up the actual usable buckets first. - // Note that typical values (i.e. min allocation size of 8) will result in - // pseudo buckets (size==9 etc. or more generally, size is not a multiple - // of the smallest allocation granularity). - // We avoid them in the bucket lookup map, but we tolerate them to keep the - // code simpler and the structures more generic. - size_t i, j; - size_t current_size = kGenericSmallestBucket; - size_t current_increment = - kGenericSmallestBucket >> kGenericNumBucketsPerOrderBits; - internal::PartitionBucket* bucket = &buckets[0]; - for (i = 0; i < kGenericNumBucketedOrders; ++i) { - for (j = 0; j < kGenericNumBucketsPerOrder; ++j) { - bucket->Init(current_size); - // Disable psuedo buckets so that touching them faults. - if (current_size % kGenericSmallestBucket) - bucket->active_pages_head = nullptr; - current_size += current_increment; - ++bucket; - } - current_increment <<= 1; - } - DCHECK(current_size == 1 << kGenericMaxBucketedOrder); - DCHECK(bucket == &buckets[0] + kGenericNumBuckets); - - // Then set up the fast size -> bucket lookup table. - bucket = &buckets[0]; - internal::PartitionBucket** bucket_ptr = &bucket_lookups[0]; - for (order = 0; order <= kBitsPerSizeT; ++order) { - for (j = 0; j < kGenericNumBucketsPerOrder; ++j) { - if (order < kGenericMinBucketedOrder) { - // Use the bucket of the finest granularity for malloc(0) etc. - *bucket_ptr++ = &buckets[0]; - } else if (order > kGenericMaxBucketedOrder) { - *bucket_ptr++ = internal::PartitionBucket::get_sentinel_bucket(); - } else { - internal::PartitionBucket* valid_bucket = bucket; - // Skip over invalid buckets. - while (valid_bucket->slot_size % kGenericSmallestBucket) - valid_bucket++; - *bucket_ptr++ = valid_bucket; - bucket++; - } - } - } - DCHECK(bucket == &buckets[0] + kGenericNumBuckets); - DCHECK(bucket_ptr == &bucket_lookups[0] + - ((kBitsPerSizeT + 1) * kGenericNumBucketsPerOrder)); - // And there's one last bucket lookup that will be hit for e.g. malloc(-1), - // which tries to overflow to a non-existant order. - *bucket_ptr = internal::PartitionBucket::get_sentinel_bucket(); -} - -bool PartitionReallocDirectMappedInPlace(PartitionRootGeneric* root, - internal::PartitionPage* page, - size_t raw_size) { - DCHECK(page->bucket->is_direct_mapped()); - - raw_size = internal::PartitionCookieSizeAdjustAdd(raw_size); - - // Note that the new size might be a bucketed size; this function is called - // whenever we're reallocating a direct mapped allocation. - size_t new_size = internal::PartitionBucket::get_direct_map_size(raw_size); - if (new_size < kGenericMinDirectMappedDownsize) - return false; - - // bucket->slot_size is the current size of the allocation. - size_t current_size = page->bucket->slot_size; - char* char_ptr = static_cast(internal::PartitionPage::ToPointer(page)); - if (new_size == current_size) { - // No need to move any memory around, but update size and cookie below. - } else if (new_size < current_size) { - size_t map_size = - internal::PartitionDirectMapExtent::FromPage(page)->map_size; - - // Don't reallocate in-place if new size is less than 80 % of the full - // map size, to avoid holding on to too much unused address space. - if ((new_size / kSystemPageSize) * 5 < (map_size / kSystemPageSize) * 4) - return false; - - // Shrink by decommitting unneeded pages and making them inaccessible. - size_t decommit_size = current_size - new_size; - root->DecommitSystemPages(char_ptr + new_size, decommit_size); - SetSystemPagesAccess(char_ptr + new_size, decommit_size, PageInaccessible); - } else if (new_size <= - internal::PartitionDirectMapExtent::FromPage(page)->map_size) { - // Grow within the actually allocated memory. Just need to make the - // pages accessible again. - size_t recommit_size = new_size - current_size; - SetSystemPagesAccess(char_ptr + current_size, recommit_size, PageReadWrite); - root->RecommitSystemPages(char_ptr + current_size, recommit_size); - -#if DCHECK_IS_ON() - memset(char_ptr + current_size, kUninitializedByte, recommit_size); -#endif - } else { - // We can't perform the realloc in-place. - // TODO: support this too when possible. - return false; - } - -#if DCHECK_IS_ON() - // Write a new trailing cookie. - internal::PartitionCookieWriteValue(char_ptr + raw_size - - internal::kCookieSize); -#endif - - page->set_raw_size(raw_size); - DCHECK(page->get_raw_size() == raw_size); - - page->bucket->slot_size = new_size; - return true; -} - -void* PartitionReallocGenericFlags(PartitionRootGeneric* root, - int flags, - void* ptr, - size_t new_size, - const char* type_name) { -#if defined(MEMORY_TOOL_REPLACES_ALLOCATOR) - CHECK_MAX_SIZE_OR_RETURN_NULLPTR(new_size, flags); - void* result = realloc(ptr, new_size); - CHECK(result || flags & PartitionAllocReturnNull); - return result; -#else - if (UNLIKELY(!ptr)) - return PartitionAllocGenericFlags(root, flags, new_size, type_name); - if (UNLIKELY(!new_size)) { - root->Free(ptr); - return nullptr; - } - - if (new_size > kGenericMaxDirectMapped) { - if (flags & PartitionAllocReturnNull) - return nullptr; - internal::PartitionExcessiveAllocationSize(new_size); - } - - const bool hooks_enabled = PartitionAllocHooks::AreHooksEnabled(); - bool overridden = false; - size_t actual_old_size; - if (UNLIKELY(hooks_enabled)) { - overridden = PartitionAllocHooks::ReallocOverrideHookIfEnabled( - &actual_old_size, ptr); - } - if (LIKELY(!overridden)) { - internal::PartitionPage* page = internal::PartitionPage::FromPointer( - internal::PartitionCookieFreePointerAdjust(ptr)); - bool success = false; - { - subtle::SpinLock::Guard guard{root->lock}; - // TODO(palmer): See if we can afford to make this a CHECK. - DCHECK(root->IsValidPage(page)); - - if (UNLIKELY(page->bucket->is_direct_mapped())) { - // We may be able to perform the realloc in place by changing the - // accessibility of memory pages and, if reducing the size, decommitting - // them. - success = PartitionReallocDirectMappedInPlace(root, page, new_size); - } - } - if (success) { - if (UNLIKELY(hooks_enabled)) { - PartitionAllocHooks::ReallocObserverHookIfEnabled(ptr, ptr, new_size, - type_name); - } - return ptr; - } - - const size_t actual_new_size = root->ActualSize(new_size); - actual_old_size = PartitionAllocGetSize(ptr); - - // TODO: note that tcmalloc will "ignore" a downsizing realloc() unless the - // new size is a significant percentage smaller. We could do the same if we - // determine it is a win. - if (actual_new_size == actual_old_size) { - // Trying to allocate a block of size |new_size| would give us a block of - // the same size as the one we've already got, so re-use the allocation - // after updating statistics (and cookies, if present). - page->set_raw_size(internal::PartitionCookieSizeAdjustAdd(new_size)); -#if DCHECK_IS_ON() - // Write a new trailing cookie when it is possible to keep track of - // |new_size| via the raw size pointer. - if (page->get_raw_size_ptr()) - internal::PartitionCookieWriteValue(static_cast(ptr) + new_size); -#endif - return ptr; - } - } - - // This realloc cannot be resized in-place. Sadness. - void* ret = PartitionAllocGenericFlags(root, flags, new_size, type_name); - if (!ret) { - if (flags & PartitionAllocReturnNull) - return nullptr; - internal::PartitionExcessiveAllocationSize(new_size); - } - - size_t copy_size = actual_old_size; - if (new_size < copy_size) - copy_size = new_size; - - memcpy(ret, ptr, copy_size); - root->Free(ptr); - return ret; -#endif -} - -void* PartitionRootGeneric::Realloc(void* ptr, - size_t new_size, - const char* type_name) { - return PartitionReallocGenericFlags(this, 0, ptr, new_size, type_name); -} - -void* PartitionRootGeneric::TryRealloc(void* ptr, - size_t new_size, - const char* type_name) { - return PartitionReallocGenericFlags(this, PartitionAllocReturnNull, ptr, - new_size, type_name); -} - -static size_t PartitionPurgePage(internal::PartitionPage* page, bool discard) { - const internal::PartitionBucket* bucket = page->bucket; - size_t slot_size = bucket->slot_size; - if (slot_size < kSystemPageSize || !page->num_allocated_slots) - return 0; - - size_t bucket_num_slots = bucket->get_slots_per_span(); - size_t discardable_bytes = 0; - - size_t raw_size = page->get_raw_size(); - if (raw_size) { - uint32_t used_bytes = static_cast(RoundUpToSystemPage(raw_size)); - discardable_bytes = bucket->slot_size - used_bytes; - if (discardable_bytes && discard) { - char* ptr = - reinterpret_cast(internal::PartitionPage::ToPointer(page)); - ptr += used_bytes; - DiscardSystemPages(ptr, discardable_bytes); - } - return discardable_bytes; - } - - constexpr size_t kMaxSlotCount = - (kPartitionPageSize * kMaxPartitionPagesPerSlotSpan) / kSystemPageSize; - DCHECK(bucket_num_slots <= kMaxSlotCount); - DCHECK(page->num_unprovisioned_slots < bucket_num_slots); - size_t num_slots = bucket_num_slots - page->num_unprovisioned_slots; - char slot_usage[kMaxSlotCount]; -#if !defined(OS_WIN) - // The last freelist entry should not be discarded when using OS_WIN. - // DiscardVirtualMemory makes the contents of discarded memory undefined. - size_t last_slot = static_cast(-1); -#endif - memset(slot_usage, 1, num_slots); - char* ptr = reinterpret_cast(internal::PartitionPage::ToPointer(page)); - // First, walk the freelist for this page and make a bitmap of which slots - // are not in use. - for (internal::PartitionFreelistEntry* entry = page->freelist_head; entry; - /**/) { - size_t slot_index = (reinterpret_cast(entry) - ptr) / slot_size; - DCHECK(slot_index < num_slots); - slot_usage[slot_index] = 0; - entry = internal::EncodedPartitionFreelistEntry::Decode(entry->next); -#if !defined(OS_WIN) - // If we have a slot where the masked freelist entry is 0, we can actually - // discard that freelist entry because touching a discarded page is - // guaranteed to return original content or 0. (Note that this optimization - // won't fire on big-endian machines because the masking function is - // negation.) - if (!internal::PartitionFreelistEntry::Encode(entry)) - last_slot = slot_index; -#endif - } - - // If the slot(s) at the end of the slot span are not in used, we can truncate - // them entirely and rewrite the freelist. - size_t truncated_slots = 0; - while (!slot_usage[num_slots - 1]) { - truncated_slots++; - num_slots--; - DCHECK(num_slots); - } - // First, do the work of calculating the discardable bytes. Don't actually - // discard anything unless the discard flag was passed in. - if (truncated_slots) { - size_t unprovisioned_bytes = 0; - char* begin_ptr = ptr + (num_slots * slot_size); - char* end_ptr = begin_ptr + (slot_size * truncated_slots); - begin_ptr = reinterpret_cast( - RoundUpToSystemPage(reinterpret_cast(begin_ptr))); - // We round the end pointer here up and not down because we're at the end of - // a slot span, so we "own" all the way up the page boundary. - end_ptr = reinterpret_cast( - RoundUpToSystemPage(reinterpret_cast(end_ptr))); - DCHECK(end_ptr <= ptr + bucket->get_bytes_per_span()); - if (begin_ptr < end_ptr) { - unprovisioned_bytes = end_ptr - begin_ptr; - discardable_bytes += unprovisioned_bytes; - } - if (unprovisioned_bytes && discard) { - DCHECK(truncated_slots > 0); - size_t num_new_entries = 0; - page->num_unprovisioned_slots += static_cast(truncated_slots); - - // Rewrite the freelist. - internal::PartitionFreelistEntry* head = nullptr; - internal::PartitionFreelistEntry* back = head; - for (size_t slot_index = 0; slot_index < num_slots; ++slot_index) { - if (slot_usage[slot_index]) - continue; - - auto* entry = reinterpret_cast( - ptr + (slot_size * slot_index)); - if (!head) { - head = entry; - back = entry; - } else { - back->next = internal::PartitionFreelistEntry::Encode(entry); - back = entry; - } - num_new_entries++; -#if !defined(OS_WIN) - last_slot = slot_index; -#endif - } - - page->freelist_head = head; - if (back) - back->next = internal::PartitionFreelistEntry::Encode(nullptr); - - DCHECK(num_new_entries == num_slots - page->num_allocated_slots); - // Discard the memory. - DiscardSystemPages(begin_ptr, unprovisioned_bytes); - } - } - - // Next, walk the slots and for any not in use, consider where the system page - // boundaries occur. We can release any system pages back to the system as - // long as we don't interfere with a freelist pointer or an adjacent slot. - for (size_t i = 0; i < num_slots; ++i) { - if (slot_usage[i]) - continue; - // The first address we can safely discard is just after the freelist - // pointer. There's one quirk: if the freelist pointer is actually NULL, we - // can discard that pointer value too. - char* begin_ptr = ptr + (i * slot_size); - char* end_ptr = begin_ptr + slot_size; -#if !defined(OS_WIN) - if (i != last_slot) - begin_ptr += sizeof(internal::PartitionFreelistEntry); -#else - begin_ptr += sizeof(internal::PartitionFreelistEntry); -#endif - begin_ptr = reinterpret_cast( - RoundUpToSystemPage(reinterpret_cast(begin_ptr))); - end_ptr = reinterpret_cast( - RoundDownToSystemPage(reinterpret_cast(end_ptr))); - if (begin_ptr < end_ptr) { - size_t partial_slot_bytes = end_ptr - begin_ptr; - discardable_bytes += partial_slot_bytes; - if (discard) - DiscardSystemPages(begin_ptr, partial_slot_bytes); - } - } - return discardable_bytes; -} - -static void PartitionPurgeBucket(internal::PartitionBucket* bucket) { - if (bucket->active_pages_head != - internal::PartitionPage::get_sentinel_page()) { - for (internal::PartitionPage* page = bucket->active_pages_head; page; - page = page->next_page) { - DCHECK(page != internal::PartitionPage::get_sentinel_page()); - PartitionPurgePage(page, true); - } - } -} - -void PartitionRoot::PurgeMemory(int flags) { - if (flags & PartitionPurgeDecommitEmptyPages) - DecommitEmptyPages(); - // We don't currently do anything for PartitionPurgeDiscardUnusedSystemPages - // here because that flag is only useful for allocations >= system page size. - // We only have allocations that large inside generic partitions at the - // moment. -} - -void PartitionRootGeneric::PurgeMemory(int flags) { - subtle::SpinLock::Guard guard(lock); - if (flags & PartitionPurgeDecommitEmptyPages) - DecommitEmptyPages(); - if (flags & PartitionPurgeDiscardUnusedSystemPages) { - for (size_t i = 0; i < kGenericNumBuckets; ++i) { - internal::PartitionBucket* bucket = &buckets[i]; - if (bucket->slot_size >= kSystemPageSize) - PartitionPurgeBucket(bucket); - } - } -} - -static void PartitionDumpPageStats(PartitionBucketMemoryStats* stats_out, - internal::PartitionPage* page) { - uint16_t bucket_num_slots = page->bucket->get_slots_per_span(); - - if (page->is_decommitted()) { - ++stats_out->num_decommitted_pages; - return; - } - - stats_out->discardable_bytes += PartitionPurgePage(page, false); - - size_t raw_size = page->get_raw_size(); - if (raw_size) { - stats_out->active_bytes += static_cast(raw_size); - } else { - stats_out->active_bytes += - (page->num_allocated_slots * stats_out->bucket_slot_size); - } - - size_t page_bytes_resident = - RoundUpToSystemPage((bucket_num_slots - page->num_unprovisioned_slots) * - stats_out->bucket_slot_size); - stats_out->resident_bytes += page_bytes_resident; - if (page->is_empty()) { - stats_out->decommittable_bytes += page_bytes_resident; - ++stats_out->num_empty_pages; - } else if (page->is_full()) { - ++stats_out->num_full_pages; - } else { - DCHECK(page->is_active()); - ++stats_out->num_active_pages; - } -} - -static void PartitionDumpBucketStats(PartitionBucketMemoryStats* stats_out, - const internal::PartitionBucket* bucket) { - DCHECK(!bucket->is_direct_mapped()); - stats_out->is_valid = false; - // If the active page list is empty (== - // internal::PartitionPage::get_sentinel_page()), the bucket might still need - // to be reported if it has a list of empty, decommitted or full pages. - if (bucket->active_pages_head == - internal::PartitionPage::get_sentinel_page() && - !bucket->empty_pages_head && !bucket->decommitted_pages_head && - !bucket->num_full_pages) - return; - - memset(stats_out, '\0', sizeof(*stats_out)); - stats_out->is_valid = true; - stats_out->is_direct_map = false; - stats_out->num_full_pages = static_cast(bucket->num_full_pages); - stats_out->bucket_slot_size = bucket->slot_size; - uint16_t bucket_num_slots = bucket->get_slots_per_span(); - size_t bucket_useful_storage = stats_out->bucket_slot_size * bucket_num_slots; - stats_out->allocated_page_size = bucket->get_bytes_per_span(); - stats_out->active_bytes = bucket->num_full_pages * bucket_useful_storage; - stats_out->resident_bytes = - bucket->num_full_pages * stats_out->allocated_page_size; - - for (internal::PartitionPage* page = bucket->empty_pages_head; page; - page = page->next_page) { - DCHECK(page->is_empty() || page->is_decommitted()); - PartitionDumpPageStats(stats_out, page); - } - for (internal::PartitionPage* page = bucket->decommitted_pages_head; page; - page = page->next_page) { - DCHECK(page->is_decommitted()); - PartitionDumpPageStats(stats_out, page); - } - - if (bucket->active_pages_head != - internal::PartitionPage::get_sentinel_page()) { - for (internal::PartitionPage* page = bucket->active_pages_head; page; - page = page->next_page) { - DCHECK(page != internal::PartitionPage::get_sentinel_page()); - PartitionDumpPageStats(stats_out, page); - } - } -} - -void PartitionRootGeneric::DumpStats(const char* partition_name, - bool is_light_dump, - PartitionStatsDumper* dumper) { - PartitionMemoryStats stats = {0}; - stats.total_mmapped_bytes = - total_size_of_super_pages + total_size_of_direct_mapped_pages; - stats.total_committed_bytes = total_size_of_committed_pages; - - size_t direct_mapped_allocations_total_size = 0; - - static const size_t kMaxReportableDirectMaps = 4096; - - // Allocate on the heap rather than on the stack to avoid stack overflow - // skirmishes (on Windows, in particular). - std::unique_ptr direct_map_lengths = nullptr; - if (!is_light_dump) { - direct_map_lengths = - std::unique_ptr(new uint32_t[kMaxReportableDirectMaps]); - } - - PartitionBucketMemoryStats bucket_stats[kGenericNumBuckets]; - size_t num_direct_mapped_allocations = 0; - { - subtle::SpinLock::Guard guard(lock); - - for (size_t i = 0; i < kGenericNumBuckets; ++i) { - const internal::PartitionBucket* bucket = &buckets[i]; - // Don't report the pseudo buckets that the generic allocator sets up in - // order to preserve a fast size->bucket map (see - // PartitionRootGeneric::Init() for details). - if (!bucket->active_pages_head) - bucket_stats[i].is_valid = false; - else - PartitionDumpBucketStats(&bucket_stats[i], bucket); - if (bucket_stats[i].is_valid) { - stats.total_resident_bytes += bucket_stats[i].resident_bytes; - stats.total_active_bytes += bucket_stats[i].active_bytes; - stats.total_decommittable_bytes += bucket_stats[i].decommittable_bytes; - stats.total_discardable_bytes += bucket_stats[i].discardable_bytes; - } - } - - for (internal::PartitionDirectMapExtent* extent = direct_map_list; - extent && num_direct_mapped_allocations < kMaxReportableDirectMaps; - extent = extent->next_extent, ++num_direct_mapped_allocations) { - DCHECK(!extent->next_extent || - extent->next_extent->prev_extent == extent); - size_t slot_size = extent->bucket->slot_size; - direct_mapped_allocations_total_size += slot_size; - if (is_light_dump) - continue; - direct_map_lengths[num_direct_mapped_allocations] = slot_size; - } - } - - if (!is_light_dump) { - // Call |PartitionsDumpBucketStats| after collecting stats because it can - // try to allocate using |PartitionRootGeneric::Alloc()| and it can't - // obtain the lock. - for (size_t i = 0; i < kGenericNumBuckets; ++i) { - if (bucket_stats[i].is_valid) - dumper->PartitionsDumpBucketStats(partition_name, &bucket_stats[i]); - } - - for (size_t i = 0; i < num_direct_mapped_allocations; ++i) { - uint32_t size = direct_map_lengths[i]; - - PartitionBucketMemoryStats mapped_stats = {}; - mapped_stats.is_valid = true; - mapped_stats.is_direct_map = true; - mapped_stats.num_full_pages = 1; - mapped_stats.allocated_page_size = size; - mapped_stats.bucket_slot_size = size; - mapped_stats.active_bytes = size; - mapped_stats.resident_bytes = size; - dumper->PartitionsDumpBucketStats(partition_name, &mapped_stats); - } - } - - stats.total_resident_bytes += direct_mapped_allocations_total_size; - stats.total_active_bytes += direct_mapped_allocations_total_size; - dumper->PartitionDumpTotals(partition_name, &stats); -} - -void PartitionRoot::DumpStats(const char* partition_name, - bool is_light_dump, - PartitionStatsDumper* dumper) { - PartitionMemoryStats stats = {0}; - stats.total_mmapped_bytes = total_size_of_super_pages; - stats.total_committed_bytes = total_size_of_committed_pages; - DCHECK(!total_size_of_direct_mapped_pages); - - static constexpr size_t kMaxReportableBuckets = 4096 / sizeof(void*); - std::unique_ptr memory_stats; - if (!is_light_dump) { - memory_stats = std::unique_ptr( - new PartitionBucketMemoryStats[kMaxReportableBuckets]); - } - - const size_t partition_num_buckets = num_buckets; - DCHECK(partition_num_buckets <= kMaxReportableBuckets); - - for (size_t i = 0; i < partition_num_buckets; ++i) { - PartitionBucketMemoryStats bucket_stats = {0}; - PartitionDumpBucketStats(&bucket_stats, &buckets()[i]); - if (bucket_stats.is_valid) { - stats.total_resident_bytes += bucket_stats.resident_bytes; - stats.total_active_bytes += bucket_stats.active_bytes; - stats.total_decommittable_bytes += bucket_stats.decommittable_bytes; - stats.total_discardable_bytes += bucket_stats.discardable_bytes; - } - if (!is_light_dump) { - if (bucket_stats.is_valid) - memory_stats[i] = bucket_stats; - else - memory_stats[i].is_valid = false; - } - } - if (!is_light_dump) { - // PartitionsDumpBucketStats is called after collecting stats because it - // can use PartitionRoot::Alloc() to allocate and this can affect the - // statistics. - for (size_t i = 0; i < partition_num_buckets; ++i) { - if (memory_stats[i].is_valid) - dumper->PartitionsDumpBucketStats(partition_name, &memory_stats[i]); - } - } - dumper->PartitionDumpTotals(partition_name, &stats); -} - -} // namespace base -} // namespace pdfium diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_alloc.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_alloc.h deleted file mode 100644 index 2dc62b655..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_alloc.h +++ /dev/null @@ -1,532 +0,0 @@ -// Copyright (c) 2013 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_ALLOC_H_ -#define THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_ALLOC_H_ - -// DESCRIPTION -// PartitionRoot::Alloc() / PartitionRootGeneric::Alloc() and PartitionFree() / -// PartitionRootGeneric::Free() are approximately analagous to malloc() and -// free(). -// -// The main difference is that a PartitionRoot / PartitionRootGeneric object -// must be supplied to these functions, representing a specific "heap partition" -// that will be used to satisfy the allocation. Different partitions are -// guaranteed to exist in separate address spaces, including being separate from -// the main system heap. If the contained objects are all freed, physical memory -// is returned to the system but the address space remains reserved. -// See PartitionAlloc.md for other security properties PartitionAlloc provides. -// -// THE ONLY LEGITIMATE WAY TO OBTAIN A PartitionRoot IS THROUGH THE -// SizeSpecificPartitionAllocator / PartitionAllocatorGeneric classes. To -// minimize the instruction count to the fullest extent possible, the -// PartitionRoot is really just a header adjacent to other data areas provided -// by the allocator class. -// -// The PartitionRoot::Alloc() variant of the API has the following caveats: -// - Allocations and frees against a single partition must be single threaded. -// - Allocations must not exceed a max size, chosen at compile-time via a -// templated parameter to PartitionAllocator. -// - Allocation sizes must be aligned to the system pointer size. -// - Allocations are bucketed exactly according to size. -// -// And for PartitionRootGeneric::Alloc(): -// - Multi-threaded use against a single partition is ok; locking is handled. -// - Allocations of any arbitrary size can be handled (subject to a limit of -// INT_MAX bytes for security reasons). -// - Bucketing is by approximate size, for example an allocation of 4000 bytes -// might be placed into a 4096-byte bucket. Bucket sizes are chosen to try and -// keep worst-case waste to ~10%. -// -// The allocators are designed to be extremely fast, thanks to the following -// properties and design: -// - Just two single (reasonably predicatable) branches in the hot / fast path -// for both allocating and (significantly) freeing. -// - A minimal number of operations in the hot / fast path, with the slow paths -// in separate functions, leading to the possibility of inlining. -// - Each partition page (which is usually multiple physical pages) has a -// metadata structure which allows fast mapping of free() address to an -// underlying bucket. -// - Supports a lock-free API for fast performance in single-threaded cases. -// - The freelist for a given bucket is split across a number of partition -// pages, enabling various simple tricks to try and minimize fragmentation. -// - Fine-grained bucket sizes leading to less waste and better packing. -// -// The following security properties could be investigated in the future: -// - Per-object bucketing (instead of per-size) is mostly available at the API, -// but not used yet. -// - No randomness of freelist entries or bucket position. -// - Better checking for wild pointers in free(). -// - Better freelist masking function to guarantee fault on 32-bit. - -#include -#include - -#include "build/build_config.h" -#include "third_party/base/allocator/partition_allocator/page_allocator.h" -#include "third_party/base/allocator/partition_allocator/partition_alloc_constants.h" -#include "third_party/base/allocator/partition_allocator/partition_bucket.h" -#include "third_party/base/allocator/partition_allocator/partition_cookie.h" -#include "third_party/base/allocator/partition_allocator/partition_page.h" -#include "third_party/base/allocator/partition_allocator/partition_root_base.h" -#include "third_party/base/allocator/partition_allocator/spin_lock.h" -#include "third_party/base/base_export.h" -#include "third_party/base/bits.h" -#include "third_party/base/compiler_specific.h" -#include "third_party/base/logging.h" -#include "third_party/base/stl_util.h" -#include "third_party/base/sys_byteorder.h" - -#if defined(MEMORY_TOOL_REPLACES_ALLOCATOR) -#include -#endif - -// We use this to make MEMORY_TOOL_REPLACES_ALLOCATOR behave the same for max -// size as other alloc code. -#define CHECK_MAX_SIZE_OR_RETURN_NULLPTR(size, flags) \ - if (size > kGenericMaxDirectMapped) { \ - if (flags & PartitionAllocReturnNull) { \ - return nullptr; \ - } \ - CHECK(false); \ - } - -namespace pdfium { -namespace base { - -class PartitionStatsDumper; - -enum PartitionPurgeFlags { - // Decommitting the ring list of empty pages is reasonably fast. - PartitionPurgeDecommitEmptyPages = 1 << 0, - // Discarding unused system pages is slower, because it involves walking all - // freelists in all active partition pages of all buckets >= system page - // size. It often frees a similar amount of memory to decommitting the empty - // pages, though. - PartitionPurgeDiscardUnusedSystemPages = 1 << 1, -}; - -// Never instantiate a PartitionRoot directly, instead use PartitionAlloc. -struct BASE_EXPORT PartitionRoot : public internal::PartitionRootBase { - PartitionRoot(); - ~PartitionRoot() override; - // This references the buckets OFF the edge of this struct. All uses of - // PartitionRoot must have the bucket array come right after. - // - // The PartitionAlloc templated class ensures the following is correct. - ALWAYS_INLINE internal::PartitionBucket* buckets() { - return reinterpret_cast(this + 1); - } - ALWAYS_INLINE const internal::PartitionBucket* buckets() const { - return reinterpret_cast(this + 1); - } - - void Init(size_t bucket_count, size_t maximum_allocation); - - ALWAYS_INLINE void* Alloc(size_t size, const char* type_name); - ALWAYS_INLINE void* AllocFlags(int flags, size_t size, const char* type_name); - - void PurgeMemory(int flags) override; - - void DumpStats(const char* partition_name, - bool is_light_dump, - PartitionStatsDumper* dumper); -}; - -// Never instantiate a PartitionRootGeneric directly, instead use -// PartitionAllocatorGeneric. -struct BASE_EXPORT PartitionRootGeneric : public internal::PartitionRootBase { - PartitionRootGeneric(); - ~PartitionRootGeneric() override; - subtle::SpinLock lock; - // Some pre-computed constants. - size_t order_index_shifts[kBitsPerSizeT + 1] = {}; - size_t order_sub_index_masks[kBitsPerSizeT + 1] = {}; - // The bucket lookup table lets us map a size_t to a bucket quickly. - // The trailing +1 caters for the overflow case for very large allocation - // sizes. It is one flat array instead of a 2D array because in the 2D - // world, we'd need to index array[blah][max+1] which risks undefined - // behavior. - internal::PartitionBucket* - bucket_lookups[((kBitsPerSizeT + 1) * kGenericNumBucketsPerOrder) + 1] = - {}; - internal::PartitionBucket buckets[kGenericNumBuckets] = {}; - - // Public API. - void Init(); - - ALWAYS_INLINE void* Alloc(size_t size, const char* type_name); - ALWAYS_INLINE void* AllocFlags(int flags, size_t size, const char* type_name); - ALWAYS_INLINE void Free(void* ptr); - - NOINLINE void* Realloc(void* ptr, size_t new_size, const char* type_name); - // Overload that may return nullptr if reallocation isn't possible. In this - // case, |ptr| remains valid. - NOINLINE void* TryRealloc(void* ptr, size_t new_size, const char* type_name); - - ALWAYS_INLINE size_t ActualSize(size_t size); - - void PurgeMemory(int flags) override; - - void DumpStats(const char* partition_name, - bool is_light_dump, - PartitionStatsDumper* partition_stats_dumper); -}; - -// Struct used to retrieve total memory usage of a partition. Used by -// PartitionStatsDumper implementation. -struct PartitionMemoryStats { - size_t total_mmapped_bytes; // Total bytes mmaped from the system. - size_t total_committed_bytes; // Total size of commmitted pages. - size_t total_resident_bytes; // Total bytes provisioned by the partition. - size_t total_active_bytes; // Total active bytes in the partition. - size_t total_decommittable_bytes; // Total bytes that could be decommitted. - size_t total_discardable_bytes; // Total bytes that could be discarded. -}; - -// Struct used to retrieve memory statistics about a partition bucket. Used by -// PartitionStatsDumper implementation. -struct PartitionBucketMemoryStats { - bool is_valid; // Used to check if the stats is valid. - bool is_direct_map; // True if this is a direct mapping; size will not be - // unique. - uint32_t bucket_slot_size; // The size of the slot in bytes. - uint32_t allocated_page_size; // Total size the partition page allocated from - // the system. - uint32_t active_bytes; // Total active bytes used in the bucket. - uint32_t resident_bytes; // Total bytes provisioned in the bucket. - uint32_t decommittable_bytes; // Total bytes that could be decommitted. - uint32_t discardable_bytes; // Total bytes that could be discarded. - uint32_t num_full_pages; // Number of pages with all slots allocated. - uint32_t num_active_pages; // Number of pages that have at least one - // provisioned slot. - uint32_t num_empty_pages; // Number of pages that are empty - // but not decommitted. - uint32_t num_decommitted_pages; // Number of pages that are empty - // and decommitted. -}; - -// Interface that is passed to PartitionDumpStats and -// PartitionDumpStatsGeneric for using the memory statistics. -class BASE_EXPORT PartitionStatsDumper { - public: - // Called to dump total memory used by partition, once per partition. - virtual void PartitionDumpTotals(const char* partition_name, - const PartitionMemoryStats*) = 0; - - // Called to dump stats about buckets, for each bucket. - virtual void PartitionsDumpBucketStats(const char* partition_name, - const PartitionBucketMemoryStats*) = 0; -}; - -BASE_EXPORT void PartitionAllocGlobalInit(OomFunction on_out_of_memory); - -// PartitionAlloc supports setting hooks to observe allocations/frees as they -// occur as well as 'override' hooks that allow overriding those operations. -class BASE_EXPORT PartitionAllocHooks { - public: - // Log allocation and free events. - typedef void AllocationObserverHook(void* address, - size_t size, - const char* type_name); - typedef void FreeObserverHook(void* address); - - // If it returns true, the allocation has been overridden with the pointer in - // *out. - typedef bool AllocationOverrideHook(void** out, - int flags, - size_t size, - const char* type_name); - // If it returns true, then the allocation was overridden and has been freed. - typedef bool FreeOverrideHook(void* address); - // If it returns true, the underlying allocation is overridden and *out holds - // the size of the underlying allocation. - typedef bool ReallocOverrideHook(size_t* out, void* address); - - // To unhook, call Set*Hooks with nullptrs. - static void SetObserverHooks(AllocationObserverHook* alloc_hook, - FreeObserverHook* free_hook); - static void SetOverrideHooks(AllocationOverrideHook* alloc_hook, - FreeOverrideHook* free_hook, - ReallocOverrideHook realloc_hook); - - // Helper method to check whether hooks are enabled. This is an optimization - // so that if a function needs to call observer and override hooks in two - // different places this value can be cached and only loaded once. - static bool AreHooksEnabled() { - return hooks_enabled_.load(std::memory_order_relaxed); - } - - static void AllocationObserverHookIfEnabled(void* address, - size_t size, - const char* type_name); - static bool AllocationOverrideHookIfEnabled(void** out, - int flags, - size_t size, - const char* type_name); - - static void FreeObserverHookIfEnabled(void* address); - static bool FreeOverrideHookIfEnabled(void* address); - - static void ReallocObserverHookIfEnabled(void* old_address, - void* new_address, - size_t size, - const char* type_name); - static bool ReallocOverrideHookIfEnabled(size_t* out, void* address); - - private: - // Single bool that is used to indicate whether observer or allocation hooks - // are set to reduce the numbers of loads required to check whether hooking is - // enabled. - static std::atomic hooks_enabled_; - - // Lock used to synchronize Set*Hooks calls. - static subtle::SpinLock set_hooks_lock_; - - static std::atomic allocation_observer_hook_; - static std::atomic free_observer_hook_; - - static std::atomic allocation_override_hook_; - static std::atomic free_override_hook_; - static std::atomic realloc_override_hook_; -}; - -ALWAYS_INLINE void* PartitionRoot::Alloc(size_t size, const char* type_name) { - return AllocFlags(0, size, type_name); -} - -ALWAYS_INLINE void* PartitionRoot::AllocFlags(int flags, - size_t size, - const char* type_name) { -#if defined(MEMORY_TOOL_REPLACES_ALLOCATOR) - CHECK_MAX_SIZE_OR_RETURN_NULLPTR(size, flags); - void* result = malloc(size); - CHECK(result); - return result; -#else - DCHECK(max_allocation == 0 || size <= max_allocation); - void* result; - const bool hooks_enabled = PartitionAllocHooks::AreHooksEnabled(); - if (UNLIKELY(hooks_enabled)) { - if (PartitionAllocHooks::AllocationOverrideHookIfEnabled(&result, flags, - size, type_name)) { - PartitionAllocHooks::AllocationObserverHookIfEnabled(result, size, - type_name); - return result; - } - } - size_t requested_size = size; - size = internal::PartitionCookieSizeAdjustAdd(size); - DCHECK(initialized); - size_t index = size >> kBucketShift; - DCHECK(index < num_buckets); - DCHECK(size == index << kBucketShift); - internal::PartitionBucket* bucket = &buckets()[index]; - result = AllocFromBucket(bucket, flags, size); - if (UNLIKELY(hooks_enabled)) { - PartitionAllocHooks::AllocationObserverHookIfEnabled(result, requested_size, - type_name); - } - return result; -#endif // defined(MEMORY_TOOL_REPLACES_ALLOCATOR) -} - -ALWAYS_INLINE bool PartitionAllocSupportsGetSize() { -#if defined(MEMORY_TOOL_REPLACES_ALLOCATOR) - return false; -#else - return true; -#endif -} - -ALWAYS_INLINE size_t PartitionAllocGetSize(void* ptr) { - // No need to lock here. Only |ptr| being freed by another thread could - // cause trouble, and the caller is responsible for that not happening. - DCHECK(PartitionAllocSupportsGetSize()); - ptr = internal::PartitionCookieFreePointerAdjust(ptr); - internal::PartitionPage* page = internal::PartitionPage::FromPointer(ptr); - // TODO(palmer): See if we can afford to make this a CHECK. - DCHECK(internal::PartitionRootBase::IsValidPage(page)); - size_t size = page->bucket->slot_size; - return internal::PartitionCookieSizeAdjustSubtract(size); -} - -ALWAYS_INLINE void PartitionFree(void* ptr) { -#if defined(MEMORY_TOOL_REPLACES_ALLOCATOR) - free(ptr); -#else - // TODO(palmer): Check ptr alignment before continuing. Shall we do the check - // inside PartitionCookieFreePointerAdjust? - if (PartitionAllocHooks::AreHooksEnabled()) { - PartitionAllocHooks::FreeObserverHookIfEnabled(ptr); - if (PartitionAllocHooks::FreeOverrideHookIfEnabled(ptr)) - return; - } - - ptr = internal::PartitionCookieFreePointerAdjust(ptr); - internal::PartitionPage* page = internal::PartitionPage::FromPointer(ptr); - // TODO(palmer): See if we can afford to make this a CHECK. - DCHECK(internal::PartitionRootBase::IsValidPage(page)); - internal::DeferredUnmap deferred_unmap = page->Free(ptr); - deferred_unmap.Run(); -#endif -} - -ALWAYS_INLINE internal::PartitionBucket* PartitionGenericSizeToBucket( - PartitionRootGeneric* root, - size_t size) { - size_t order = kBitsPerSizeT - bits::CountLeadingZeroBitsSizeT(size); - // The order index is simply the next few bits after the most significant bit. - size_t order_index = (size >> root->order_index_shifts[order]) & - (kGenericNumBucketsPerOrder - 1); - // And if the remaining bits are non-zero we must bump the bucket up. - size_t sub_order_index = size & root->order_sub_index_masks[order]; - internal::PartitionBucket* bucket = - root->bucket_lookups[(order << kGenericNumBucketsPerOrderBits) + - order_index + !!sub_order_index]; - CHECK(bucket); - DCHECK(!bucket->slot_size || bucket->slot_size >= size); - DCHECK(!(bucket->slot_size % kGenericSmallestBucket)); - return bucket; -} - -ALWAYS_INLINE void* PartitionAllocGenericFlags(PartitionRootGeneric* root, - int flags, - size_t size, - const char* type_name) { - DCHECK(flags < PartitionAllocLastFlag << 1); - -#if defined(MEMORY_TOOL_REPLACES_ALLOCATOR) - CHECK_MAX_SIZE_OR_RETURN_NULLPTR(size, flags); - const bool zero_fill = flags & PartitionAllocZeroFill; - void* result = zero_fill ? calloc(1, size) : malloc(size); - CHECK(result || flags & PartitionAllocReturnNull); - return result; -#else - DCHECK(root->initialized); - // Only SizeSpecificPartitionAllocator should use max_allocation. - DCHECK(root->max_allocation == 0); - void* result; - const bool hooks_enabled = PartitionAllocHooks::AreHooksEnabled(); - if (UNLIKELY(hooks_enabled)) { - if (PartitionAllocHooks::AllocationOverrideHookIfEnabled(&result, flags, - size, type_name)) { - PartitionAllocHooks::AllocationObserverHookIfEnabled(result, size, - type_name); - return result; - } - } - size_t requested_size = size; - size = internal::PartitionCookieSizeAdjustAdd(size); - internal::PartitionBucket* bucket = PartitionGenericSizeToBucket(root, size); - { - subtle::SpinLock::Guard guard(root->lock); - result = root->AllocFromBucket(bucket, flags, size); - } - if (UNLIKELY(hooks_enabled)) { - PartitionAllocHooks::AllocationObserverHookIfEnabled(result, requested_size, - type_name); - } - - return result; -#endif -} - -ALWAYS_INLINE void* PartitionRootGeneric::Alloc(size_t size, - const char* type_name) { - return PartitionAllocGenericFlags(this, 0, size, type_name); -} - -ALWAYS_INLINE void* PartitionRootGeneric::AllocFlags(int flags, - size_t size, - const char* type_name) { - return PartitionAllocGenericFlags(this, flags, size, type_name); -} - -ALWAYS_INLINE void PartitionRootGeneric::Free(void* ptr) { -#if defined(MEMORY_TOOL_REPLACES_ALLOCATOR) - free(ptr); -#else - DCHECK(initialized); - - if (UNLIKELY(!ptr)) - return; - - if (PartitionAllocHooks::AreHooksEnabled()) { - PartitionAllocHooks::FreeObserverHookIfEnabled(ptr); - if (PartitionAllocHooks::FreeOverrideHookIfEnabled(ptr)) - return; - } - - ptr = internal::PartitionCookieFreePointerAdjust(ptr); - internal::PartitionPage* page = internal::PartitionPage::FromPointer(ptr); - // TODO(palmer): See if we can afford to make this a CHECK. - DCHECK(IsValidPage(page)); - internal::DeferredUnmap deferred_unmap; - { - subtle::SpinLock::Guard guard(lock); - deferred_unmap = page->Free(ptr); - } - deferred_unmap.Run(); -#endif -} - -BASE_EXPORT void* PartitionReallocGenericFlags(PartitionRootGeneric* root, - int flags, - void* ptr, - size_t new_size, - const char* type_name); - -ALWAYS_INLINE size_t PartitionRootGeneric::ActualSize(size_t size) { -#if defined(MEMORY_TOOL_REPLACES_ALLOCATOR) - return size; -#else - DCHECK(initialized); - size = internal::PartitionCookieSizeAdjustAdd(size); - internal::PartitionBucket* bucket = PartitionGenericSizeToBucket(this, size); - if (LIKELY(!bucket->is_direct_mapped())) { - size = bucket->slot_size; - } else if (size > kGenericMaxDirectMapped) { - // Too large to allocate => return the size unchanged. - } else { - size = internal::PartitionBucket::get_direct_map_size(size); - } - return internal::PartitionCookieSizeAdjustSubtract(size); -#endif -} - -template -class SizeSpecificPartitionAllocator { - public: - SizeSpecificPartitionAllocator() { - memset(actual_buckets_, 0, - sizeof(internal::PartitionBucket) * pdfium::size(actual_buckets_)); - } - ~SizeSpecificPartitionAllocator() = default; - static const size_t kMaxAllocation = N - kAllocationGranularity; - static const size_t kNumBuckets = N / kAllocationGranularity; - void init() { partition_root_.Init(kNumBuckets, kMaxAllocation); } - ALWAYS_INLINE PartitionRoot* root() { return &partition_root_; } - - private: - PartitionRoot partition_root_; - internal::PartitionBucket actual_buckets_[kNumBuckets]; -}; - -class BASE_EXPORT PartitionAllocatorGeneric { - public: - PartitionAllocatorGeneric(); - ~PartitionAllocatorGeneric(); - - void init() { partition_root_.Init(); } - ALWAYS_INLINE PartitionRootGeneric* root() { return &partition_root_; } - - private: - PartitionRootGeneric partition_root_; -}; - -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_ALLOC_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_alloc_constants.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_alloc_constants.h deleted file mode 100644 index da9fb66a6..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_alloc_constants.h +++ /dev/null @@ -1,200 +0,0 @@ -// Copyright (c) 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_ALLOC_CONSTANTS_H_ -#define THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_ALLOC_CONSTANTS_H_ - -#include -#include - -#include "build/build_config.h" -#include "third_party/base/allocator/partition_allocator/page_allocator_constants.h" -#include "third_party/base/logging.h" - -namespace pdfium { -namespace base { - -// Allocation granularity of sizeof(void*) bytes. -static const size_t kAllocationGranularity = sizeof(void *); -static const size_t kAllocationGranularityMask = kAllocationGranularity - 1; -static const size_t kBucketShift = (kAllocationGranularity == 8) ? 3 : 2; - -// Underlying partition storage pages (`PartitionPage`s) are a power-of-2 size. -// It is typical for a `PartitionPage` to be based on multiple system pages. -// Most references to "page" refer to `PartitionPage`s. -// -// *Super pages* are the underlying system allocations we make. Super pages -// contain multiple partition pages and include space for a small amount of -// metadata per partition page. -// -// Inside super pages, we store *slot spans*. A slot span is a continguous range -// of one or more `PartitionPage`s that stores allocations of the same size. -// Slot span sizes are adjusted depending on the allocation size, to make sure -// the packing does not lead to unused (wasted) space at the end of the last -// system page of the span. For our current maximum slot span size of 64 KiB and -// other constant values, we pack _all_ `PartitionRootGeneric::Alloc` sizes -// perfectly up against the end of a system page. - -#if defined(_MIPS_ARCH_LOONGSON) || defined(ARCH_CPU_LOONGARCH64) -static const size_t kPartitionPageShift = 16; // 64 KiB -#elif defined(ARCH_CPU_PPC64) -static const size_t kPartitionPageShift = 18; // 256 KiB -#elif defined(ARCH_CPU_SW64) -static const size_t kPartitionPageShift = 15; // 32 KiB -#elif defined(OS_APPLE) && defined(ARCH_CPU_ARM64) -static const size_t kPartitionPageShift = 16; // 64 KiB -#else -//default page size changed to 64k -//static const size_t kPartitionPageShift = 18; // 256 KiB -#if defined(SYSTEMPAGESIZE) -static const size_t kPartitionPageShift = log2(SYSTEMPAGESIZE) + 2; -#else -static const size_t kPartitionPageShift = 14; // 16 KiB -#endif -#endif -static const size_t kPartitionPageSize = 1 << kPartitionPageShift; -static const size_t kPartitionPageOffsetMask = kPartitionPageSize - 1; -static const size_t kPartitionPageBaseMask = ~kPartitionPageOffsetMask; -// TODO: Should this be 1 if defined(_MIPS_ARCH_LOONGSON)? -static const size_t kMaxPartitionPagesPerSlotSpan = 4; - -// To avoid fragmentation via never-used freelist entries, we hand out partition -// freelist sections gradually, in units of the dominant system page size. What -// we're actually doing is avoiding filling the full `PartitionPage` (16 KiB) -// with freelist pointers right away. Writing freelist pointers will fault and -// dirty a private page, which is very wasteful if we never actually store -// objects there. - -static const size_t kNumSystemPagesPerPartitionPage = - kPartitionPageSize / kSystemPageSize; -static const size_t kMaxSystemPagesPerSlotSpan = - kNumSystemPagesPerPartitionPage * kMaxPartitionPagesPerSlotSpan; - -// We reserve virtual address space in 2 MiB chunks (aligned to 2 MiB as well). -// These chunks are called *super pages*. We do this so that we can store -// metadata in the first few pages of each 2 MiB-aligned section. This makes -// freeing memory very fast. We specifically choose 2 MiB because this virtual -// address block represents a full but single PTE allocation on ARM, ia32 and -// x64. -// -// The layout of the super page is as follows. The sizes below are the same for -// 32- and 64-bit platforms. -// -// +-----------------------+ -// | Guard page (4 KiB) | -// | Metadata page (4 KiB) | -// | Guard pages (8 KiB) | -// | Slot span | -// | Slot span | -// | ... | -// | Slot span | -// | Guard page (4 KiB) | -// +-----------------------+ -// -// Each slot span is a contiguous range of one or more `PartitionPage`s. -// -// The metadata page has the following format. Note that the `PartitionPage` -// that is not at the head of a slot span is "unused". In other words, the -// metadata for the slot span is stored only in the first `PartitionPage` of the -// slot span. Metadata accesses to other `PartitionPage`s are redirected to the -// first `PartitionPage`. -// -// +---------------------------------------------+ -// | SuperPageExtentEntry (32 B) | -// | PartitionPage of slot span 1 (32 B, used) | -// | PartitionPage of slot span 1 (32 B, unused) | -// | PartitionPage of slot span 1 (32 B, unused) | -// | PartitionPage of slot span 2 (32 B, used) | -// | PartitionPage of slot span 3 (32 B, used) | -// | ... | -// | PartitionPage of slot span N (32 B, unused) | -// +---------------------------------------------+ -// -// A direct-mapped page has a similar layout to fake it looking like a super -// page: -// -// +-----------------------+ -// | Guard page (4 KiB) | -// | Metadata page (4 KiB) | -// | Guard pages (8 KiB) | -// | Direct mapped object | -// | Guard page (4 KiB) | -// +-----------------------+ -// -// A direct-mapped page's metadata page has the following layout: -// -// +--------------------------------+ -// | SuperPageExtentEntry (32 B) | -// | PartitionPage (32 B) | -// | PartitionBucket (32 B) | -// | PartitionDirectMapExtent (8 B) | -// +--------------------------------+ - -static const size_t kSuperPageShift = 21; // 2 MiB -static const size_t kSuperPageSize = 1 << kSuperPageShift; -static const size_t kSuperPageOffsetMask = kSuperPageSize - 1; -static const size_t kSuperPageBaseMask = ~kSuperPageOffsetMask; -static const size_t kNumPartitionPagesPerSuperPage = - kSuperPageSize / kPartitionPageSize; - -// The following kGeneric* constants apply to the generic variants of the API. -// The "order" of an allocation is closely related to the power-of-1 size of the -// allocation. More precisely, the order is the bit index of the -// most-significant-bit in the allocation size, where the bit numbers starts at -// index 1 for the least-significant-bit. -// -// In terms of allocation sizes, order 0 covers 0, order 1 covers 1, order 2 -// covers 2->3, order 3 covers 4->7, order 4 covers 8->15. - -static const size_t kGenericMinBucketedOrder = 4; // 8 bytes. -// The largest bucketed order is 1 << (20 - 1), storing [512 KiB, 1 MiB): -static const size_t kGenericMaxBucketedOrder = 20; -static const size_t kGenericNumBucketedOrders = - (kGenericMaxBucketedOrder - kGenericMinBucketedOrder) + 1; -// Eight buckets per order (for the higher orders), e.g. order 8 is 128, 144, -// 160, ..., 240: -static const size_t kGenericNumBucketsPerOrderBits = 3; -static const size_t kGenericNumBucketsPerOrder = - 1 << kGenericNumBucketsPerOrderBits; -static const size_t kGenericNumBuckets = - kGenericNumBucketedOrders * kGenericNumBucketsPerOrder; -static const size_t kGenericSmallestBucket = 1 - << (kGenericMinBucketedOrder - 1); -static const size_t kGenericMaxBucketSpacing = - 1 << ((kGenericMaxBucketedOrder - 1) - kGenericNumBucketsPerOrderBits); -static const size_t kGenericMaxBucketed = - (1 << (kGenericMaxBucketedOrder - 1)) + - ((kGenericNumBucketsPerOrder - 1) * kGenericMaxBucketSpacing); -// Limit when downsizing a direct mapping using `realloc`: -static const size_t kGenericMinDirectMappedDownsize = kGenericMaxBucketed + 1; -static const size_t kGenericMaxDirectMapped = - (1UL << 31) + kPageAllocationGranularity; // 2 GiB plus 1 more page. -static const size_t kBitsPerSizeT = sizeof(void *) *CHAR_BIT; - -// Constant for the memory reclaim logic. -static const size_t kMaxFreeableSpans = 16; - -// If the total size in bytes of allocated but not committed pages exceeds this -// value (probably it is a "out of virtual address space" crash), a special -// crash stack trace is generated at -// `PartitionOutOfMemoryWithLotsOfUncommitedPages`. This is to distinguish "out -// of virtual address space" from "out of physical memory" in crash reports. -static const size_t kReasonableSizeOfUnusedPages = 1024 * 1024 * 1024; // 1 GiB - -// These byte values match tcmalloc. -static const unsigned char kUninitializedByte = 0xAB; -static const unsigned char kFreedByte = 0xCD; - -// Flags for `PartitionAllocGenericFlags`. -enum PartitionAllocFlags { - PartitionAllocReturnNull = 1 << 0, - PartitionAllocZeroFill = 1 << 1, - - PartitionAllocLastFlag = PartitionAllocZeroFill -}; - -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_ALLOC_CONSTANTS_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_bucket.cc b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_bucket.cc deleted file mode 100644 index 066f40ca8..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_bucket.cc +++ /dev/null @@ -1,566 +0,0 @@ -// Copyright (c) 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "third_party/base/allocator/partition_allocator/partition_bucket.h" - -#include "build/build_config.h" -#include "third_party/base/allocator/partition_allocator/oom.h" -#include "third_party/base/allocator/partition_allocator/page_allocator.h" -#include "third_party/base/allocator/partition_allocator/partition_alloc_constants.h" -#include "third_party/base/allocator/partition_allocator/partition_direct_map_extent.h" -#include "third_party/base/allocator/partition_allocator/partition_oom.h" -#include "third_party/base/allocator/partition_allocator/partition_page.h" -#include "third_party/base/allocator/partition_allocator/partition_root_base.h" - -namespace pdfium { -namespace base { -namespace internal { - -namespace { - -ALWAYS_INLINE PartitionPage* PartitionDirectMap(PartitionRootBase* root, - int flags, - size_t raw_size) { - size_t size = PartitionBucket::get_direct_map_size(raw_size); - - // Because we need to fake looking like a super page, we need to allocate - // a bunch of system pages more than "size": - // - The first few system pages are the partition page in which the super - // page metadata is stored. We fault just one system page out of a partition - // page sized clump. - // - We add a trailing guard page on 32-bit (on 64-bit we rely on the - // massive address space plus randomization instead). - size_t map_size = size + kPartitionPageSize; -#if !defined(ARCH_CPU_64_BITS) - map_size += kSystemPageSize; -#endif - // Round up to the allocation granularity. - map_size += kPageAllocationGranularityOffsetMask; - map_size &= kPageAllocationGranularityBaseMask; - - char* ptr = reinterpret_cast(AllocPages(nullptr, map_size, - kSuperPageSize, PageReadWrite, - PageTag::kPartitionAlloc)); - if (UNLIKELY(!ptr)) - return nullptr; - - size_t committed_page_size = size + kSystemPageSize; - root->total_size_of_direct_mapped_pages += committed_page_size; - root->IncreaseCommittedPages(committed_page_size); - - char* slot = ptr + kPartitionPageSize; - SetSystemPagesAccess(ptr + (kSystemPageSize * 2), - kPartitionPageSize - (kSystemPageSize * 2), - PageInaccessible); -#if !defined(ARCH_CPU_64_BITS) - SetSystemPagesAccess(ptr, kSystemPageSize, PageInaccessible); - SetSystemPagesAccess(slot + size, kSystemPageSize, PageInaccessible); -#endif - - PartitionSuperPageExtentEntry* extent = - reinterpret_cast( - PartitionSuperPageToMetadataArea(ptr)); - extent->root = root; - // The new structures are all located inside a fresh system page so they - // will all be zeroed out. These DCHECKs are for documentation. - DCHECK(!extent->super_page_base); - DCHECK(!extent->super_pages_end); - DCHECK(!extent->next); - PartitionPage* page = PartitionPage::FromPointerNoAlignmentCheck(slot); - PartitionBucket* bucket = reinterpret_cast( - reinterpret_cast(page) + (kPageMetadataSize * 2)); - DCHECK(!page->next_page); - DCHECK(!page->num_allocated_slots); - DCHECK(!page->num_unprovisioned_slots); - DCHECK(!page->page_offset); - DCHECK(!page->empty_cache_index); - page->bucket = bucket; - page->freelist_head = reinterpret_cast(slot); - PartitionFreelistEntry* next_entry = - reinterpret_cast(slot); - next_entry->next = PartitionFreelistEntry::Encode(nullptr); - - DCHECK(!bucket->active_pages_head); - DCHECK(!bucket->empty_pages_head); - DCHECK(!bucket->decommitted_pages_head); - DCHECK(!bucket->num_system_pages_per_slot_span); - DCHECK(!bucket->num_full_pages); - bucket->slot_size = size; - - PartitionDirectMapExtent* map_extent = - PartitionDirectMapExtent::FromPage(page); - map_extent->map_size = map_size - kPartitionPageSize - kSystemPageSize; - map_extent->bucket = bucket; - - // Maintain the doubly-linked list of all direct mappings. - map_extent->next_extent = root->direct_map_list; - if (map_extent->next_extent) - map_extent->next_extent->prev_extent = map_extent; - map_extent->prev_extent = nullptr; - root->direct_map_list = map_extent; - - return page; -} - -} // namespace - -// static -PartitionBucket PartitionBucket::sentinel_bucket_; - -PartitionBucket* PartitionBucket::get_sentinel_bucket() { - return &sentinel_bucket_; -} - -// TODO(ajwong): This seems to interact badly with -// get_pages_per_slot_span() which rounds the value from this up to a -// multiple of kNumSystemPagesPerPartitionPage (aka 4) anyways. -// http://crbug.com/776537 -// -// TODO(ajwong): The waste calculation seems wrong. The PTE usage should cover -// both used and unsed pages. -// http://crbug.com/776537 -uint8_t PartitionBucket::get_system_pages_per_slot_span() { - // This works out reasonably for the current bucket sizes of the generic - // allocator, and the current values of partition page size and constants. - // Specifically, we have enough room to always pack the slots perfectly into - // some number of system pages. The only waste is the waste associated with - // unfaulted pages (i.e. wasted address space). - // TODO: we end up using a lot of system pages for very small sizes. For - // example, we'll use 12 system pages for slot size 24. The slot size is - // so small that the waste would be tiny with just 4, or 1, system pages. - // Later, we can investigate whether there are anti-fragmentation benefits - // to using fewer system pages. - double best_waste_ratio = 1.0f; - uint16_t best_pages = 0; - if (slot_size > kMaxSystemPagesPerSlotSpan * kSystemPageSize) { - // TODO(ajwong): Why is there a DCHECK here for this? - // http://crbug.com/776537 - DCHECK(!(slot_size % kSystemPageSize)); - best_pages = static_cast(slot_size / kSystemPageSize); - // TODO(ajwong): Should this be checking against - // kMaxSystemPagesPerSlotSpan or numeric_limits::max? - // http://crbug.com/776537 - CHECK(best_pages < (1 << 8)); - return static_cast(best_pages); - } - DCHECK(slot_size <= kMaxSystemPagesPerSlotSpan * kSystemPageSize); - for (uint16_t i = kNumSystemPagesPerPartitionPage - 1; - i <= kMaxSystemPagesPerSlotSpan; ++i) { - size_t page_size = kSystemPageSize * i; - size_t num_slots = page_size / slot_size; - size_t waste = page_size - (num_slots * slot_size); - // Leaving a page unfaulted is not free; the page will occupy an empty page - // table entry. Make a simple attempt to account for that. - // - // TODO(ajwong): This looks wrong. PTEs are allocated for all pages - // regardless of whether or not they are wasted. Should it just - // be waste += i * sizeof(void*)? - // http://crbug.com/776537 - size_t num_remainder_pages = i & (kNumSystemPagesPerPartitionPage - 1); - size_t num_unfaulted_pages = - num_remainder_pages - ? (kNumSystemPagesPerPartitionPage - num_remainder_pages) - : 0; - waste += sizeof(void*) * num_unfaulted_pages; - double waste_ratio = - static_cast(waste) / static_cast(page_size); - if (waste_ratio < best_waste_ratio) { - best_waste_ratio = waste_ratio; - best_pages = i; - } - } - DCHECK(best_pages > 0); - CHECK(best_pages <= kMaxSystemPagesPerSlotSpan); - return static_cast(best_pages); -} - -void PartitionBucket::Init(uint32_t new_slot_size) { - slot_size = new_slot_size; - active_pages_head = PartitionPage::get_sentinel_page(); - empty_pages_head = nullptr; - decommitted_pages_head = nullptr; - num_full_pages = 0; - num_system_pages_per_slot_span = get_system_pages_per_slot_span(); -} - -NOINLINE void PartitionBucket::OnFull() { - OOM_CRASH(0); -} - -ALWAYS_INLINE void* PartitionBucket::AllocNewSlotSpan( - PartitionRootBase* root, - int flags, - uint16_t num_partition_pages) { - DCHECK(!(reinterpret_cast(root->next_partition_page) % - kPartitionPageSize)); - DCHECK(!(reinterpret_cast(root->next_partition_page_end) % - kPartitionPageSize)); - DCHECK(num_partition_pages <= kNumPartitionPagesPerSuperPage); - size_t total_size = kPartitionPageSize * num_partition_pages; - size_t num_partition_pages_left = - (root->next_partition_page_end - root->next_partition_page) >> - kPartitionPageShift; - if (LIKELY(num_partition_pages_left >= num_partition_pages)) { - // In this case, we can still hand out pages from the current super page - // allocation. - char* ret = root->next_partition_page; - - // Fresh System Pages in the SuperPages are decommited. Commit them - // before vending them back. - SetSystemPagesAccess(ret, total_size, PageReadWrite); - - root->next_partition_page += total_size; - root->IncreaseCommittedPages(total_size); - return ret; - } - - // Need a new super page. We want to allocate super pages in a continguous - // address region as much as possible. This is important for not causing - // page table bloat and not fragmenting address spaces in 32 bit - // architectures. - char* requested_address = root->next_super_page; - char* super_page = reinterpret_cast( - AllocPages(requested_address, kSuperPageSize, kSuperPageSize, - PageReadWrite, PageTag::kPartitionAlloc)); - if (UNLIKELY(!super_page)) - return nullptr; - - root->total_size_of_super_pages += kSuperPageSize; - root->IncreaseCommittedPages(total_size); - - // |total_size| MUST be less than kSuperPageSize - (kPartitionPageSize*2). - // This is a trustworthy value because num_partition_pages is not user - // controlled. - // - // TODO(ajwong): Introduce a DCHECK. - root->next_super_page = super_page + kSuperPageSize; - char* ret = super_page + kPartitionPageSize; - root->next_partition_page = ret + total_size; - root->next_partition_page_end = root->next_super_page - kPartitionPageSize; - // Make the first partition page in the super page a guard page, but leave a - // hole in the middle. - // This is where we put page metadata and also a tiny amount of extent - // metadata. - SetSystemPagesAccess(super_page, kSystemPageSize, PageInaccessible); - SetSystemPagesAccess(super_page + (kSystemPageSize * 2), - kPartitionPageSize - (kSystemPageSize * 2), - PageInaccessible); - // SetSystemPagesAccess(super_page + (kSuperPageSize - - // kPartitionPageSize), - // kPartitionPageSize, PageInaccessible); - // All remaining slotspans for the unallocated PartitionPages inside the - // SuperPage are conceptually decommitted. Correctly set the state here - // so they do not occupy resources. - // - // TODO(ajwong): Refactor Page Allocator API so the SuperPage comes in - // decommited initially. - SetSystemPagesAccess(super_page + kPartitionPageSize + total_size, - (kSuperPageSize - kPartitionPageSize - total_size), - PageInaccessible); - - // If we were after a specific address, but didn't get it, assume that - // the system chose a lousy address. Here most OS'es have a default - // algorithm that isn't randomized. For example, most Linux - // distributions will allocate the mapping directly before the last - // successful mapping, which is far from random. So we just get fresh - // randomness for the next mapping attempt. - if (requested_address && requested_address != super_page) - root->next_super_page = nullptr; - - // We allocated a new super page so update super page metadata. - // First check if this is a new extent or not. - PartitionSuperPageExtentEntry* latest_extent = - reinterpret_cast( - PartitionSuperPageToMetadataArea(super_page)); - // By storing the root in every extent metadata object, we have a fast way - // to go from a pointer within the partition to the root object. - latest_extent->root = root; - // Most new extents will be part of a larger extent, and these three fields - // are unused, but we initialize them to 0 so that we get a clear signal - // in case they are accidentally used. - latest_extent->super_page_base = nullptr; - latest_extent->super_pages_end = nullptr; - latest_extent->next = nullptr; - - PartitionSuperPageExtentEntry* current_extent = root->current_extent; - bool is_new_extent = (super_page != requested_address); - if (UNLIKELY(is_new_extent)) { - if (UNLIKELY(!current_extent)) { - DCHECK(!root->first_extent); - root->first_extent = latest_extent; - } else { - DCHECK(current_extent->super_page_base); - current_extent->next = latest_extent; - } - root->current_extent = latest_extent; - latest_extent->super_page_base = super_page; - latest_extent->super_pages_end = super_page + kSuperPageSize; - } else { - // We allocated next to an existing extent so just nudge the size up a - // little. - DCHECK(current_extent->super_pages_end); - current_extent->super_pages_end += kSuperPageSize; - DCHECK(ret >= current_extent->super_page_base && - ret < current_extent->super_pages_end); - } - return ret; -} - -ALWAYS_INLINE uint16_t PartitionBucket::get_pages_per_slot_span() { - // Rounds up to nearest multiple of kNumSystemPagesPerPartitionPage. - return (num_system_pages_per_slot_span + - (kNumSystemPagesPerPartitionPage - 1)) / - kNumSystemPagesPerPartitionPage; -} - -ALWAYS_INLINE void PartitionBucket::InitializeSlotSpan(PartitionPage* page) { - // The bucket never changes. We set it up once. - page->bucket = this; - page->empty_cache_index = -1; - - page->Reset(); - - // If this page has just a single slot, do not set up page offsets for any - // page metadata other than the first one. This ensures that attempts to - // touch invalid page metadata fail. - if (page->num_unprovisioned_slots == 1) - return; - - uint16_t num_partition_pages = get_pages_per_slot_span(); - char* page_char_ptr = reinterpret_cast(page); - for (uint16_t i = 1; i < num_partition_pages; ++i) { - page_char_ptr += kPageMetadataSize; - PartitionPage* secondary_page = - reinterpret_cast(page_char_ptr); - secondary_page->page_offset = i; - } -} - -ALWAYS_INLINE char* PartitionBucket::AllocAndFillFreelist(PartitionPage* page) { - DCHECK(page != PartitionPage::get_sentinel_page()); - uint16_t num_slots = page->num_unprovisioned_slots; - DCHECK(num_slots); - // We should only get here when _every_ slot is either used or unprovisioned. - // (The third state is "on the freelist". If we have a non-empty freelist, we - // should not get here.) - DCHECK(num_slots + page->num_allocated_slots == get_slots_per_span()); - // Similarly, make explicitly sure that the freelist is empty. - DCHECK(!page->freelist_head); - DCHECK(page->num_allocated_slots >= 0); - - size_t size = slot_size; - char* base = reinterpret_cast(PartitionPage::ToPointer(page)); - char* return_object = base + (size * page->num_allocated_slots); - char* first_freelist_pointer = return_object + size; - char* first_freelist_pointer_extent = - first_freelist_pointer + sizeof(PartitionFreelistEntry*); - // Our goal is to fault as few system pages as possible. We calculate the - // page containing the "end" of the returned slot, and then allow freelist - // pointers to be written up to the end of that page. - char* sub_page_limit = reinterpret_cast( - RoundUpToSystemPage(reinterpret_cast(first_freelist_pointer))); - char* slots_limit = return_object + (size * num_slots); - char* freelist_limit = sub_page_limit; - if (UNLIKELY(slots_limit < freelist_limit)) - freelist_limit = slots_limit; - - uint16_t num_new_freelist_entries = 0; - if (LIKELY(first_freelist_pointer_extent <= freelist_limit)) { - // Only consider used space in the slot span. If we consider wasted - // space, we may get an off-by-one when a freelist pointer fits in the - // wasted space, but a slot does not. - // We know we can fit at least one freelist pointer. - num_new_freelist_entries = 1; - // Any further entries require space for the whole slot span. - num_new_freelist_entries += static_cast( - (freelist_limit - first_freelist_pointer_extent) / size); - } - - // We always return an object slot -- that's the +1 below. - // We do not neccessarily create any new freelist entries, because we cross - // sub page boundaries frequently for large bucket sizes. - DCHECK(num_new_freelist_entries + 1 <= num_slots); - num_slots -= (num_new_freelist_entries + 1); - page->num_unprovisioned_slots = num_slots; - page->num_allocated_slots++; - - if (LIKELY(num_new_freelist_entries)) { - char* freelist_pointer = first_freelist_pointer; - PartitionFreelistEntry* entry = - reinterpret_cast(freelist_pointer); - page->freelist_head = entry; - while (--num_new_freelist_entries) { - freelist_pointer += size; - PartitionFreelistEntry* next_entry = - reinterpret_cast(freelist_pointer); - entry->next = PartitionFreelistEntry::Encode(next_entry); - entry = next_entry; - } - entry->next = PartitionFreelistEntry::Encode(nullptr); - } else { - page->freelist_head = nullptr; - } - return return_object; -} - -bool PartitionBucket::SetNewActivePage() { - PartitionPage* page = active_pages_head; - if (page == PartitionPage::get_sentinel_page()) - return false; - - PartitionPage* next_page; - - for (; page; page = next_page) { - next_page = page->next_page; - DCHECK(page->bucket == this); - DCHECK(page != empty_pages_head); - DCHECK(page != decommitted_pages_head); - - if (LIKELY(page->is_active())) { - // This page is usable because it has freelist entries, or has - // unprovisioned slots we can create freelist entries from. - active_pages_head = page; - return true; - } - - // Deal with empty and decommitted pages. - if (LIKELY(page->is_empty())) { - page->next_page = empty_pages_head; - empty_pages_head = page; - } else if (LIKELY(page->is_decommitted())) { - page->next_page = decommitted_pages_head; - decommitted_pages_head = page; - } else { - DCHECK(page->is_full()); - // If we get here, we found a full page. Skip over it too, and also - // tag it as full (via a negative value). We need it tagged so that - // free'ing can tell, and move it back into the active page list. - page->num_allocated_slots = -page->num_allocated_slots; - ++num_full_pages; - // num_full_pages is a uint16_t for efficient packing so guard against - // overflow to be safe. - if (UNLIKELY(!num_full_pages)) - OnFull(); - // Not necessary but might help stop accidents. - page->next_page = nullptr; - } - } - - active_pages_head = PartitionPage::get_sentinel_page(); - return false; -} - -void* PartitionBucket::SlowPathAlloc(PartitionRootBase* root, - int flags, - size_t size, - bool* is_already_zeroed) { - // The slow path is called when the freelist is empty. - DCHECK(!active_pages_head->freelist_head); - - PartitionPage* new_page = nullptr; - *is_already_zeroed = false; - - // For the PartitionRootGeneric::Alloc() API, we have a bunch of buckets - // marked as special cases. We bounce them through to the slow path so that - // we can still have a blazing fast hot path due to lack of corner-case - // branches. - // - // Note: The ordering of the conditionals matter! In particular, - // SetNewActivePage() has a side-effect even when returning - // false where it sweeps the active page list and may move things into - // the empty or decommitted lists which affects the subsequent conditional. - bool return_null = flags & PartitionAllocReturnNull; - if (UNLIKELY(is_direct_mapped())) { - DCHECK(size > kGenericMaxBucketed); - DCHECK(this == get_sentinel_bucket()); - DCHECK(active_pages_head == PartitionPage::get_sentinel_page()); - if (size > kGenericMaxDirectMapped) { - if (return_null) - return nullptr; - PartitionExcessiveAllocationSize(size); - } - new_page = PartitionDirectMap(root, flags, size); - *is_already_zeroed = true; - } else if (LIKELY(SetNewActivePage())) { - // First, did we find an active page in the active pages list? - new_page = active_pages_head; - DCHECK(new_page->is_active()); - } else if (LIKELY(empty_pages_head != nullptr) || - LIKELY(decommitted_pages_head != nullptr)) { - // Second, look in our lists of empty and decommitted pages. - // Check empty pages first, which are preferred, but beware that an - // empty page might have been decommitted. - while (LIKELY((new_page = empty_pages_head) != nullptr)) { - DCHECK(new_page->bucket == this); - DCHECK(new_page->is_empty() || new_page->is_decommitted()); - empty_pages_head = new_page->next_page; - // Accept the empty page unless it got decommitted. - if (new_page->freelist_head) { - new_page->next_page = nullptr; - break; - } - DCHECK(new_page->is_decommitted()); - new_page->next_page = decommitted_pages_head; - decommitted_pages_head = new_page; - } - if (UNLIKELY(!new_page) && LIKELY(decommitted_pages_head != nullptr)) { - new_page = decommitted_pages_head; - DCHECK(new_page->bucket == this); - DCHECK(new_page->is_decommitted()); - decommitted_pages_head = new_page->next_page; - void* addr = PartitionPage::ToPointer(new_page); - root->RecommitSystemPages(addr, new_page->bucket->get_bytes_per_span()); - new_page->Reset(); - // TODO(https://crbug.com/890752): Optimizing here might cause pages to - // not be zeroed. - // *is_already_zeroed = true; - } - DCHECK(new_page); - } else { - // Third. If we get here, we need a brand new page. - uint16_t num_partition_pages = get_pages_per_slot_span(); - void* raw_pages = AllocNewSlotSpan(root, flags, num_partition_pages); - if (LIKELY(raw_pages != nullptr)) { - new_page = PartitionPage::FromPointerNoAlignmentCheck(raw_pages); - InitializeSlotSpan(new_page); - // TODO(https://crbug.com/890752): Optimizing here causes pages to not be - // zeroed on at least macOS. - // *is_already_zeroed = true; - } - } - - // Bail if we had a memory allocation failure. - if (UNLIKELY(!new_page)) { - DCHECK(active_pages_head == PartitionPage::get_sentinel_page()); - if (return_null) - return nullptr; - root->OutOfMemory(size); - } - - // TODO(ajwong): Is there a way to avoid the reading of bucket here? - // It seems like in many of the conditional branches above, |this| == - // |new_page->bucket|. Maybe pull this into another function? - PartitionBucket* bucket = new_page->bucket; - DCHECK(bucket != get_sentinel_bucket()); - bucket->active_pages_head = new_page; - new_page->set_raw_size(size); - - // If we found an active page with free slots, or an empty page, we have a - // usable freelist head. - if (LIKELY(new_page->freelist_head != nullptr)) { - PartitionFreelistEntry* entry = new_page->freelist_head; - PartitionFreelistEntry* new_head = - EncodedPartitionFreelistEntry::Decode(entry->next); - new_page->freelist_head = new_head; - new_page->num_allocated_slots++; - return entry; - } - // Otherwise, we need to build the freelist. - DCHECK(new_page->num_unprovisioned_slots); - return AllocAndFillFreelist(new_page); -} - -} // namespace internal -} // namespace base -} // namespace pdfium diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_bucket.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_bucket.h deleted file mode 100644 index a89099b8e..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_bucket.h +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_BUCKET_H_ -#define THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_BUCKET_H_ - -#include -#include - -#include "third_party/base/allocator/partition_allocator/partition_alloc_constants.h" -#include "third_party/base/base_export.h" -#include "third_party/base/compiler_specific.h" - -namespace pdfium { -namespace base { -namespace internal { - -struct PartitionPage; -struct PartitionRootBase; - -struct PartitionBucket { - // Accessed most in hot path => goes first. - PartitionPage* active_pages_head; - - PartitionPage* empty_pages_head; - PartitionPage* decommitted_pages_head; - uint32_t slot_size; - uint32_t num_system_pages_per_slot_span : 8; - uint32_t num_full_pages : 24; - - // Public API. - void Init(uint32_t new_slot_size); - - // Sets |is_already_zeroed| to true if the allocation was satisfied by - // requesting (a) new page(s) from the operating system, or false otherwise. - // This enables an optimization for when callers use |PartitionAllocZeroFill|: - // there is no need to call memset on fresh pages; the OS has already zeroed - // them. (See |PartitionRootBase::AllocFromBucket|.) - // - // Note the matching Free() functions are in PartitionPage. - BASE_EXPORT NOINLINE void* SlowPathAlloc(PartitionRootBase* root, - int flags, - size_t size, - bool* is_already_zeroed); - - ALWAYS_INLINE bool is_direct_mapped() const { - return !num_system_pages_per_slot_span; - } - ALWAYS_INLINE size_t get_bytes_per_span() const { - // TODO(ajwong): Change to CheckedMul. https://crbug.com/787153 - // https://crbug.com/680657 - return num_system_pages_per_slot_span * kSystemPageSize; - } - ALWAYS_INLINE uint16_t get_slots_per_span() const { - // TODO(ajwong): Change to CheckedMul. https://crbug.com/787153 - // https://crbug.com/680657 - return static_cast(get_bytes_per_span() / slot_size); - } - - static ALWAYS_INLINE size_t get_direct_map_size(size_t size) { - // Caller must check that the size is not above the kGenericMaxDirectMapped - // limit before calling. This also guards against integer overflow in the - // calculation here. - DCHECK(size <= kGenericMaxDirectMapped); - return (size + kSystemPageOffsetMask) & kSystemPageBaseMask; - } - - // TODO(ajwong): Can this be made private? https://crbug.com/787153 - static PartitionBucket* get_sentinel_bucket(); - - // This helper function scans a bucket's active page list for a suitable new - // active page. When it finds a suitable new active page (one that has - // free slots and is not empty), it is set as the new active page. If there - // is no suitable new active page, the current active page is set to - // PartitionPage::get_sentinel_page(). As potential pages are scanned, they - // are tidied up according to their state. Empty pages are swept on to the - // empty page list, decommitted pages on to the decommitted page list and full - // pages are unlinked from any list. - // - // This is where the guts of the bucket maintenance is done! - bool SetNewActivePage(); - - private: - static void OutOfMemory(const PartitionRootBase* root); - static void OutOfMemoryWithLotsOfUncommitedPages(); - - static NOINLINE void OnFull(); - - // Returns a natural number of PartitionPages (calculated by - // get_system_pages_per_slot_span()) to allocate from the current - // SuperPage when the bucket runs out of slots. - ALWAYS_INLINE uint16_t get_pages_per_slot_span(); - - // Returns the number of system pages in a slot span. - // - // The calculation attemps to find the best number of System Pages to - // allocate for the given slot_size to minimize wasted space. It uses a - // heuristic that looks at number of bytes wasted after the last slot and - // attempts to account for the PTE usage of each System Page. - uint8_t get_system_pages_per_slot_span(); - - // Allocates a new slot span with size |num_partition_pages| from the - // current extent. Metadata within this slot span will be uninitialized. - // Returns nullptr on error. - ALWAYS_INLINE void* AllocNewSlotSpan(PartitionRootBase* root, - int flags, - uint16_t num_partition_pages); - - // Each bucket allocates a slot span when it runs out of slots. - // A slot span's size is equal to get_pages_per_slot_span() number of - // PartitionPages. This function initializes all PartitionPage within the - // span to point to the first PartitionPage which holds all the metadata - // for the span and registers this bucket as the owner of the span. It does - // NOT put the slots into the bucket's freelist. - ALWAYS_INLINE void InitializeSlotSpan(PartitionPage* page); - - // Allocates one slot from the given |page| and then adds the remainder to - // the current bucket. If the |page| was freshly allocated, it must have been - // passed through InitializeSlotSpan() first. - ALWAYS_INLINE char* AllocAndFillFreelist(PartitionPage* page); - - static PartitionBucket sentinel_bucket_; -}; - -} // namespace internal -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_BUCKET_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_cookie.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_cookie.h deleted file mode 100644 index 7cf4e84e0..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_cookie.h +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_COOKIE_H_ -#define THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_COOKIE_H_ - -#include "third_party/base/compiler_specific.h" -#include "third_party/base/logging.h" - -namespace pdfium { -namespace base { -namespace internal { - -#if DCHECK_IS_ON() -// Handles alignment up to XMM instructions on Intel. -static constexpr size_t kCookieSize = 16; - -static constexpr unsigned char kCookieValue[kCookieSize] = { - 0xDE, 0xAD, 0xBE, 0xEF, 0xCA, 0xFE, 0xD0, 0x0D, - 0x13, 0x37, 0xF0, 0x05, 0xBA, 0x11, 0xAB, 0x1E}; -#endif - -ALWAYS_INLINE void PartitionCookieCheckValue(void* ptr) { -#if DCHECK_IS_ON() - unsigned char* cookie_ptr = reinterpret_cast(ptr); - for (size_t i = 0; i < kCookieSize; ++i, ++cookie_ptr) - DCHECK(*cookie_ptr == kCookieValue[i]); -#endif -} - -ALWAYS_INLINE size_t PartitionCookieSizeAdjustAdd(size_t size) { -#if DCHECK_IS_ON() - // Add space for cookies, checking for integer overflow. TODO(palmer): - // Investigate the performance and code size implications of using - // CheckedNumeric throughout PA. - DCHECK(size + (2 * kCookieSize) > size); - size += 2 * kCookieSize; -#endif - return size; -} - -ALWAYS_INLINE void* PartitionCookieFreePointerAdjust(void* ptr) { -#if DCHECK_IS_ON() - // The value given to the application is actually just after the cookie. - ptr = static_cast(ptr) - kCookieSize; -#endif - return ptr; -} - -ALWAYS_INLINE size_t PartitionCookieSizeAdjustSubtract(size_t size) { -#if DCHECK_IS_ON() - // Remove space for cookies. - DCHECK(size >= 2 * kCookieSize); - size -= 2 * kCookieSize; -#endif - return size; -} - -ALWAYS_INLINE void PartitionCookieWriteValue(void* ptr) { -#if DCHECK_IS_ON() - unsigned char* cookie_ptr = reinterpret_cast(ptr); - for (size_t i = 0; i < kCookieSize; ++i, ++cookie_ptr) - *cookie_ptr = kCookieValue[i]; -#endif -} - -} // namespace internal -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_COOKIE_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_direct_map_extent.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_direct_map_extent.h deleted file mode 100644 index 192c5b4b3..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_direct_map_extent.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_DIRECT_MAP_EXTENT_H_ -#define THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_DIRECT_MAP_EXTENT_H_ - -#include "third_party/base/allocator/partition_allocator/partition_bucket.h" -#include "third_party/base/allocator/partition_allocator/partition_page.h" - -namespace pdfium { -namespace base { -namespace internal { - -struct PartitionDirectMapExtent { - PartitionDirectMapExtent* next_extent; - PartitionDirectMapExtent* prev_extent; - PartitionBucket* bucket; - size_t map_size; // Mapped size, not including guard pages and meta-data. - - ALWAYS_INLINE static PartitionDirectMapExtent* FromPage(PartitionPage* page); -}; - -ALWAYS_INLINE PartitionDirectMapExtent* PartitionDirectMapExtent::FromPage( - PartitionPage* page) { - DCHECK(page->bucket->is_direct_mapped()); - return reinterpret_cast( - reinterpret_cast(page) + 3 * kPageMetadataSize); -} - -} // namespace internal -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_DIRECT_MAP_EXTENT_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_freelist_entry.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_freelist_entry.h deleted file mode 100644 index 5d46f0f92..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_freelist_entry.h +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_FREELIST_ENTRY_H_ -#define THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_FREELIST_ENTRY_H_ - -#include - -#include "build/build_config.h" -#include "third_party/base/allocator/partition_allocator/partition_alloc_constants.h" -#include "third_party/base/compiler_specific.h" -#include "third_party/base/sys_byteorder.h" - -namespace pdfium { -namespace base { -namespace internal { - -struct EncodedPartitionFreelistEntry; - -struct PartitionFreelistEntry { - EncodedPartitionFreelistEntry* next; - - PartitionFreelistEntry() = delete; - ~PartitionFreelistEntry() = delete; - - ALWAYS_INLINE static EncodedPartitionFreelistEntry* Encode( - PartitionFreelistEntry* ptr) { - return reinterpret_cast(Transform(ptr)); - } - - private: - friend struct EncodedPartitionFreelistEntry; - static ALWAYS_INLINE void* Transform(void* ptr) { - // We use bswap on little endian as a fast mask for two reasons: - // 1) If an object is freed and its vtable used where the attacker doesn't - // get the chance to run allocations between the free and use, the vtable - // dereference is likely to fault. - // 2) If the attacker has a linear buffer overflow and elects to try and - // corrupt a freelist pointer, partial pointer overwrite attacks are - // thwarted. - // For big endian, similar guarantees are arrived at with a negation. -#if defined(ARCH_CPU_BIG_ENDIAN) - uintptr_t masked = ~reinterpret_cast(ptr); -#else - uintptr_t masked = ByteSwapUintPtrT(reinterpret_cast(ptr)); -#endif - return reinterpret_cast(masked); - } -}; - -struct EncodedPartitionFreelistEntry { - char scrambled[sizeof(PartitionFreelistEntry*)]; - - EncodedPartitionFreelistEntry() = delete; - ~EncodedPartitionFreelistEntry() = delete; - - ALWAYS_INLINE static PartitionFreelistEntry* Decode( - EncodedPartitionFreelistEntry* ptr) { - return reinterpret_cast( - PartitionFreelistEntry::Transform(ptr)); - } -}; - -static_assert(sizeof(PartitionFreelistEntry) == - sizeof(EncodedPartitionFreelistEntry), - "Should not have padding"); - -} // namespace internal -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_FREELIST_ENTRY_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_oom.cc b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_oom.cc deleted file mode 100644 index f93dae702..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_oom.cc +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "third_party/base/allocator/partition_allocator/partition_oom.h" - -#include "build/build_config.h" -#include "third_party/base/allocator/partition_allocator/oom.h" - -namespace pdfium { -namespace base { -namespace internal { - -void NOINLINE PartitionExcessiveAllocationSize(size_t size) { - OOM_CRASH(size); -} - -#if !defined(ARCH_CPU_64_BITS) -NOINLINE void PartitionOutOfMemoryWithLotsOfUncommitedPages(size_t size) { - OOM_CRASH(size); -} -#endif - -} // namespace internal -} // namespace base -} // namespace pdfium diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_oom.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_oom.h deleted file mode 100644 index 683358e08..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_oom.h +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// Holds functions for generating OOM errors from PartitionAlloc. This is -// distinct from oom.h in that it is meant only for use in PartitionAlloc. - -#ifndef THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_OOM_H_ -#define THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_OOM_H_ - -#include - -#include "build/build_config.h" -#include "third_party/base/compiler_specific.h" - -namespace pdfium { -namespace base { -namespace internal { - -NOINLINE void PartitionExcessiveAllocationSize(size_t size); - -#if !defined(ARCH_CPU_64_BITS) -NOINLINE void PartitionOutOfMemoryWithLotsOfUncommitedPages(size_t size); -#endif - -} // namespace internal -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_OOM_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_page.cc b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_page.cc deleted file mode 100644 index 0ddfe1242..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_page.cc +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright (c) 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "third_party/base/allocator/partition_allocator/partition_page.h" - -#include "third_party/base/allocator/partition_allocator/partition_direct_map_extent.h" -#include "third_party/base/allocator/partition_allocator/partition_root_base.h" - -namespace pdfium { -namespace base { -namespace internal { - -namespace { - -ALWAYS_INLINE DeferredUnmap PartitionDirectUnmap(PartitionPage* page) { - PartitionRootBase* root = PartitionRootBase::FromPage(page); - const PartitionDirectMapExtent* extent = - PartitionDirectMapExtent::FromPage(page); - size_t unmap_size = extent->map_size; - - // Maintain the doubly-linked list of all direct mappings. - if (extent->prev_extent) { - DCHECK(extent->prev_extent->next_extent == extent); - extent->prev_extent->next_extent = extent->next_extent; - } else { - root->direct_map_list = extent->next_extent; - } - if (extent->next_extent) { - DCHECK(extent->next_extent->prev_extent == extent); - extent->next_extent->prev_extent = extent->prev_extent; - } - - // Add on the size of the trailing guard page and preceeding partition - // page. - unmap_size += kPartitionPageSize + kSystemPageSize; - - size_t uncommitted_page_size = page->bucket->slot_size + kSystemPageSize; - root->DecreaseCommittedPages(uncommitted_page_size); - DCHECK(root->total_size_of_direct_mapped_pages >= uncommitted_page_size); - root->total_size_of_direct_mapped_pages -= uncommitted_page_size; - - DCHECK(!(unmap_size & kPageAllocationGranularityOffsetMask)); - - char* ptr = reinterpret_cast(PartitionPage::ToPointer(page)); - // Account for the mapping starting a partition page before the actual - // allocation address. - ptr -= kPartitionPageSize; - return {ptr, unmap_size}; -} - -ALWAYS_INLINE void PartitionRegisterEmptyPage(PartitionPage* page) { - DCHECK(page->is_empty()); - PartitionRootBase* root = PartitionRootBase::FromPage(page); - - // If the page is already registered as empty, give it another life. - if (page->empty_cache_index != -1) { - DCHECK(page->empty_cache_index >= 0); - DCHECK(static_cast(page->empty_cache_index) < kMaxFreeableSpans); - DCHECK(root->global_empty_page_ring[page->empty_cache_index] == page); - root->global_empty_page_ring[page->empty_cache_index] = nullptr; - } - - int16_t current_index = root->global_empty_page_ring_index; - PartitionPage* page_to_decommit = root->global_empty_page_ring[current_index]; - // The page might well have been re-activated, filled up, etc. before we get - // around to looking at it here. - if (page_to_decommit) - page_to_decommit->DecommitIfPossible(root); - - // We put the empty slot span on our global list of "pages that were once - // empty". thus providing it a bit of breathing room to get re-used before - // we really free it. This improves performance, particularly on Mac OS X - // which has subpar memory management performance. - root->global_empty_page_ring[current_index] = page; - page->empty_cache_index = current_index; - ++current_index; - if (current_index == kMaxFreeableSpans) - current_index = 0; - root->global_empty_page_ring_index = current_index; -} - -} // namespace - -// static -PartitionPage PartitionPage::sentinel_page_; - -PartitionPage* PartitionPage::get_sentinel_page() { - return &sentinel_page_; -} - -DeferredUnmap PartitionPage::FreeSlowPath() { - DCHECK(this != get_sentinel_page()); - if (LIKELY(num_allocated_slots == 0)) { - // Page became fully unused. - if (UNLIKELY(bucket->is_direct_mapped())) { - return PartitionDirectUnmap(this); - } - // If it's the current active page, change it. We bounce the page to - // the empty list as a force towards defragmentation. - if (LIKELY(this == bucket->active_pages_head)) - bucket->SetNewActivePage(); - DCHECK(bucket->active_pages_head != this); - - set_raw_size(0); - DCHECK(!get_raw_size()); - - PartitionRegisterEmptyPage(this); - } else { - DCHECK(!bucket->is_direct_mapped()); - // Ensure that the page is full. That's the only valid case if we - // arrive here. - DCHECK(num_allocated_slots < 0); - // A transition of num_allocated_slots from 0 to -1 is not legal, and - // likely indicates a double-free. - CHECK(num_allocated_slots != -1); - num_allocated_slots = -num_allocated_slots - 2; - DCHECK(num_allocated_slots == bucket->get_slots_per_span() - 1); - // Fully used page became partially used. It must be put back on the - // non-full page list. Also make it the current page to increase the - // chances of it being filled up again. The old current page will be - // the next page. - DCHECK(!next_page); - if (LIKELY(bucket->active_pages_head != get_sentinel_page())) - next_page = bucket->active_pages_head; - bucket->active_pages_head = this; - --bucket->num_full_pages; - // Special case: for a partition page with just a single slot, it may - // now be empty and we want to run it through the empty logic. - if (UNLIKELY(num_allocated_slots == 0)) - return FreeSlowPath(); - } - return {}; -} - -void PartitionPage::Decommit(PartitionRootBase* root) { - DCHECK(is_empty()); - DCHECK(!bucket->is_direct_mapped()); - void* addr = PartitionPage::ToPointer(this); - root->DecommitSystemPages(addr, bucket->get_bytes_per_span()); - - // We actually leave the decommitted page in the active list. We'll sweep - // it on to the decommitted page list when we next walk the active page - // list. - // Pulling this trick enables us to use a singly-linked page list for all - // cases, which is critical in keeping the page metadata structure down to - // 32 bytes in size. - freelist_head = nullptr; - num_unprovisioned_slots = 0; - DCHECK(is_decommitted()); -} - -void PartitionPage::DecommitIfPossible(PartitionRootBase* root) { - DCHECK(empty_cache_index >= 0); - DCHECK(static_cast(empty_cache_index) < kMaxFreeableSpans); - DCHECK(this == root->global_empty_page_ring[empty_cache_index]); - empty_cache_index = -1; - if (is_empty()) - Decommit(root); -} - -void DeferredUnmap::Unmap() { - FreePages(ptr, size); -} - -} // namespace internal -} // namespace base -} // namespace pdfium diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_page.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_page.h deleted file mode 100644 index 049ff26ae..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_page.h +++ /dev/null @@ -1,316 +0,0 @@ -// Copyright (c) 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_PAGE_H_ -#define THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_PAGE_H_ - -#include - -#include "third_party/base/allocator/partition_allocator/partition_alloc_constants.h" -#include "third_party/base/allocator/partition_allocator/partition_bucket.h" -#include "third_party/base/allocator/partition_allocator/partition_cookie.h" -#include "third_party/base/allocator/partition_allocator/partition_freelist_entry.h" -#include "third_party/base/allocator/partition_allocator/random.h" - -namespace pdfium { -namespace base { -namespace internal { - -struct PartitionRootBase; - -// PartitionPage::Free() defers unmapping a large page until the lock is -// released. Callers of PartitionPage::Free() must invoke Run(). -// TODO(1061437): Reconsider once the new locking mechanism is implemented. -struct DeferredUnmap { - void* ptr = nullptr; - size_t size = 0; - // In most cases there is no page to unmap and ptr == nullptr. This function - // is inlined to avoid the overhead of a function call in the common case. - ALWAYS_INLINE void Run(); - - private: - BASE_EXPORT NOINLINE void Unmap(); -}; - -// Some notes on page states. A page can be in one of four major states: -// 1) Active. -// 2) Full. -// 3) Empty. -// 4) Decommitted. -// An active page has available free slots. A full page has no free slots. An -// empty page has no free slots, and a decommitted page is an empty page that -// had its backing memory released back to the system. -// There are two linked lists tracking the pages. The "active page" list is an -// approximation of a list of active pages. It is an approximation because -// full, empty and decommitted pages may briefly be present in the list until -// we next do a scan over it. -// The "empty page" list is an accurate list of pages which are either empty -// or decommitted. -// -// The significant page transitions are: -// - free() will detect when a full page has a slot free()'d and immediately -// return the page to the head of the active list. -// - free() will detect when a page is fully emptied. It _may_ add it to the -// empty list or it _may_ leave it on the active list until a future list scan. -// - malloc() _may_ scan the active page list in order to fulfil the request. -// If it does this, full, empty and decommitted pages encountered will be -// booted out of the active list. If there are no suitable active pages found, -// an empty or decommitted page (if one exists) will be pulled from the empty -// list on to the active list. -// -// TODO(ajwong): Evaluate if this should be named PartitionSlotSpanMetadata or -// similar. If so, all uses of the term "page" in comments, member variables, -// local variables, and documentation that refer to this concept should be -// updated. -struct PartitionPage { - PartitionFreelistEntry* freelist_head; - PartitionPage* next_page; - PartitionBucket* bucket; - // Deliberately signed, 0 for empty or decommitted page, -n for full pages: - int16_t num_allocated_slots; - uint16_t num_unprovisioned_slots; - uint16_t page_offset; - int16_t empty_cache_index; // -1 if not in the empty cache. - - // Public API - - // Note the matching Alloc() functions are in PartitionPage. - // Callers must invoke DeferredUnmap::Run() after releasing the lock. - BASE_EXPORT NOINLINE DeferredUnmap FreeSlowPath() WARN_UNUSED_RESULT; - ALWAYS_INLINE DeferredUnmap Free(void* ptr) WARN_UNUSED_RESULT; - - void Decommit(PartitionRootBase* root); - void DecommitIfPossible(PartitionRootBase* root); - - // Pointer manipulation functions. These must be static as the input |page| - // pointer may be the result of an offset calculation and therefore cannot - // be trusted. The objective of these functions is to sanitize this input. - ALWAYS_INLINE static void* ToPointer(const PartitionPage* page); - ALWAYS_INLINE static PartitionPage* FromPointerNoAlignmentCheck(void* ptr); - ALWAYS_INLINE static PartitionPage* FromPointer(void* ptr); - - ALWAYS_INLINE const size_t* get_raw_size_ptr() const; - ALWAYS_INLINE size_t* get_raw_size_ptr() { - return const_cast( - const_cast(this)->get_raw_size_ptr()); - } - - ALWAYS_INLINE size_t get_raw_size() const; - ALWAYS_INLINE void set_raw_size(size_t size); - - ALWAYS_INLINE void Reset(); - - // TODO(ajwong): Can this be made private? https://crbug.com/787153 - BASE_EXPORT static PartitionPage* get_sentinel_page(); - - // Page State accessors. - // Note that it's only valid to call these functions on pages found on one of - // the page lists. Specifically, you can't call these functions on full pages - // that were detached from the active list. - // - // This restriction provides the flexibity for some of the status fields to - // be repurposed when a page is taken off a list. See the negation of - // |num_allocated_slots| when a full page is removed from the active list - // for an example of such repurposing. - ALWAYS_INLINE bool is_active() const; - ALWAYS_INLINE bool is_full() const; - ALWAYS_INLINE bool is_empty() const; - ALWAYS_INLINE bool is_decommitted() const; - - private: - // g_sentinel_page is used as a sentinel to indicate that there is no page - // in the active page list. We can use nullptr, but in that case we need - // to add a null-check branch to the hot allocation path. We want to avoid - // that. - // - // Note, this declaration is kept in the header as opposed to an anonymous - // namespace so the getter can be fully inlined. - static PartitionPage sentinel_page_; -}; -static_assert(sizeof(PartitionPage) <= kPageMetadataSize, - "PartitionPage must be able to fit in a metadata slot"); - -ALWAYS_INLINE char* PartitionSuperPageToMetadataArea(char* ptr) { - uintptr_t pointer_as_uint = reinterpret_cast(ptr); - DCHECK(!(pointer_as_uint & kSuperPageOffsetMask)); - // The metadata area is exactly one system page (the guard page) into the - // super page. - return reinterpret_cast(pointer_as_uint + kSystemPageSize); -} - -ALWAYS_INLINE PartitionPage* PartitionPage::FromPointerNoAlignmentCheck( - void* ptr) { - uintptr_t pointer_as_uint = reinterpret_cast(ptr); - char* super_page_ptr = - reinterpret_cast(pointer_as_uint & kSuperPageBaseMask); - uintptr_t partition_page_index = - (pointer_as_uint & kSuperPageOffsetMask) >> kPartitionPageShift; - // Index 0 is invalid because it is the metadata and guard area and - // the last index is invalid because it is a guard page. - DCHECK(partition_page_index); - DCHECK(partition_page_index < kNumPartitionPagesPerSuperPage - 1); - PartitionPage* page = reinterpret_cast( - PartitionSuperPageToMetadataArea(super_page_ptr) + - (partition_page_index << kPageMetadataShift)); - // Partition pages in the same slot span can share the same page object. - // Adjust for that. - size_t delta = page->page_offset << kPageMetadataShift; - page = - reinterpret_cast(reinterpret_cast(page) - delta); - return page; -} - -// Resturns start of the slot span for the PartitionPage. -ALWAYS_INLINE void* PartitionPage::ToPointer(const PartitionPage* page) { - uintptr_t pointer_as_uint = reinterpret_cast(page); - - uintptr_t super_page_offset = (pointer_as_uint & kSuperPageOffsetMask); - - // A valid |page| must be past the first guard System page and within - // the following metadata region. - DCHECK(super_page_offset > kSystemPageSize); - // Must be less than total metadata region. - DCHECK(super_page_offset < kSystemPageSize + (kNumPartitionPagesPerSuperPage * - kPageMetadataSize)); - uintptr_t partition_page_index = - (super_page_offset - kSystemPageSize) >> kPageMetadataShift; - // Index 0 is invalid because it is the superpage extent metadata and the - // last index is invalid because the whole PartitionPage is set as guard - // pages for the metadata region. - DCHECK(partition_page_index); - DCHECK(partition_page_index < kNumPartitionPagesPerSuperPage - 1); - uintptr_t super_page_base = (pointer_as_uint & kSuperPageBaseMask); - void* ret = reinterpret_cast( - super_page_base + (partition_page_index << kPartitionPageShift)); - return ret; -} - -ALWAYS_INLINE PartitionPage* PartitionPage::FromPointer(void* ptr) { - PartitionPage* page = PartitionPage::FromPointerNoAlignmentCheck(ptr); - // Checks that the pointer is a multiple of bucket size. - DCHECK(!((reinterpret_cast(ptr) - - reinterpret_cast(PartitionPage::ToPointer(page))) % - page->bucket->slot_size)); - return page; -} - -ALWAYS_INLINE const size_t* PartitionPage::get_raw_size_ptr() const { - // For single-slot buckets which span more than one partition page, we - // have some spare metadata space to store the raw allocation size. We - // can use this to report better statistics. - if (bucket->slot_size <= kMaxSystemPagesPerSlotSpan * kSystemPageSize) - return nullptr; - - DCHECK((bucket->slot_size % kSystemPageSize) == 0); - DCHECK(bucket->is_direct_mapped() || bucket->get_slots_per_span() == 1); - - const PartitionPage* the_next_page = this + 1; - return reinterpret_cast(&the_next_page->freelist_head); -} - -ALWAYS_INLINE size_t PartitionPage::get_raw_size() const { - const size_t* ptr = get_raw_size_ptr(); - if (UNLIKELY(ptr != nullptr)) - return *ptr; - return 0; -} - -ALWAYS_INLINE DeferredUnmap PartitionPage::Free(void* ptr) { -#if DCHECK_IS_ON() - size_t slot_size = bucket->slot_size; - const size_t raw_size = get_raw_size(); - if (raw_size) { - slot_size = raw_size; - } - - // If these asserts fire, you probably corrupted memory. - PartitionCookieCheckValue(ptr); - PartitionCookieCheckValue(reinterpret_cast(ptr) + slot_size - - kCookieSize); - - memset(ptr, kFreedByte, slot_size); -#endif - - DCHECK(num_allocated_slots); - // Catches an immediate double free. - CHECK(ptr != freelist_head); - // Look for double free one level deeper in debug. - DCHECK(!freelist_head || - ptr != EncodedPartitionFreelistEntry::Decode(freelist_head->next)); - internal::PartitionFreelistEntry* entry = - static_cast(ptr); - entry->next = internal::PartitionFreelistEntry::Encode(freelist_head); - freelist_head = entry; - --num_allocated_slots; - if (UNLIKELY(num_allocated_slots <= 0)) { - return FreeSlowPath(); - } else { - // All single-slot allocations must go through the slow path to - // correctly update the size metadata. - DCHECK(get_raw_size() == 0); - } - return {}; -} - -ALWAYS_INLINE bool PartitionPage::is_active() const { - DCHECK(this != get_sentinel_page()); - DCHECK(!page_offset); - return (num_allocated_slots > 0 && - (freelist_head || num_unprovisioned_slots)); -} - -ALWAYS_INLINE bool PartitionPage::is_full() const { - DCHECK(this != get_sentinel_page()); - DCHECK(!page_offset); - bool ret = (num_allocated_slots == bucket->get_slots_per_span()); - if (ret) { - DCHECK(!freelist_head); - DCHECK(!num_unprovisioned_slots); - } - return ret; -} - -ALWAYS_INLINE bool PartitionPage::is_empty() const { - DCHECK(this != get_sentinel_page()); - DCHECK(!page_offset); - return (!num_allocated_slots && freelist_head); -} - -ALWAYS_INLINE bool PartitionPage::is_decommitted() const { - DCHECK(this != get_sentinel_page()); - DCHECK(!page_offset); - bool ret = (!num_allocated_slots && !freelist_head); - if (ret) { - DCHECK(!num_unprovisioned_slots); - DCHECK(empty_cache_index == -1); - } - return ret; -} - -ALWAYS_INLINE void PartitionPage::set_raw_size(size_t size) { - size_t* raw_size_ptr = get_raw_size_ptr(); - if (UNLIKELY(raw_size_ptr != nullptr)) - *raw_size_ptr = size; -} - -ALWAYS_INLINE void PartitionPage::Reset() { - DCHECK(is_decommitted()); - - num_unprovisioned_slots = bucket->get_slots_per_span(); - DCHECK(num_unprovisioned_slots); - - next_page = nullptr; -} - -ALWAYS_INLINE void DeferredUnmap::Run() { - if (UNLIKELY(ptr)) { - Unmap(); - } -} - -} // namespace internal -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_PAGE_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_root_base.cc b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_root_base.cc deleted file mode 100644 index 543434718..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_root_base.cc +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "third_party/base/allocator/partition_allocator/partition_root_base.h" - -#include "build/build_config.h" -#include "third_party/base/allocator/partition_allocator/oom.h" -#include "third_party/base/allocator/partition_allocator/partition_oom.h" -#include "third_party/base/allocator/partition_allocator/partition_page.h" - -namespace pdfium { -namespace base { -namespace internal { - -NOINLINE void PartitionRootBase::OutOfMemory(size_t size) { -#if !defined(ARCH_CPU_64_BITS) - // Check whether this OOM is due to a lot of super pages that are allocated - // but not committed, probably due to http://crbug.com/421387. - if (total_size_of_super_pages + total_size_of_direct_mapped_pages - - total_size_of_committed_pages > - kReasonableSizeOfUnusedPages) { - PartitionOutOfMemoryWithLotsOfUncommitedPages(size); - } -#endif - if (PartitionRootBase::g_oom_handling_function) - (*PartitionRootBase::g_oom_handling_function)(size); - OOM_CRASH(size); -} - -void PartitionRootBase::DecommitEmptyPages() { - for (size_t i = 0; i < kMaxFreeableSpans; ++i) { - internal::PartitionPage* page = global_empty_page_ring[i]; - if (page) - page->DecommitIfPossible(this); - global_empty_page_ring[i] = nullptr; - } -} - -} // namespace internal -} // namespace base -} // namespace pdfium diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_root_base.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_root_base.h deleted file mode 100644 index 5d692b2ab..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/partition_root_base.h +++ /dev/null @@ -1,201 +0,0 @@ -// Copyright (c) 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_ROOT_BASE_H_ -#define THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_ROOT_BASE_H_ - -#include "build/build_config.h" -#include "third_party/base/allocator/partition_allocator/page_allocator.h" -#include "third_party/base/allocator/partition_allocator/partition_alloc_constants.h" -#include "third_party/base/allocator/partition_allocator/partition_bucket.h" -#include "third_party/base/allocator/partition_allocator/partition_direct_map_extent.h" -#include "third_party/base/allocator/partition_allocator/partition_page.h" - -namespace pdfium { -namespace base { - -typedef void (*OomFunction)(size_t); - -namespace internal { - -struct PartitionPage; -struct PartitionRootBase; - -// An "extent" is a span of consecutive superpages. We link to the partition's -// next extent (if there is one) to the very start of a superpage's metadata -// area. -struct PartitionSuperPageExtentEntry { - PartitionRootBase* root; - char* super_page_base; - char* super_pages_end; - PartitionSuperPageExtentEntry* next; -}; -static_assert( - sizeof(PartitionSuperPageExtentEntry) <= kPageMetadataSize, - "PartitionSuperPageExtentEntry must be able to fit in a metadata slot"); - -struct BASE_EXPORT PartitionRootBase { - PartitionRootBase(); - virtual ~PartitionRootBase(); - size_t total_size_of_committed_pages = 0; - size_t total_size_of_super_pages = 0; - size_t total_size_of_direct_mapped_pages = 0; - // Invariant: total_size_of_committed_pages <= - // total_size_of_super_pages + - // total_size_of_direct_mapped_pages. - unsigned num_buckets = 0; - unsigned max_allocation = 0; - bool initialized = false; - char* next_super_page = nullptr; - char* next_partition_page = nullptr; - char* next_partition_page_end = nullptr; - PartitionSuperPageExtentEntry* current_extent = nullptr; - PartitionSuperPageExtentEntry* first_extent = nullptr; - PartitionDirectMapExtent* direct_map_list = nullptr; - PartitionPage* global_empty_page_ring[kMaxFreeableSpans] = {}; - int16_t global_empty_page_ring_index = 0; - uintptr_t inverted_self = 0; - - // Public API - - // Allocates out of the given bucket. Properly, this function should probably - // be in PartitionBucket, but because the implementation needs to be inlined - // for performance, and because it needs to inspect PartitionPage, - // it becomes impossible to have it in PartitionBucket as this causes a - // cyclical dependency on PartitionPage function implementations. - // - // Moving it a layer lower couples PartitionRootBase and PartitionBucket, but - // preserves the layering of the includes. - // - // Note the matching Free() functions are in PartitionPage. - ALWAYS_INLINE void* AllocFromBucket(PartitionBucket* bucket, - int flags, - size_t size); - - ALWAYS_INLINE static bool IsValidPage(PartitionPage* page); - ALWAYS_INLINE static PartitionRootBase* FromPage(PartitionPage* page); - - // g_oom_handling_function is invoked when PartitionAlloc hits OutOfMemory. - static OomFunction g_oom_handling_function; - NOINLINE void OutOfMemory(size_t size); - - ALWAYS_INLINE void IncreaseCommittedPages(size_t len); - ALWAYS_INLINE void DecreaseCommittedPages(size_t len); - ALWAYS_INLINE void DecommitSystemPages(void* address, size_t length); - ALWAYS_INLINE void RecommitSystemPages(void* address, size_t length); - - // Frees memory from this partition, if possible, by decommitting pages. - // |flags| is an OR of base::PartitionPurgeFlags. - virtual void PurgeMemory(int flags) = 0; - void DecommitEmptyPages(); -}; - -ALWAYS_INLINE void* PartitionRootBase::AllocFromBucket(PartitionBucket* bucket, - int flags, - size_t size) { - bool zero_fill = flags & PartitionAllocZeroFill; - bool is_already_zeroed = false; - - PartitionPage* page = bucket->active_pages_head; - // Check that this page is neither full nor freed. - DCHECK(page->num_allocated_slots >= 0); - void* ret = page->freelist_head; - if (LIKELY(ret != 0)) { - // If these DCHECKs fire, you probably corrupted memory. TODO(palmer): See - // if we can afford to make these CHECKs. - DCHECK(PartitionRootBase::IsValidPage(page)); - - // All large allocations must go through the slow path to correctly update - // the size metadata. - DCHECK(page->get_raw_size() == 0); - internal::PartitionFreelistEntry* new_head = - internal::EncodedPartitionFreelistEntry::Decode( - page->freelist_head->next); - page->freelist_head = new_head; - page->num_allocated_slots++; - } else { - ret = bucket->SlowPathAlloc(this, flags, size, &is_already_zeroed); - // TODO(palmer): See if we can afford to make this a CHECK. - DCHECK(!ret || - PartitionRootBase::IsValidPage(PartitionPage::FromPointer(ret))); - } - -#if DCHECK_IS_ON() - if (!ret) { - return nullptr; - } - - page = PartitionPage::FromPointer(ret); - // TODO(ajwong): Can |page->bucket| ever not be |this|? If not, can this just - // be bucket->slot_size? - size_t new_slot_size = page->bucket->slot_size; - size_t raw_size = page->get_raw_size(); - if (raw_size) { - DCHECK(raw_size == size); - new_slot_size = raw_size; - } - size_t no_cookie_size = PartitionCookieSizeAdjustSubtract(new_slot_size); - char* char_ret = static_cast(ret); - // The value given to the application is actually just after the cookie. - ret = char_ret + kCookieSize; - - // Fill the region kUninitializedByte or 0, and surround it with 2 cookies. - PartitionCookieWriteValue(char_ret); - if (!zero_fill) { - memset(ret, kUninitializedByte, no_cookie_size); - } else if (!is_already_zeroed) { - memset(ret, 0, no_cookie_size); - } - PartitionCookieWriteValue(char_ret + kCookieSize + no_cookie_size); -#else - if (ret && zero_fill && !is_already_zeroed) { - memset(ret, 0, size); - } -#endif - - return ret; -} - -ALWAYS_INLINE bool PartitionRootBase::IsValidPage(PartitionPage* page) { - PartitionRootBase* root = PartitionRootBase::FromPage(page); - return root->inverted_self == ~reinterpret_cast(root); -} - -ALWAYS_INLINE PartitionRootBase* PartitionRootBase::FromPage( - PartitionPage* page) { - PartitionSuperPageExtentEntry* extent_entry = - reinterpret_cast( - reinterpret_cast(page) & kSystemPageBaseMask); - return extent_entry->root; -} - -ALWAYS_INLINE void PartitionRootBase::IncreaseCommittedPages(size_t len) { - total_size_of_committed_pages += len; - DCHECK(total_size_of_committed_pages <= - total_size_of_super_pages + total_size_of_direct_mapped_pages); -} - -ALWAYS_INLINE void PartitionRootBase::DecreaseCommittedPages(size_t len) { - total_size_of_committed_pages -= len; - DCHECK(total_size_of_committed_pages <= - total_size_of_super_pages + total_size_of_direct_mapped_pages); -} - -ALWAYS_INLINE void PartitionRootBase::DecommitSystemPages(void* address, - size_t length) { - ::pdfium::base::DecommitSystemPages(address, length); - DecreaseCommittedPages(length); -} - -ALWAYS_INLINE void PartitionRootBase::RecommitSystemPages(void* address, - size_t length) { - CHECK(::pdfium::base::RecommitSystemPages(address, length, PageReadWrite)); - IncreaseCommittedPages(length); -} - -} // namespace internal -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_PARTITION_ROOT_BASE_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/random.cc b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/random.cc deleted file mode 100644 index 7a13855d3..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/random.cc +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright 2019 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "third_party/base/allocator/partition_allocator/random.h" - -#include "build/build_config.h" -#include "third_party/base/allocator/partition_allocator/spin_lock.h" -#include "third_party/base/no_destructor.h" - -#if defined(OS_WIN) -#include -#else -#include -#include -#endif - -namespace pdfium { -namespace base { - -// This is the same PRNG as used by tcmalloc for mapping address randomness; -// see http://burtleburtle.net/bob/rand/smallprng.html. -struct RandomContext { - subtle::SpinLock lock; - bool initialized; - uint32_t a; - uint32_t b; - uint32_t c; - uint32_t d; -}; - -namespace { - -#define rot(x, k) (((x) << (k)) | ((x) >> (32 - (k)))) - -uint32_t RandomValueInternal(RandomContext* x) { - uint32_t e = x->a - rot(x->b, 27); - x->a = x->b ^ rot(x->c, 17); - x->b = x->c + x->d; - x->c = x->d + e; - x->d = e + x->a; - return x->d; -} - -#undef rot - -RandomContext* GetRandomContext() { - static NoDestructor g_random_context; - RandomContext* x = g_random_context.get(); - subtle::SpinLock::Guard guard(x->lock); - if (UNLIKELY(!x->initialized)) { - x->initialized = true; - char c; - uint32_t seed = static_cast(reinterpret_cast(&c)); - uint32_t pid; - uint32_t usec; -#if defined(OS_WIN) - pid = GetCurrentProcessId(); - SYSTEMTIME st; - GetSystemTime(&st); - usec = static_cast(st.wMilliseconds * 1000); -#else - pid = static_cast(getpid()); - struct timeval tv; - gettimeofday(&tv, 0); - usec = static_cast(tv.tv_usec); -#endif - seed ^= pid; - seed ^= usec; - x->a = 0xf1ea5eed; - x->b = x->c = x->d = seed; - for (int i = 0; i < 20; ++i) { - RandomValueInternal(x); - } - } - return x; -} - -} // namespace - -uint32_t RandomValue() { - RandomContext* x = GetRandomContext(); - subtle::SpinLock::Guard guard(x->lock); - return RandomValueInternal(x); -} - -void SetMmapSeedForTesting(int64_t seed) { - RandomContext* x = GetRandomContext(); - subtle::SpinLock::Guard guard(x->lock); - x->a = x->b = static_cast(seed); - x->c = x->d = static_cast(seed >> 32); - x->initialized = true; -} - -} // namespace base -} // namespace pdfium diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/random.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/random.h deleted file mode 100644 index e485d6d4a..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/random.h +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2019 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_RANDOM_H_ -#define THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_RANDOM_H_ - -#include - -#include "third_party/base/base_export.h" - -namespace pdfium { -namespace base { - -// Returns a random value. The generator's internal state is initialized with -// `base::RandUint64` which is very unpredictable, but which is expensive due to -// the need to call into the kernel. Therefore this generator uses a fast, -// entirely user-space function after initialization. -BASE_EXPORT uint32_t RandomValue(); - -// Sets the seed for the random number generator to a known value, to cause the -// RNG to generate a predictable sequence of outputs. May be called multiple -// times. -BASE_EXPORT void SetMmapSeedForTesting(uint64_t seed); - -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_RANDOM_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/spin_lock.cc b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/spin_lock.cc deleted file mode 100644 index 968c58ad9..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/spin_lock.cc +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright 2015 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "third_party/base/allocator/partition_allocator/spin_lock.h" - -#include "build/build_config.h" -#include "third_party/base/logging.h" - -#if defined(OS_WIN) -#include -#elif defined(OS_POSIX) || defined(OS_FUCHSIA) -#include -#endif - -// The YIELD_PROCESSOR macro wraps an architecture specific-instruction that -// informs the processor we're in a busy wait, so it can handle the branch more -// intelligently and e.g. reduce power to our core or give more resources to the -// other hyper-thread on this core. See the following for context: -// https://software.intel.com/en-us/articles/benefitting-power-and-performance-sleep-loops -// -// The YIELD_THREAD macro tells the OS to relinquish our quantum. This is -// basically a worst-case fallback, and if you're hitting it with any frequency -// you really should be using a proper lock (such as |base::Lock|)rather than -// these spinlocks. -#if defined(OS_WIN) - -#define YIELD_PROCESSOR YieldProcessor() -#define YIELD_THREAD SwitchToThread() - -#elif defined(OS_POSIX) || defined(OS_FUCHSIA) - -#if defined(ARCH_CPU_X86_64) || defined(ARCH_CPU_X86) -#define YIELD_PROCESSOR __asm__ __volatile__("pause") -#elif (defined(ARCH_CPU_ARMEL) && __ARM_ARCH >= 6) || defined(ARCH_CPU_ARM64) -#define YIELD_PROCESSOR __asm__ __volatile__("yield") -#elif defined(ARCH_CPU_MIPSEL) -// The MIPS32 docs state that the PAUSE instruction is a no-op on older -// architectures (first added in MIPS32r2). To avoid assembler errors when -// targeting pre-r2, we must encode the instruction manually. -#define YIELD_PROCESSOR __asm__ __volatile__(".word 0x00000140") -#elif defined(ARCH_CPU_MIPS64EL) && __mips_isa_rev >= 2 -// Don't bother doing using .word here since r2 is the lowest supported mips64 -// that Chromium supports. -#define YIELD_PROCESSOR __asm__ __volatile__("pause") -#elif defined(ARCH_CPU_PPC64_FAMILY) -#define YIELD_PROCESSOR __asm__ __volatile__("or 31,31,31") -#elif defined(ARCH_CPU_S390_FAMILY) -// just do nothing -#define YIELD_PROCESSOR ((void)0) -#elif defined(ARCH_CPU_ALPHA21264_FAMILY) -// just do nothing -#define YIELD_PROCESSOR ((void)0) -#endif // ARCH - -#ifndef YIELD_PROCESSOR -#warning "Processor yield not supported on this architecture." -#define YIELD_PROCESSOR ((void)0) -#endif - -#define YIELD_THREAD sched_yield() - -#else // Other OS - -#warning "Thread yield not supported on this OS." -#define YIELD_THREAD ((void)0) - -#endif // OS_WIN - -namespace pdfium { -namespace base { -namespace subtle { - -void SpinLock::LockSlow() { - // The value of |kYieldProcessorTries| is cargo culted from TCMalloc, Windows - // critical section defaults, and various other recommendations. - // TODO(jschuh): Further tuning may be warranted. - static const int kYieldProcessorTries = 1000; - // The value of |kYieldThreadTries| is completely made up. - static const int kYieldThreadTries = 10; - int yield_thread_count = 0; - do { - do { - for (int count = 0; count < kYieldProcessorTries; ++count) { - // Let the processor know we're spinning. - YIELD_PROCESSOR; - if (!lock_.load(std::memory_order_relaxed) && - LIKELY(!lock_.exchange(true, std::memory_order_acquire))) - return; - } - - if (yield_thread_count < kYieldThreadTries) { - ++yield_thread_count; - // Give the OS a chance to schedule something on this core. - YIELD_THREAD; - } else { - // At this point, it's likely that the lock is held by a lower priority - // thread that is unavailable to finish its work because of higher - // priority threads spinning here. Sleeping should ensure that they make - // progress. - NOTREACHED(); - } - } while (lock_.load(std::memory_order_relaxed)); - } while (UNLIKELY(lock_.exchange(true, std::memory_order_acquire))); -} - -} // namespace subtle -} // namespace base -} // namespace pdfium diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/spin_lock.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/spin_lock.h deleted file mode 100644 index 5613fd130..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/allocator/partition_allocator/spin_lock.h +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) 2013 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_SPIN_LOCK_H_ -#define THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_SPIN_LOCK_H_ - -#include -#include -#include - -#include "third_party/base/base_export.h" -#include "third_party/base/compiler_specific.h" - -// Spinlock is a simple spinlock class based on the standard CPU primitive of -// atomic increment and decrement of an int at a given memory address. These are -// intended only for very short duration locks and assume a system with multiple -// cores. For any potentially longer wait you should use a real lock, such as -// |base::Lock|. -namespace pdfium { -namespace base { -namespace subtle { - -class BASE_EXPORT SpinLock { - public: - constexpr SpinLock() = default; - ~SpinLock() = default; - using Guard = std::lock_guard; - - ALWAYS_INLINE void lock() { - static_assert(sizeof(lock_) == sizeof(int), - "int and lock_ are different sizes"); - if (LIKELY(!lock_.exchange(true, std::memory_order_acquire))) - return; - LockSlow(); - } - - ALWAYS_INLINE void unlock() { lock_.store(false, std::memory_order_release); } - - private: - // This is called if the initial attempt to acquire the lock fails. It's - // slower, but has a much better scheduling and power consumption behavior. - void LockSlow(); - - std::atomic_int lock_{0}; -}; - -} // namespace subtle -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_ALLOCATOR_PARTITION_ALLOCATOR_SPIN_LOCK_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/base_export.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/base_export.h deleted file mode 100644 index a0d6d9bb7..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/base_export.h +++ /dev/null @@ -1,3 +0,0 @@ -#ifndef BASE_EXPORT -#define BASE_EXPORT -#endif diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/bits.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/bits.h deleted file mode 100644 index 125368388..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/bits.h +++ /dev/null @@ -1,187 +0,0 @@ -// Copyright (c) 2013 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// This file defines some bit utilities. - -#ifndef THIRD_PARTY_BASE_BITS_H_ -#define THIRD_PARTY_BASE_BITS_H_ - -#include -#include - -#include - -#include "third_party/base/compiler_specific.h" -#include "third_party/base/logging.h" - -#if defined(COMPILER_MSVC) -#include -#endif - -namespace pdfium { -namespace base { -namespace bits { - -// Returns true iff |value| is a power of 2. -template ::value>> -constexpr inline bool IsPowerOfTwo(T value) { - // From "Hacker's Delight": Section 2.1 Manipulating Rightmost Bits. - // - // Only positive integers with a single bit set are powers of two. If only one - // bit is set in x (e.g. 0b00000100000000) then |x-1| will have that bit set - // to zero and all bits to its right set to 1 (e.g. 0b00000011111111). Hence - // |x & (x-1)| is 0 iff x is a power of two. - return value > 0 && (value & (value - 1)) == 0; -} - -// Round up |size| to a multiple of alignment, which must be a power of two. -inline size_t Align(size_t size, size_t alignment) { - DCHECK(IsPowerOfTwo(alignment)); - return (size + alignment - 1) & ~(alignment - 1); -} - -// CountLeadingZeroBits(value) returns the number of zero bits following the -// most significant 1 bit in |value| if |value| is non-zero, otherwise it -// returns {sizeof(T) * 8}. -// Example: 00100010 -> 2 -// -// CountTrailingZeroBits(value) returns the number of zero bits preceding the -// least significant 1 bit in |value| if |value| is non-zero, otherwise it -// returns {sizeof(T) * 8}. -// Example: 00100010 -> 1 -// -// C does not have an operator to do this, but fortunately the various -// compilers have built-ins that map to fast underlying processor instructions. -#if defined(COMPILER_MSVC) - -template -ALWAYS_INLINE - typename std::enable_if::value && sizeof(T) <= 4, - unsigned>::type - CountLeadingZeroBits(T x) { - static_assert(bits > 0, "invalid instantiation"); - unsigned long index; - return LIKELY(_BitScanReverse(&index, static_cast(x))) - ? (31 - index - (32 - bits)) - : bits; -} - -template -ALWAYS_INLINE - typename std::enable_if::value && sizeof(T) == 8, - unsigned>::type - CountLeadingZeroBits(T x) { - static_assert(bits > 0, "invalid instantiation"); - unsigned long index; - return LIKELY(_BitScanReverse64(&index, static_cast(x))) - ? (63 - index) - : 64; -} - -template -ALWAYS_INLINE - typename std::enable_if::value && sizeof(T) <= 4, - unsigned>::type - CountTrailingZeroBits(T x) { - static_assert(bits > 0, "invalid instantiation"); - unsigned long index; - return LIKELY(_BitScanForward(&index, static_cast(x))) ? index - : bits; -} - -template -ALWAYS_INLINE - typename std::enable_if::value && sizeof(T) == 8, - unsigned>::type - CountTrailingZeroBits(T x) { - static_assert(bits > 0, "invalid instantiation"); - unsigned long index; - return LIKELY(_BitScanForward64(&index, static_cast(x))) ? index - : 64; -} - -ALWAYS_INLINE uint32_t CountLeadingZeroBits32(uint32_t x) { - return CountLeadingZeroBits(x); -} - -#if defined(ARCH_CPU_64_BITS) - -// MSVC only supplies _BitScanForward64 when building for a 64-bit target. -ALWAYS_INLINE uint64_t CountLeadingZeroBits64(uint64_t x) { - return CountLeadingZeroBits(x); -} - -#endif - -#elif defined(COMPILER_GCC) - -// __builtin_clz has undefined behaviour for an input of 0, even though there's -// clearly a return value that makes sense, and even though some processor clz -// instructions have defined behaviour for 0. We could drop to raw __asm__ to -// do better, but we'll avoid doing that unless we see proof that we need to. -template -ALWAYS_INLINE - typename std::enable_if::value && sizeof(T) <= 8, - unsigned>::type - CountLeadingZeroBits(T value) { - static_assert(bits > 0, "invalid instantiation"); - return LIKELY(value) - ? bits == 64 - ? __builtin_clzll(static_cast(value)) - : __builtin_clz(static_cast(value)) - (32 - bits) - : bits; -} - -template -ALWAYS_INLINE - typename std::enable_if::value && sizeof(T) <= 8, - unsigned>::type - CountTrailingZeroBits(T value) { - return LIKELY(value) ? bits == 64 - ? __builtin_ctzll(static_cast(value)) - : __builtin_ctz(static_cast(value)) - : bits; -} - -ALWAYS_INLINE uint32_t CountLeadingZeroBits32(uint32_t x) { - return CountLeadingZeroBits(x); -} - -#if defined(ARCH_CPU_64_BITS) - -ALWAYS_INLINE uint64_t CountLeadingZeroBits64(uint64_t x) { - return CountLeadingZeroBits(x); -} - -#endif - -#endif - -ALWAYS_INLINE size_t CountLeadingZeroBitsSizeT(size_t x) { - return CountLeadingZeroBits(x); -} - -ALWAYS_INLINE size_t CountTrailingZeroBitsSizeT(size_t x) { - return CountTrailingZeroBits(x); -} - -// Returns the integer i such as 2^i <= n < 2^(i+1) -inline int Log2Floor(uint32_t n) { - return 31 - CountLeadingZeroBits(n); -} - -// Returns the integer i such as 2^(i-1) < n <= 2^i -inline int Log2Ceiling(uint32_t n) { - // When n == 0, we want the function to return -1. - // When n == 0, (n - 1) will underflow to 0xFFFFFFFF, which is - // why the statement below starts with (n ? 32 : -1). - return (n ? 32 : -1) - CountLeadingZeroBits(n - 1); -} - -} // namespace bits -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_BITS_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/compiler_specific.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/compiler_specific.h deleted file mode 100644 index 947cbf3df..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/compiler_specific.h +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_COMPILER_SPECIFIC_H_ -#define THIRD_PARTY_BASE_COMPILER_SPECIFIC_H_ - -#include "build/build_config.h" - -// Annotate a variable indicating it's ok if the variable is not used. -// (Typically used to silence a compiler warning when the assignment -// is important for some other reason.) -// Use like: -// int x = ...; -// ALLOW_UNUSED_LOCAL(x); -#define ALLOW_UNUSED_LOCAL(x) (void)x - -// Annotate a typedef or function indicating it's ok if it's not used. -// Use like: -// typedef Foo Bar ALLOW_UNUSED_TYPE; -#if defined(COMPILER_GCC) || defined(__clang__) -#define ALLOW_UNUSED_TYPE __attribute__((unused)) -#else -#define ALLOW_UNUSED_TYPE -#endif - -// Annotate a function indicating it should not be inlined. -// Use like: -// NOINLINE void DoStuff() { ... } -#if defined(COMPILER_GCC) -#define NOINLINE __attribute__((noinline)) -#elif defined(COMPILER_MSVC) -#define NOINLINE __declspec(noinline) -#else -#define NOINLINE -#endif - -#if defined(COMPILER_GCC) && defined(NDEBUG) -#define ALWAYS_INLINE inline __attribute__((__always_inline__)) -#elif defined(COMPILER_MSVC) && defined(NDEBUG) -#define ALWAYS_INLINE __forceinline -#else -#define ALWAYS_INLINE inline -#endif - -// Specify memory alignment for structs, classes, etc. -// Use like: -// class ALIGNAS(16) MyClass { ... } -// ALIGNAS(16) int array[4]; -// -// In most places you can use the C++11 keyword "alignas", which is preferred. -// -// But compilers have trouble mixing __attribute__((...)) syntax with -// alignas(...) syntax. -// -// Doesn't work in clang or gcc: -// struct alignas(16) __attribute__((packed)) S { char c; }; -// Works in clang but not gcc: -// struct __attribute__((packed)) alignas(16) S2 { char c; }; -// Works in clang and gcc: -// struct alignas(16) S3 { char c; } __attribute__((packed)); -// -// There are also some attributes that must be specified *before* a class -// definition: visibility (used for exporting functions/classes) is one of -// these attributes. This means that it is not possible to use alignas() with a -// class that is marked as exported. -#if defined(COMPILER_MSVC) -#define ALIGNAS(byte_alignment) __declspec(align(byte_alignment)) -#elif defined(COMPILER_GCC) -#define ALIGNAS(byte_alignment) __attribute__((aligned(byte_alignment))) -#endif - -// Annotate a function indicating the caller must examine the return value. -// Use like: -// int foo() WARN_UNUSED_RESULT; -// To explicitly ignore a result, see |ignore_result()| in base/macros.h. -#undef WARN_UNUSED_RESULT -#if defined(COMPILER_GCC) || defined(__clang__) -#define WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -#define WARN_UNUSED_RESULT -#endif - -// Tell the compiler a function is using a printf-style format string. -// |format_param| is the one-based index of the format string parameter; -// |dots_param| is the one-based index of the "..." parameter. -// For v*printf functions (which take a va_list), pass 0 for dots_param. -// (This is undocumented but matches what the system C headers do.) -#if defined(COMPILER_GCC) || defined(__clang__) -#define PRINTF_FORMAT(format_param, dots_param) \ - __attribute__((format(printf, format_param, dots_param))) -#else -#define PRINTF_FORMAT(format_param, dots_param) -#endif - -// WPRINTF_FORMAT is the same, but for wide format strings. -// This doesn't appear to yet be implemented in any compiler. -// See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38308 . -#define WPRINTF_FORMAT(format_param, dots_param) -// If available, it would look like: -// __attribute__((format(wprintf, format_param, dots_param))) - -// Sanitizers annotations. -#if defined(__has_attribute) -#if __has_attribute(no_sanitize) -#define NO_SANITIZE(what) __attribute__((no_sanitize(what))) -#endif -#endif -#if !defined(NO_SANITIZE) -#define NO_SANITIZE(what) -#endif - -// MemorySanitizer annotations. -#if defined(MEMORY_SANITIZER) && !defined(OS_NACL) -#include - -// Mark a memory region fully initialized. -// Use this to annotate code that deliberately reads uninitialized data, for -// example a GC scavenging root set pointers from the stack. -#define MSAN_UNPOISON(p, size) __msan_unpoison(p, size) - -// Check a memory region for initializedness, as if it was being used here. -// If any bits are uninitialized, crash with an MSan report. -// Use this to sanitize data which MSan won't be able to track, e.g. before -// passing data to another process via shared memory. -#define MSAN_CHECK_MEM_IS_INITIALIZED(p, size) \ - __msan_check_mem_is_initialized(p, size) -#else // MEMORY_SANITIZER -#define MSAN_UNPOISON(p, size) -#define MSAN_CHECK_MEM_IS_INITIALIZED(p, size) -#endif // MEMORY_SANITIZER - -// DISABLE_CFI_PERF -- Disable Control Flow Integrity for perf reasons. -#if !defined(DISABLE_CFI_PERF) -#if defined(__clang__) && defined(OFFICIAL_BUILD) -#define DISABLE_CFI_PERF __attribute__((no_sanitize("cfi"))) -#else -#define DISABLE_CFI_PERF -#endif -#endif - -// Macro useful for writing cross-platform function pointers. -#if !defined(CDECL) -#if defined(OS_WIN) -#define CDECL __cdecl -#else // defined(OS_WIN) -#define CDECL -#endif // defined(OS_WIN) -#endif // !defined(CDECL) - -// Macro for hinting that an expression is likely to be false. -#if !defined(UNLIKELY) -#if defined(COMPILER_GCC) || defined(__clang__) -#define UNLIKELY(x) __builtin_expect(!!(x), 0) -#else -#define UNLIKELY(x) (x) -#endif // defined(COMPILER_GCC) -#endif // !defined(UNLIKELY) - -#if !defined(LIKELY) -#if defined(COMPILER_GCC) || defined(__clang__) -#define LIKELY(x) __builtin_expect(!!(x), 1) -#else -#define LIKELY(x) (x) -#endif // defined(COMPILER_GCC) -#endif // !defined(LIKELY) - -// Compiler feature-detection. -// clang.llvm.org/docs/LanguageExtensions.html#has-feature-and-has-extension -#if defined(__has_feature) -#define HAS_FEATURE(FEATURE) __has_feature(FEATURE) -#else -#define HAS_FEATURE(FEATURE) 0 -#endif - -// Macro for telling -Wimplicit-fallthrough that a fallthrough is intentional. -#if defined(__clang__) -#define FALLTHROUGH [[clang::fallthrough]] -#else -#define FALLTHROUGH -#endif - -#endif // THIRD_PARTY_BASE_COMPILER_SPECIFIC_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/containers/adapters.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/containers/adapters.h deleted file mode 100644 index 0f65ea00b..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/containers/adapters.h +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_CONTAINERS_ADAPTERS_H_ -#define THIRD_PARTY_BASE_CONTAINERS_ADAPTERS_H_ - -#include - -#include -#include - -namespace pdfium { -namespace base { - -namespace internal { - -// Internal adapter class for implementing base::Reversed. -template -class ReversedAdapter { - public: - using Iterator = decltype(std::rbegin(std::declval())); - - explicit ReversedAdapter(T& t) : t_(t) {} - ReversedAdapter(const ReversedAdapter& ra) : t_(ra.t_) {} - ReversedAdapter& operator=(const ReversedAdapter&) = delete; - - Iterator begin() const { return std::rbegin(t_); } - Iterator end() const { return std::rend(t_); } - - private: - T& t_; -}; - -} // namespace internal - -// Reversed returns a container adapter usable in a range-based "for" statement -// for iterating a reversible container in reverse order. -// -// Example: -// -// std::vector v = ...; -// for (int i : base::Reversed(v)) { -// // iterates through v from back to front -// } -template -internal::ReversedAdapter Reversed(T& t) { - return internal::ReversedAdapter(t); -} - -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_CONTAINERS_ADAPTERS_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/debug/alias.cc b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/debug/alias.cc deleted file mode 100644 index 6ee2ee975..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/debug/alias.cc +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "third_party/base/debug/alias.h" - -#include "build/build_config.h" - -namespace pdfium { -namespace base { -namespace debug { - -#if defined(COMPILER_MSVC) -#pragma optimize("", off) -#elif defined(__clang__) -#pragma clang optimize off -#endif - -void Alias(const void* var) { -} - -#if defined(COMPILER_MSVC) -#pragma optimize("", on) -#elif defined(__clang__) -#pragma clang optimize on -#endif - -} // namespace debug -} // namespace base -} // namespace pdfium diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/debug/alias.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/debug/alias.h deleted file mode 100644 index 8228a6fc9..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/debug/alias.h +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_DEBUG_ALIAS_H_ -#define THIRD_PARTY_BASE_DEBUG_ALIAS_H_ - -namespace pdfium { -namespace base { -namespace debug { - -// Make the optimizer think that var is aliased. This is to prevent it from -// optimizing out local variables that would not otherwise be live at the point -// of a potential crash. -// base::debug::Alias should only be used for local variables, not globals, -// object members, or function return values - these must be copied to locals if -// you want to ensure they are recorded in crash dumps. -// Note that if the local variable is a pointer then its value will be retained -// but the memory that it points to will probably not be saved in the crash -// dump - by default only stack memory is saved. Therefore the aliasing -// technique is usually only worthwhile with non-pointer variables. If you have -// a pointer to an object and you want to retain the object's state you need to -// copy the object or its fields to local variables. Example usage: -// int last_error = err_; -// base::debug::Alias(&last_error); -// DEBUG_ALIAS_FOR_CSTR(name_copy, p->name, 16); -// CHECK(false); -void Alias(const void* var); - -} // namespace debug -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_DEBUG_ALIAS_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/immediate_crash.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/immediate_crash.h deleted file mode 100644 index 81f18cc0b..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/immediate_crash.h +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright 2019 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_IMMEDIATE_CRASH_H_ -#define THIRD_PARTY_BASE_IMMEDIATE_CRASH_H_ - -#include "build/build_config.h" - -// Crashes in the fastest possible way with no attempt at logging. -// There are several constraints; see http://crbug.com/664209 for more context. -// -// - TRAP_SEQUENCE_() must be fatal. It should not be possible to ignore the -// resulting exception or simply hit 'continue' to skip over it in a debugger. -// - Different instances of TRAP_SEQUENCE_() must not be folded together, to -// ensure crash reports are debuggable. Unlike __builtin_trap(), asm volatile -// blocks will not be folded together. -// Note: TRAP_SEQUENCE_() previously required an instruction with a unique -// nonce since unlike clang, GCC folds together identical asm volatile -// blocks. -// - TRAP_SEQUENCE_() must produce a signal that is distinct from an invalid -// memory access. -// - TRAP_SEQUENCE_() must be treated as a set of noreturn instructions. -// __builtin_unreachable() is used to provide that hint here. clang also uses -// this as a heuristic to pack the instructions in the function epilogue to -// improve code density. -// -// Additional properties that are nice to have: -// - TRAP_SEQUENCE_() should be as compact as possible. -// - The first instruction of TRAP_SEQUENCE_() should not change, to avoid -// shifting crash reporting clusters. As a consequence of this, explicit -// assembly is preferred over intrinsics. -// Note: this last bullet point may no longer be true, and may be removed in -// the future. - -// Note: TRAP_SEQUENCE Is currently split into two macro helpers due to the fact -// that clang emits an actual instruction for __builtin_unreachable() on certain -// platforms (see https://crbug.com/958675). In addition, the int3/bkpt/brk will -// be removed in followups, so splitting it up like this now makes it easy to -// land the followups. - -#if defined(COMPILER_GCC) - -#if defined(OS_NACL) - -// Crash report accuracy is not guaranteed on NaCl. -#define TRAP_SEQUENCE1_() __builtin_trap() -#define TRAP_SEQUENCE2_() asm volatile("") - -#elif defined(ARCH_CPU_X86_FAMILY) - -// TODO(https://crbug.com/958675): In theory, it should be possible to use just -// int3. However, there are a number of crashes with SIGILL as the exception -// code, so it seems likely that there's a signal handler that allows execution -// to continue after SIGTRAP. -#define TRAP_SEQUENCE1_() asm volatile("int3") - -#if defined(OS_APPLE) -// Intentionally empty: __builtin_unreachable() is always part of the sequence -// (see IMMEDIATE_CRASH below) and already emits a ud2 on Mac. -#define TRAP_SEQUENCE2_() asm volatile("") -#else -#define TRAP_SEQUENCE2_() asm volatile("ud2") -#endif // defined(OS_APPLE) - -#elif defined(ARCH_CPU_ARMEL) - -// bkpt will generate a SIGBUS when running on armv7 and a SIGTRAP when running -// as a 32 bit userspace app on arm64. There doesn't seem to be any way to -// cause a SIGTRAP from userspace without using a syscall (which would be a -// problem for sandboxing). -// TODO(https://crbug.com/958675): Remove bkpt from this sequence. -#define TRAP_SEQUENCE1_() asm volatile("bkpt #0") -#define TRAP_SEQUENCE2_() asm volatile("udf #0") - -#elif defined(ARCH_CPU_ARM64) - -// This will always generate a SIGTRAP on arm64. -// TODO(https://crbug.com/958675): Remove brk from this sequence. -#define TRAP_SEQUENCE1_() asm volatile("brk #0") -#define TRAP_SEQUENCE2_() asm volatile("hlt #0") - -#else - -// Crash report accuracy will not be guaranteed on other architectures, but at -// least this will crash as expected. -#define TRAP_SEQUENCE1_() __builtin_trap() -#define TRAP_SEQUENCE2_() asm volatile("") - -#endif // ARCH_CPU_* - -#elif defined(COMPILER_MSVC) - -#if !defined(__clang__) - -// MSVC x64 doesn't support inline asm, so use the MSVC intrinsic. -#define TRAP_SEQUENCE1_() __debugbreak() -#define TRAP_SEQUENCE2_() - -#elif defined(ARCH_CPU_ARM64) - -// Windows ARM64 uses "BRK #F000" as its breakpoint instruction, and -// __debugbreak() generates that in both VC++ and clang. -#define TRAP_SEQUENCE1_() __debugbreak() -// Intentionally empty: __builtin_unreachable() is always part of the sequence -// (see IMMEDIATE_CRASH below) and already emits a ud2 on Win64, -// https://crbug.com/958373 -#define TRAP_SEQUENCE2_() __asm volatile("") - -#else - -#define TRAP_SEQUENCE1_() asm volatile("int3") -#define TRAP_SEQUENCE2_() asm volatile("ud2") - -#endif // __clang__ - -#else - -#error No supported trap sequence! - -#endif // COMPILER_GCC - -#define TRAP_SEQUENCE_() \ - do { \ - TRAP_SEQUENCE1_(); \ - TRAP_SEQUENCE2_(); \ - } while (false) - -// CHECK() and the trap sequence can be invoked from a constexpr function. -// This could make compilation fail on GCC, as it forbids directly using inline -// asm inside a constexpr function. However, it allows calling a lambda -// expression including the same asm. -// The side effect is that the top of the stacktrace will not point to the -// calling function, but to this anonymous lambda. This is still useful as the -// full name of the lambda will typically include the name of the function that -// calls CHECK() and the debugger will still break at the right line of code. -#if !defined(COMPILER_GCC) - -#define WRAPPED_TRAP_SEQUENCE_() TRAP_SEQUENCE_() - -#else - -#define WRAPPED_TRAP_SEQUENCE_() \ - do { \ - [] { TRAP_SEQUENCE_(); }(); \ - } while (false) - -#endif // !defined(COMPILER_GCC) - -#if defined(__clang__) || defined(COMPILER_GCC) - -// __builtin_unreachable() hints to the compiler that this is noreturn and can -// be packed in the function epilogue. -#define IMMEDIATE_CRASH() \ - ({ \ - WRAPPED_TRAP_SEQUENCE_(); \ - __builtin_unreachable(); \ - }) - -#else - -// This is supporting non-chromium user of logging.h to build with MSVC, like -// pdfium. On MSVC there is no __builtin_unreachable(). -#define IMMEDIATE_CRASH() WRAPPED_TRAP_SEQUENCE_() - -#endif // defined(__clang__) || defined(COMPILER_GCC) - -#endif // THIRD_PARTY_BASE_IMMEDIATE_CRASH_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/logging.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/logging.h deleted file mode 100644 index 967eb3816..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/logging.h +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2014 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_LOGGING_H_ -#define THIRD_PARTY_BASE_LOGGING_H_ - -#include - -#include "build/build_config.h" -#include "third_party/base/compiler_specific.h" -#include "third_party/base/immediate_crash.h" - -#define CHECK(condition) \ - do { \ - if (UNLIKELY(!(condition))) { \ - IMMEDIATE_CRASH(); \ - } \ - } while (0) - -#if defined(NDEBUG) && !defined(DCHECK_ALWAYS_ON) -#define DCHECK_IS_ON() 0 -#else -#define DCHECK_IS_ON() 1 -#endif - -// Debug mode: Use assert() for better diagnostics -// Release mode, DCHECK_ALWAYS_ON: Use CHECK() since assert() is a no-op. -// Release mode, no DCHECK_ALWAYS_ON: Use assert(), which is a no-op. -#if defined(NDEBUG) && defined(DCHECK_ALWAYS_ON) -#define DCHECK CHECK -#else -#define DCHECK assert -#endif - -#define CHECK_EQ(x, y) CHECK((x) == (y)) -#define CHECK_NE(x, y) CHECK((x) != (y)) -#define DCHECK_EQ(x, y) DCHECK((x) == (y)) -#define DCHECK_NE(x, y) DCHECK((x) != (y)) -#define NOTREACHED() DCHECK(false) - -#endif // THIRD_PARTY_BASE_LOGGING_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/memory/aligned_memory.cc b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/memory/aligned_memory.cc deleted file mode 100644 index 3cacf3f71..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/memory/aligned_memory.cc +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "third_party/base/memory/aligned_memory.h" - -#include "build/build_config.h" -#include "third_party/base/logging.h" - -#if defined(OS_ANDROID) -#include -#endif - -namespace pdfium { -namespace base { - -void* AlignedAlloc(size_t size, size_t alignment) { - DCHECK(size > 0U); - DCHECK(bits::IsPowerOfTwo(alignment)); - DCHECK_EQ(alignment % sizeof(void*), 0U); - void* ptr = nullptr; -#if defined(COMPILER_MSVC) - ptr = _aligned_malloc(size, alignment); -#elif defined(OS_ANDROID) - // Android technically supports posix_memalign(), but does not expose it in - // the current version of the library headers used by Chrome. Luckily, - // memalign() on Android returns pointers which can safely be used with - // free(), so we can use it instead. Issue filed to document this: - // http://code.google.com/p/android/issues/detail?id=35391 - ptr = memalign(alignment, size); -#else - int ret = posix_memalign(&ptr, alignment, size); - if (ret != 0) { - ptr = nullptr; - } -#endif - - // Since aligned allocations may fail for non-memory related reasons, force a - // crash if we encounter a failed allocation; maintaining consistent behavior - // with a normal allocation failure in Chrome. - if (!ptr) { - CHECK(false); - } - // Sanity check alignment just to be safe. - DCHECK(IsAligned(ptr, alignment)); - return ptr; -} - -} // namespace base -} // namespace pdfium diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/memory/aligned_memory.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/memory/aligned_memory.h deleted file mode 100644 index 06241a509..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/memory/aligned_memory.h +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_MEMORY_ALIGNED_MEMORY_H_ -#define THIRD_PARTY_BASE_MEMORY_ALIGNED_MEMORY_H_ - -#include -#include - -#include - -#include "build/build_config.h" -#include "third_party/base/base_export.h" -#include "third_party/base/bits.h" - -#if defined(COMPILER_MSVC) -#include -#else -#include -#endif - -// A runtime sized aligned allocation can be created: -// -// float* my_array = static_cast(AlignedAlloc(size, alignment)); -// -// // ... later, to release the memory: -// AlignedFree(my_array); -// -// Or using unique_ptr: -// -// std::unique_ptr my_array( -// static_cast(AlignedAlloc(size, alignment))); - -namespace pdfium { -namespace base { - -// This can be replaced with std::aligned_alloc when we have C++17. -// Caveat: std::aligned_alloc requires the size parameter be an integral -// multiple of alignment. -BASE_EXPORT void* AlignedAlloc(size_t size, size_t alignment); - -inline void AlignedFree(void* ptr) { -#if defined(COMPILER_MSVC) - _aligned_free(ptr); -#else - free(ptr); -#endif -} - -// Deleter for use with unique_ptr. E.g., use as -// std::unique_ptr foo; -struct AlignedFreeDeleter { - inline void operator()(void* ptr) const { - AlignedFree(ptr); - } -}; - -#ifdef __has_builtin -#define SUPPORTS_BUILTIN_IS_ALIGNED (__has_builtin(__builtin_is_aligned)) -#else -#define SUPPORTS_BUILTIN_IS_ALIGNED 0 -#endif - -inline bool IsAligned(uintptr_t val, size_t alignment) { - // If the compiler supports builtin alignment checks prefer them. -#if SUPPORTS_BUILTIN_IS_ALIGNED - return __builtin_is_aligned(val, alignment); -#else - DCHECK(bits::IsPowerOfTwo(alignment)); - return (val & (alignment - 1)) == 0; -#endif -} - -#undef SUPPORTS_BUILTIN_IS_ALIGNED - -inline bool IsAligned(void* val, size_t alignment) { - return IsAligned(reinterpret_cast(val), alignment); -} - -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_MEMORY_ALIGNED_MEMORY_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/no_destructor.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/no_destructor.h deleted file mode 100644 index d9ff32e64..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/no_destructor.h +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright 2018 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_NO_DESTRUCTOR_H_ -#define THIRD_PARTY_BASE_NO_DESTRUCTOR_H_ - -#include -#include - -namespace pdfium { -namespace base { - -// A wrapper that makes it easy to create an object of type T with static -// storage duration that: -// - is only constructed on first access -// - never invokes the destructor -// in order to satisfy the styleguide ban on global constructors and -// destructors. -// -// Runtime constant example: -// const std::string& GetLineSeparator() { -// // Forwards to std::string(size_t, char, const Allocator&) constructor. -// static const base::NoDestructor s(5, '-'); -// return *s; -// } -// -// More complex initialization with a lambda: -// const std::string& GetSessionNonce() { -// static const base::NoDestructor nonce([] { -// std::string s(16); -// crypto::RandString(s.data(), s.size()); -// return s; -// }()); -// return *nonce; -// } -// -// NoDestructor stores the object inline, so it also avoids a pointer -// indirection and a malloc. Also note that since C++11 static local variable -// initialization is thread-safe and so is this pattern. Code should prefer to -// use NoDestructor over: -// - A function scoped static T* or T& that is dynamically initialized. -// - A global base::LazyInstance. -// -// Note that since the destructor is never run, this *will* leak memory if used -// as a stack or member variable. Furthermore, a NoDestructor should never -// have global scope as that may require a static initializer. -template -class NoDestructor { - public: - // Not constexpr; just write static constexpr T x = ...; if the value should - // be a constexpr. - template - explicit NoDestructor(Args&&... args) { - new (storage_) T(std::forward(args)...); - } - - // Allows copy and move construction of the contained type, to allow - // construction from an initializer list, e.g. for std::vector. - explicit NoDestructor(const T& x) { new (storage_) T(x); } - explicit NoDestructor(T&& x) { new (storage_) T(std::move(x)); } - - NoDestructor(const NoDestructor&) = delete; - NoDestructor& operator=(const NoDestructor&) = delete; - - ~NoDestructor() = default; - - const T& operator*() const { return *get(); } - T& operator*() { return *get(); } - - const T* operator->() const { return get(); } - T* operator->() { return get(); } - - const T* get() const { return reinterpret_cast(storage_); } - T* get() { return reinterpret_cast(storage_); } - - private: - alignas(T) char storage_[sizeof(T)]; - -#if defined(LEAK_SANITIZER) - // TODO(https://crbug.com/812277): This is a hack to work around the fact - // that LSan doesn't seem to treat NoDestructor as a root for reachability - // analysis. This means that code like this: - // static base::NoDestructor> v({1, 2, 3}); - // is considered a leak. Using the standard leak sanitizer annotations to - // suppress leaks doesn't work: std::vector is implicitly constructed before - // calling the base::NoDestructor constructor. - // - // Unfortunately, I haven't been able to demonstrate this issue in simpler - // reproductions: until that's resolved, hold an explicit pointer to the - // placement-new'd object in leak sanitizer mode to help LSan realize that - // objects allocated by the contained type are still reachable. - T* storage_ptr_ = reinterpret_cast(storage_); -#endif // defined(LEAK_SANITIZER) -}; - -} // namespace base -} // namespace pdfium - -#endif // THIRD_PARTY_BASE_NO_DESTRUCTOR_H_ diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/numerics/OWNERS b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/numerics/OWNERS deleted file mode 100644 index f7816afe8..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/numerics/OWNERS +++ /dev/null @@ -1,3 +0,0 @@ -jschuh@chromium.org -tsepez@chromium.org -palmer@chromium.org diff --git a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/numerics/checked_math.h b/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/numerics/checked_math.h deleted file mode 100644 index 2da3677b6..000000000 --- a/3rdparty/deepin-pdfium/src/3rdparty/pdfium/pdfium/base/numerics/checked_math.h +++ /dev/null @@ -1,395 +0,0 @@ -// Copyright 2017 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef THIRD_PARTY_BASE_NUMERICS_CHECKED_MATH_H_ -#define THIRD_PARTY_BASE_NUMERICS_CHECKED_MATH_H_ - -#include - -#include -#include - -#include "third_party/base/numerics/checked_math_impl.h" - -namespace pdfium { -namespace base { -namespace internal { - -template -class CheckedNumeric { - static_assert(std::is_arithmetic::value, - "CheckedNumeric: T must be a numeric type."); - - public: - using type = T; - - constexpr CheckedNumeric() = default; - - // Copy constructor. - template - constexpr CheckedNumeric(const CheckedNumeric& rhs) - : state_(rhs.state_.value(), rhs.IsValid()) {} - - template - friend class CheckedNumeric; - - // This is not an explicit constructor because we implicitly upgrade regular - // numerics to CheckedNumerics to make them easier to use. - template - constexpr CheckedNumeric(Src value) // NOLINT(runtime/explicit) - : state_(value) { - static_assert(std::is_arithmetic::value, "Argument must be numeric."); - } - - // This is not an explicit constructor because we want a seamless conversion - // from StrictNumeric types. - template - constexpr CheckedNumeric( - StrictNumeric value) // NOLINT(runtime/explicit) - : state_(static_cast(value)) {} - - // IsValid() - The public API to test if a CheckedNumeric is currently valid. - // A range checked destination type can be supplied using the Dst template - // parameter. - template - constexpr bool IsValid() const { - return state_.is_valid() && - IsValueInRangeForNumericType(state_.value()); - } - - // AssignIfValid(Dst) - Assigns the underlying value if it is currently valid - // and is within the range supported by the destination type. Returns true if - // successful and false otherwise. - template -#if defined(__clang__) || defined(__GNUC__) - __attribute__((warn_unused_result)) -#elif defined(_MSC_VER) - _Check_return_ -#endif - constexpr bool - AssignIfValid(Dst* result) const { - return BASE_NUMERICS_LIKELY(IsValid()) - ? ((*result = static_cast(state_.value())), true) - : false; - } - - // ValueOrDie() - The primary accessor for the underlying value. If the - // current state is not valid it will CHECK and crash. - // A range checked destination type can be supplied using the Dst template - // parameter, which will trigger a CHECK if the value is not in bounds for - // the destination. - // The CHECK behavior can be overridden by supplying a handler as a - // template parameter, for test code, etc. However, the handler cannot access - // the underlying value, and it is not available through other means. - template - constexpr StrictNumeric ValueOrDie() const { - return BASE_NUMERICS_LIKELY(IsValid()) - ? static_cast(state_.value()) - : CheckHandler::template HandleFailure(); - } - - // ValueOrDefault(T default_value) - A convenience method that returns the - // current value if the state is valid, and the supplied default_value for - // any other state. - // A range checked destination type can be supplied using the Dst template - // parameter. WARNING: This function may fail to compile or CHECK at runtime - // if the supplied default_value is not within range of the destination type. - template - constexpr StrictNumeric ValueOrDefault(const Src default_value) const { - return BASE_NUMERICS_LIKELY(IsValid()) - ? static_cast(state_.value()) - : checked_cast(default_value); - } - - // Returns a checked numeric of the specified type, cast from the current - // CheckedNumeric. If the current state is invalid or the destination cannot - // represent the result then the returned CheckedNumeric will be invalid. - template - constexpr CheckedNumeric::type> Cast() const { - return *this; - } - - // This friend method is available solely for providing more detailed logging - // in the the tests. Do not implement it in production code, because the - // underlying values may change at any time. - template - friend U GetNumericValueForTest(const CheckedNumeric& src); - - // Prototypes for the supported arithmetic operator overloads. - template - constexpr CheckedNumeric& operator+=(const Src rhs); - template - constexpr CheckedNumeric& operator-=(const Src rhs); - template - constexpr CheckedNumeric& operator*=(const Src rhs); - template - constexpr CheckedNumeric& operator/=(const Src rhs); - template - constexpr CheckedNumeric& operator%=(const Src rhs); - template - constexpr CheckedNumeric& operator<<=(const Src rhs); - template - constexpr CheckedNumeric& operator>>=(const Src rhs); - template - constexpr CheckedNumeric& operator&=(const Src rhs); - template - constexpr CheckedNumeric& operator|=(const Src rhs); - template - constexpr CheckedNumeric& operator^=(const Src rhs); - - constexpr CheckedNumeric operator-() const { - // The negation of two's complement int min is int min, so we simply - // check for that in the constexpr case. - // We use an optimized code path for a known run-time variable. - return MustTreatAsConstexpr(state_.value()) || !std::is_signed::value || - std::is_floating_point::value - ? CheckedNumeric( - NegateWrapper(state_.value()), - IsValid() && (!std::is_signed::value || - std::is_floating_point::value || - NegateWrapper(state_.value()) != - std::numeric_limits::lowest())) - : FastRuntimeNegate(); - } - - constexpr CheckedNumeric operator~() const { - return CheckedNumeric( - InvertWrapper(state_.value()), IsValid()); - } - - constexpr CheckedNumeric Abs() const { - return !IsValueNegative(state_.value()) ? *this : -*this; - } - - template - constexpr CheckedNumeric::type> Max( - const U rhs) const { - using R = typename UnderlyingType::type; - using result_type = typename MathWrapper::type; - // TODO(jschuh): This can be converted to the MathOp version and remain - // constexpr once we have C++14 support. - return CheckedNumeric( - static_cast( - IsGreater::Test(state_.value(), Wrapper::value(rhs)) - ? state_.value() - : Wrapper::value(rhs)), - state_.is_valid() && Wrapper::is_valid(rhs)); - } - - template - constexpr CheckedNumeric::type> Min( - const U rhs) const { - using R = typename UnderlyingType::type; - using result_type = typename MathWrapper::type; - // TODO(jschuh): This can be converted to the MathOp version and remain - // constexpr once we have C++14 support. - return CheckedNumeric( - static_cast( - IsLess::Test(state_.value(), Wrapper::value(rhs)) - ? state_.value() - : Wrapper::value(rhs)), - state_.is_valid() && Wrapper::is_valid(rhs)); - } - - // This function is available only for integral types. It returns an unsigned - // integer of the same width as the source type, containing the absolute value - // of the source, and properly handling signed min. - constexpr CheckedNumeric::type> - UnsignedAbs() const { - return CheckedNumeric::type>( - SafeUnsignedAbs(state_.value()), state_.is_valid()); - } - - constexpr CheckedNumeric& operator++() { - *this += 1; - return *this; - } - - constexpr CheckedNumeric operator++(int) { - CheckedNumeric value = *this; - *this += 1; - return value; - } - - constexpr CheckedNumeric& operator--() { - *this -= 1; - return *this; - } - - constexpr CheckedNumeric operator--(int) { - CheckedNumeric value = *this; - *this -= 1; - return value; - } - - // These perform the actual math operations on the CheckedNumerics. - // Binary arithmetic operations. - template