summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_thisproxy.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 /xfa/fxfa/parser/cxfa_thisproxy.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 'xfa/fxfa/parser/cxfa_thisproxy.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_thisproxy.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/xfa/fxfa/parser/cxfa_thisproxy.cpp b/xfa/fxfa/parser/cxfa_thisproxy.cpp
index a3593e99b5..60a90b0931 100644
--- a/xfa/fxfa/parser/cxfa_thisproxy.cpp
+++ b/xfa/fxfa/parser/cxfa_thisproxy.cpp
@@ -10,15 +10,9 @@
#include "third_party/base/ptr_util.h"
#include "xfa/fxfa/parser/cxfa_node.h"
-// static
-CXFA_ThisProxy* CXFA_ThisProxy::FromCXFAObject(CXFA_Object* that) {
- return that && that->IsVariablesThis() ? static_cast<CXFA_ThisProxy*>(that)
- : nullptr;
-}
-
CXFA_ThisProxy::CXFA_ThisProxy(CXFA_Node* pThisNode, CXFA_Node* pScriptNode)
: CXFA_Object(pThisNode->GetDocument(),
- XFA_ObjectType::VariablesThis,
+ XFA_ObjectType::ThisProxy,
XFA_Element::Unknown,
WideStringView(),
pdfium::MakeUnique<CJX_Object>(this)),