summaryrefslogtreecommitdiff
path: root/fxjs/xfa/cjx_node.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-07-25 16:59:38 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-07-25 16:59:38 +0000
commit1f7db295b1deeecb562d6213b3ea17b9168405eb (patch)
tree9e8ab0575b9acd207e8bcf8a7273aa2a4d0948bb /fxjs/xfa/cjx_node.cpp
parent84d3394d88c42b798eedc938e6295ad1bf28ac66 (diff)
downloadpdfium-1f7db295b1deeecb562d6213b3ea17b9168405eb.tar.xz
Move CXFA_ThisProxy helper to CXFA_Object.
Because the other helpers are declared here. Rename VariablesThis to ThisProxy in a few places; VariablesThis is a slightly different concept (see GetVariablesThis()). Then introduce helper for CXFA_List subclass as well. Remove unused const version of some helpers. Change-Id: Ia328d8cd170a8b97015e98c1c770fa8a44810455 Reviewed-on: https://pdfium-review.googlesource.com/38670 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxjs/xfa/cjx_node.cpp')
-rw-r--r--fxjs/xfa/cjx_node.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/fxjs/xfa/cjx_node.cpp b/fxjs/xfa/cjx_node.cpp
index 856fea5267..efef5af87b 100644
--- a/fxjs/xfa/cjx_node.cpp
+++ b/fxjs/xfa/cjx_node.cpp
@@ -103,12 +103,8 @@ CJX_Node::CJX_Node(CXFA_Node* node) : CJX_Tree(node) {
CJX_Node::~CJX_Node() = default;
-CXFA_Node* CJX_Node::GetXFANode() {
- return static_cast<CXFA_Node*>(GetXFAObject());
-}
-
-const CXFA_Node* CJX_Node::GetXFANode() const {
- return static_cast<const CXFA_Node*>(GetXFAObject());
+CXFA_Node* CJX_Node::GetXFANode() const {
+ return ToNode(GetXFAObject());
}
CJS_Return CJX_Node::applyXSL(CFX_V8* runtime,