Use fine-grained v8 headers in pdfium
Now that v8.h has been split into many parts, include only the parts
that are needed.
Also update .gn to more accurately reflect the parts of v8 that are now
gn-check-clean.
Bug: v8:11965
Change-Id: Ia38f131b599274ca0deb393e5887e66a2eea164c
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/84950
Auto-Submit: Dan Elphick <delphick@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/fxjs/js_define.cpp b/fxjs/js_define.cpp
index e86330c..c994b1d 100644
--- a/fxjs/js_define.cpp
+++ b/fxjs/js_define.cpp
@@ -19,6 +19,9 @@
#include "fxjs/fx_date_helpers.h"
#include "fxjs/fxv8.h"
#include "third_party/base/check.h"
+#include "v8/include/v8-context.h"
+#include "v8/include/v8-function.h"
+#include "v8/include/v8-isolate.h"
void JSDestructor(v8::Local<v8::Object> obj) {
CFXJS_Engine::SetObjectPrivate(obj, nullptr);