Skip to content

Commit 423ee0e

Browse files
committed
V8: update patch
1 parent 9e443ca commit 423ee0e

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

patches/v8/pdfium.patch

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/fpdfsdk/fpdf_view.cpp b/fpdfsdk/fpdf_view.cpp
2-
index 1f876f7ac..a7bdc2fdb 100644
2+
index f747fe11c..602b6c02a 100644
33
--- a/fpdfsdk/fpdf_view.cpp
44
+++ b/fpdfsdk/fpdf_view.cpp
55
@@ -61,6 +61,9 @@
@@ -21,10 +21,10 @@ index 1f876f7ac..a7bdc2fdb 100644
2121
+v8::Isolate* g_isolate = nullptr;
2222
+#endif
2323
+
24-
void SetRendererType(FPDF_RENDERER_TYPE public_type) {
25-
// Internal definition of renderer types must stay updated with respect to
26-
// the public definition, such that all public definitions can be mapped to
27-
@@ -225,6 +233,23 @@ FPDF_InitLibraryWithConfig(const FPDF_LIBRARY_CONFIG* config) {
24+
RetainPtr<const CPDF_Object> GetXFAEntryFromDocument(const CPDF_Document* doc) {
25+
const CPDF_Dictionary* root = doc->GetRoot();
26+
if (!root) {
27+
@@ -197,6 +205,23 @@ FPDF_InitLibraryWithConfig(const FPDF_LIBRARY_CONFIG* config) {
2828
if (g_bLibraryInitialized) {
2929
return;
3030
}
@@ -48,7 +48,7 @@ index 1f876f7ac..a7bdc2fdb 100644
4848
FX_InitializeMemoryAllocators();
4949
CFX_Timer::InitializeGlobals();
5050

51-
@@ -244,11 +269,10 @@ FPDF_InitLibraryWithConfig(const FPDF_LIBRARY_CONFIG* config) {
51+
@@ -238,11 +263,10 @@ FPDF_InitLibraryWithConfig(const FPDF_LIBRARY_CONFIG* config) {
5252
CPDFXFA_ModuleInit();
5353
#endif // PDF_ENABLE_XFA
5454

@@ -61,10 +61,10 @@ index 1f876f7ac..a7bdc2fdb 100644
6161
+ IJS_Runtime::Initialize(0, g_isolate, g_platform);
6262
+#endif // PDF_ENABLE_V8
6363
+
64-
if (config && config->version >= 4) {
65-
SetRendererType(config->m_RendererType);
66-
}
67-
@@ -274,6 +298,19 @@ FPDF_EXPORT void FPDF_CALLCONV FPDF_DestroyLibrary() {
64+
g_bLibraryInitialized = true;
65+
}
66+
67+
@@ -263,6 +287,19 @@ FPDF_EXPORT void FPDF_CALLCONV FPDF_DestroyLibrary() {
6868
CFX_Timer::DestroyGlobals();
6969
FX_DestroyMemoryAllocators();
7070

0 commit comments

Comments
 (0)