diff options
Diffstat (limited to 'fxjs/cjs_printparamsobj.cpp')
-rw-r--r-- | fxjs/cjs_printparamsobj.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/fxjs/cjs_printparamsobj.cpp b/fxjs/cjs_printparamsobj.cpp index 7d6a7ea453..91d02201b1 100644 --- a/fxjs/cjs_printparamsobj.cpp +++ b/fxjs/cjs_printparamsobj.cpp @@ -15,9 +15,14 @@ int CJS_PrintParamsObj::GetObjDefnID() { // static void CJS_PrintParamsObj::DefineJSObjects(CFXJS_Engine* pEngine) { - ObjDefnID = pEngine->DefineObj( - "PrintParamsObj", FXJSOBJTYPE_DYNAMIC, - JSConstructor<CJS_PrintParamsObj, PrintParamsObj>, JSDestructor); + ObjDefnID = + pEngine->DefineObj("PrintParamsObj", FXJSOBJTYPE_DYNAMIC, + JSConstructor<CJS_PrintParamsObj>, JSDestructor); +} + +CJS_PrintParamsObj::CJS_PrintParamsObj(v8::Local<v8::Object> pObject) + : CJS_Object(pObject) { + m_pEmbedObj = pdfium::MakeUnique<PrintParamsObj>(this); } PrintParamsObj::PrintParamsObj(CJS_Object* pJSObject) |