summaryrefslogtreecommitdiff
path: root/fxjs/cjx_object.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-01 20:51:27 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-01 20:51:27 +0000
commit14fe518ae67eac22cc169517e69092f62a195913 (patch)
tree5dc56f72eb362ece77e24d01cb58c8536a42c2c2 /fxjs/cjx_object.cpp
parent1bc5e494b675aeb5e73cae1d0d3cfad341a05a60 (diff)
downloadpdfium-14fe518ae67eac22cc169517e69092f62a195913.tar.xz
Add GetDocument() helper to CJX_Object
Change-Id: I710ea0baa1befb093d7174d4fc61a5ab28e9f92a Reviewed-on: https://pdfium-review.googlesource.com/17315 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cjx_object.cpp')
-rw-r--r--fxjs/cjx_object.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/fxjs/cjx_object.cpp b/fxjs/cjx_object.cpp
index a3ba05f1b4..3efab63d48 100644
--- a/fxjs/cjx_object.cpp
+++ b/fxjs/cjx_object.cpp
@@ -13,6 +13,10 @@ CJX_Object::CJX_Object(CXFA_Object* obj) : object_(obj) {}
CJX_Object::~CJX_Object() {}
+CXFA_Document* CJX_Object::GetDocument() const {
+ return object_->GetDocument();
+}
+
void CJX_Object::Script_ObjectClass_ClassName(CFXJSE_Value* pValue,
bool bSetting,
XFA_ATTRIBUTE eAttribute) {