summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_image.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-02 19:09:58 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-02 19:09:58 +0000
commit3ac07ffafea1ee4d3cf985e32692849dd3fcfdfb (patch)
tree3edbd3db87541a57fa0ee172bd50b70d35d45a11 /xfa/fxfa/parser/cxfa_image.cpp
parentbf29e5b532e4ef9a309906083b33b6d4c48ff757 (diff)
downloadpdfium-3ac07ffafea1ee4d3cf985e32692849dd3fcfdfb.tar.xz
Cleanup params to CJX_Node::TryCData
This CL removes the bProto param as it was never set and inlines the value where needed in the methods. The default value was removed from bUseDefault and inlined into callsites as needed. Change-Id: I773261d19aa3799bc607e7df482b5f5e5217bee6 Reviewed-on: https://pdfium-review.googlesource.com/17533 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_image.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_image.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/cxfa_image.cpp b/xfa/fxfa/parser/cxfa_image.cpp
index 8a346e0f42..b0afca0d68 100644
--- a/xfa/fxfa/parser/cxfa_image.cpp
+++ b/xfa/fxfa/parser/cxfa_image.cpp
@@ -16,12 +16,13 @@ int32_t CXFA_Image::GetAspect() {
}
bool CXFA_Image::GetContentType(WideString& wsContentType) {
- return m_pNode->JSNode()->TryCData(XFA_ATTRIBUTE_ContentType, wsContentType);
+ return m_pNode->JSNode()->TryCData(XFA_ATTRIBUTE_ContentType, wsContentType,
+ true);
}
bool CXFA_Image::GetHref(WideString& wsHref) {
if (m_bDefValue)
- return m_pNode->JSNode()->TryCData(XFA_ATTRIBUTE_Href, wsHref);
+ return m_pNode->JSNode()->TryCData(XFA_ATTRIBUTE_Href, wsHref, true);
return m_pNode->JSNode()->GetAttribute(L"href", wsHref, true);
}