11diff --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