summaryrefslogtreecommitdiff
path: root/fxjs/cfxjs_engine.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-12 19:07:03 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-12 19:07:03 +0000
commit35d4587eceb07cad6b38675b0ebb4b73eca3a62b (patch)
tree19c84b514dad085d75c76977f1ee9da123748441 /fxjs/cfxjs_engine.cpp
parent8460088891f98a9138718fc9c89bf309eb88580f (diff)
downloadpdfium-35d4587eceb07cad6b38675b0ebb4b73eca3a62b.tar.xz
Remove more unnecessary includes and do IWYU as needed.
Also move some implementations out of headers. Change-Id: I321fc26970c440d874b135bd28e8bc8156b9afee Reviewed-on: https://pdfium-review.googlesource.com/c/43890 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cfxjs_engine.cpp')
-rw-r--r--fxjs/cfxjs_engine.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/fxjs/cfxjs_engine.cpp b/fxjs/cfxjs_engine.cpp
index e127bbed7a..f1dd45016e 100644
--- a/fxjs/cfxjs_engine.cpp
+++ b/fxjs/cfxjs_engine.cpp
@@ -14,6 +14,7 @@
#include "fxjs/cfxjse_runtimedata.h"
#include "fxjs/cjs_object.h"
#include "third_party/base/ptr_util.h"
+#include "third_party/base/stl_util.h"
class CFXJS_PerObjectData;
@@ -299,6 +300,10 @@ FXJS_PerIsolateData* FXJS_PerIsolateData::Get(v8::Isolate* pIsolate) {
pIsolate->GetData(g_embedderDataSlot));
}
+int FXJS_PerIsolateData::MaxObjDefinitionID() const {
+ return pdfium::CollectionSize<int>(m_ObjectDefnArray);
+}
+
FXJS_PerIsolateData::FXJS_PerIsolateData(v8::Isolate* pIsolate)
: m_pDynamicObjsMap(new V8TemplateMap(pIsolate)) {}