summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_value.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-10 16:30:56 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-10 16:30:56 +0000
commit18a6069f5ce332b2bab97bf3a6d8ea9528d69791 (patch)
tree3ff25aea65bc9691b05919cec0dc74a6a506d156 /xfa/fxfa/parser/cxfa_value.cpp
parent640d8ffad8536c789103892c7a4e69e5d30172c8 (diff)
downloadpdfium-18a6069f5ce332b2bab97bf3a6d8ea9528d69791.tar.xz
Remove CXFA_Node::GetNodeItem
This CL removes the generic CXFA_Node::GetNodeItem(type) method for specific calls to get the parent, child or siblings. Change-Id: Ief68284ac7b954aaa4ed7120dd82a39f8b52656a Reviewed-on: https://pdfium-review.googlesource.com/22650 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_value.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_value.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/xfa/fxfa/parser/cxfa_value.cpp b/xfa/fxfa/parser/cxfa_value.cpp
index 0998c06364..dc93bba25c 100644
--- a/xfa/fxfa/parser/cxfa_value.cpp
+++ b/xfa/fxfa/parser/cxfa_value.cpp
@@ -57,37 +57,37 @@ CXFA_Value::CXFA_Value(CXFA_Document* doc, XFA_PacketType packet)
CXFA_Value::~CXFA_Value() {}
XFA_Element CXFA_Value::GetChildValueClassID() const {
- CXFA_Node* pNode = GetNodeItem(XFA_NODEITEM_FirstChild);
+ CXFA_Node* pNode = GetFirstChild();
return pNode ? pNode->GetElementType() : XFA_Element::Unknown;
}
WideString CXFA_Value::GetChildValueContent() const {
- CXFA_Node* pNode = GetNodeItem(XFA_NODEITEM_FirstChild);
+ CXFA_Node* pNode = GetFirstChild();
if (!pNode)
return L"";
return pNode->JSObject()->TryContent(false, true).value_or(L"");
}
CXFA_Arc* CXFA_Value::GetArc() const {
- return static_cast<CXFA_Arc*>(GetNodeItem(XFA_NODEITEM_FirstChild));
+ return static_cast<CXFA_Arc*>(GetFirstChild());
}
CXFA_Line* CXFA_Value::GetLine() const {
- return static_cast<CXFA_Line*>(GetNodeItem(XFA_NODEITEM_FirstChild));
+ return static_cast<CXFA_Line*>(GetFirstChild());
}
CXFA_Rectangle* CXFA_Value::GetRectangle() const {
- return static_cast<CXFA_Rectangle*>(GetNodeItem(XFA_NODEITEM_FirstChild));
+ return static_cast<CXFA_Rectangle*>(GetFirstChild());
}
CXFA_Text* CXFA_Value::GetText() const {
- return static_cast<CXFA_Text*>(GetNodeItem(XFA_NODEITEM_FirstChild));
+ return static_cast<CXFA_Text*>(GetFirstChild());
}
CXFA_ExData* CXFA_Value::GetExData() const {
- return static_cast<CXFA_ExData*>(GetNodeItem(XFA_NODEITEM_FirstChild));
+ return static_cast<CXFA_ExData*>(GetFirstChild());
}
CXFA_Image* CXFA_Value::GetImage() const {
- return static_cast<CXFA_Image*>(GetNodeItem(XFA_NODEITEM_FirstChild));
+ return static_cast<CXFA_Image*>(GetFirstChild());
}