diff options
author | dan sinclair <dsinclair@chromium.org> | 2018-04-16 21:24:57 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-16 21:24:57 +0000 |
commit | 8b0cf76f00c6e89e8bb7bf4bcf2189b27baac31c (patch) | |
tree | ec18d4aa800ccd9d32f113f8ec41d89948479ab3 /xfa/fxfa/parser/cxfa_node.cpp | |
parent | 262b496f25be27978abe7d98f20978820ecaeec8 (diff) | |
download | pdfium-8b0cf76f00c6e89e8bb7bf4bcf2189b27baac31c.tar.xz |
Merge CFX_XMLElement and CFX_XMLAttributeNode
CFX_XMLElement is the only subclass of CFX_XMLAttributeNode. This CL
merges the two classes together. The {Set|Get}String method has been
renamed to {Set|Get}Attribute to make it clearer what you're retrieving.
Change-Id: I158c961d4d8c5f563d937a3e7a35321a33622562
Reviewed-on: https://pdfium-review.googlesource.com/30710
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_node.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_node.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_node.cpp b/xfa/fxfa/parser/cxfa_node.cpp index 10f0a40017..7da4ed551d 100644 --- a/xfa/fxfa/parser/cxfa_node.cpp +++ b/xfa/fxfa/parser/cxfa_node.cpp @@ -2662,7 +2662,7 @@ void CXFA_Node::SetImageEdit(const WideString& wsContentType, } else { CFX_XMLNode* pXMLNode = pBind->GetXMLMappingNode(); ASSERT(pXMLNode && pXMLNode->GetType() == FX_XMLNODE_Element); - static_cast<CFX_XMLElement*>(pXMLNode)->SetString(L"href", wsHref); + static_cast<CFX_XMLElement*>(pXMLNode)->SetAttribute(L"href", wsHref); } } @@ -4662,8 +4662,8 @@ void CXFA_Node::SetToXML(const WideString& value) { switch (eXMLType) { case FX_XMLNODE_Element: { if (IsAttributeInXML()) { - elem->SetString(JSObject()->GetCData(XFA_Attribute::QualifiedName), - value); + elem->SetAttribute(JSObject()->GetCData(XFA_Attribute::QualifiedName), + value); return; } |