summaryrefslogtreecommitdiff
path: root/fxjs/cjx_nodelist.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_nodelist.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_nodelist.cpp')
-rw-r--r--fxjs/cjx_nodelist.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/fxjs/cjx_nodelist.cpp b/fxjs/cjx_nodelist.cpp
index 8200e2ef08..9a0c4a27e4 100644
--- a/fxjs/cjx_nodelist.cpp
+++ b/fxjs/cjx_nodelist.cpp
@@ -80,7 +80,7 @@ void CJX_NodeList::Script_ListClass_Item(CFXJSE_Arguments* pArguments) {
return;
}
pArguments->GetReturnValue()->Assign(
- GetXFANodeList()->GetDocument()->GetScriptContext()->GetJSValueFromMap(
+ GetDocument()->GetScriptContext()->GetJSValueFromMap(
GetXFANodeList()->Item(iIndex)));
}
@@ -99,8 +99,7 @@ void CJX_NodeList::Script_TreelistClass_NamedItem(
return;
pArguments->GetReturnValue()->Assign(
- GetXFANodeList()->GetDocument()->GetScriptContext()->GetJSValueFromMap(
- pNode));
+ GetDocument()->GetScriptContext()->GetJSValueFromMap(pNode));
}
void CJX_NodeList::Script_ListClass_Length(CFXJSE_Value* pValue,