diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-06-11 15:55:17 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-06-11 15:55:17 +0000 |
commit | 8b4ddebff061b199f14684f17cac8915bade8fb2 (patch) | |
tree | e8b1f18bec5c1377dfe5a0967e2e6f78c3df9812 /fxjs/cjs_document.cpp | |
parent | 9bc7a213b95439ab91183ac6684bf01e09ae60c1 (diff) | |
download | pdfium-8b4ddebff061b199f14684f17cac8915bade8fb2.tar.xz |
Use spans in CJS_Object.
Avoid explicitly having to count items in arrays.
Change-Id: I24a91db45e8a8530f38afcc273e824ffb70a6cb9
Reviewed-on: https://pdfium-review.googlesource.com/34710
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/cjs_document.cpp')
-rw-r--r-- | fxjs/cjs_document.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fxjs/cjs_document.cpp b/fxjs/cjs_document.cpp index 791e9bdfd7..f5629913c0 100644 --- a/fxjs/cjs_document.cpp +++ b/fxjs/cjs_document.cpp @@ -119,8 +119,8 @@ int CJS_Document::GetObjDefnID() { void CJS_Document::DefineJSObjects(CFXJS_Engine* pEngine) { ObjDefnID = pEngine->DefineObj(CJS_Document::kName, FXJSOBJTYPE_GLOBAL, JSConstructor<CJS_Document>, JSDestructor); - DefineProps(pEngine, ObjDefnID, PropertySpecs, FX_ArraySize(PropertySpecs)); - DefineMethods(pEngine, ObjDefnID, MethodSpecs, FX_ArraySize(MethodSpecs)); + DefineProps(pEngine, ObjDefnID, PropertySpecs); + DefineMethods(pEngine, ObjDefnID, MethodSpecs); } CJS_Document::CJS_Document(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime) |