summaryrefslogtreecommitdiff
path: root/fxjs/cjs_document.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-06-08 20:43:55 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-08 20:43:55 +0000
commit83b259e52ce289003b1a88ba6d8d5e2a8ac348fe (patch)
treebadf4f3bc728dba169805133cc01a6992d4f59e5 /fxjs/cjs_document.cpp
parentfc615c63d34037896963f636e4b5d9e05efd41de (diff)
downloadpdfium-83b259e52ce289003b1a88ba6d8d5e2a8ac348fe.tar.xz
Remove CJS_Object::InitInstance().
Because constructors can do all this. Change-Id: I4f7ff6c26b17d9bddd326333a66e1bd38b2ea377 Reviewed-on: https://pdfium-review.googlesource.com/34693 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cjs_document.cpp')
-rw-r--r--fxjs/cjs_document.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/fxjs/cjs_document.cpp b/fxjs/cjs_document.cpp
index a259767560..791e9bdfd7 100644
--- a/fxjs/cjs_document.cpp
+++ b/fxjs/cjs_document.cpp
@@ -124,14 +124,12 @@ void CJS_Document::DefineJSObjects(CFXJS_Engine* pEngine) {
}
CJS_Document::CJS_Document(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime)
- : CJS_Object(pObject, pRuntime) {}
-
-CJS_Document::~CJS_Document() = default;
-
-void CJS_Document::InitInstance() {
+ : CJS_Object(pObject, pRuntime) {
SetFormFillEnv(GetRuntime()->GetFormFillEnv());
}
+CJS_Document::~CJS_Document() = default;
+
// The total number of fields in document.
CJS_Return CJS_Document::get_num_fields(CJS_Runtime* pRuntime) {
if (!m_pFormFillEnv)