summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-02 18:37:38 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-02 18:37:38 +0000
commite806037fd847ed8edefaa4aeb19c79692cceb865 (patch)
treeb2aeeb29ddde648e84d2dad8f32ecc85543c903a /xfa/fxfa/parser
parenta95fd60b7902b9f893d05189aa6c877eb2e73e90 (diff)
downloadpdfium-e806037fd847ed8edefaa4aeb19c79692cceb865.tar.xz
Remove default values for CJX_Node::SetContent
This CL removes the default values from CJX_Node::SetContent and inlines at the call sites. Change-Id: I9daf3c3e0010540773c276aa4c4e5c357e91b3b2 Reviewed-on: https://pdfium-review.googlesource.com/17530 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser')
-rw-r--r--xfa/fxfa/parser/cxfa_validate.cpp4
-rw-r--r--xfa/fxfa/parser/cxfa_widgetdata.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_validate.cpp b/xfa/fxfa/parser/cxfa_validate.cpp
index 5f784259d2..f2892e507f 100644
--- a/xfa/fxfa/parser/cxfa_validate.cpp
+++ b/xfa/fxfa/parser/cxfa_validate.cpp
@@ -94,14 +94,14 @@ void CXFA_Validate::SetMessageText(WideString& wsMessage,
WideStringView wsName;
pItemNode->JSNode()->TryCData(XFA_ATTRIBUTE_Name, wsName);
if (wsName.IsEmpty() || wsName == wsMessageType) {
- pItemNode->JSNode()->SetContent(wsMessage, wsMessage, false);
+ pItemNode->JSNode()->SetContent(wsMessage, wsMessage, false, false, true);
return;
}
}
CXFA_Node* pTextNode = pNode->CreateSamePacketNode(XFA_Element::Text);
pNode->InsertChild(pTextNode);
pTextNode->JSNode()->SetCData(XFA_ATTRIBUTE_Name, wsMessageType, false);
- pTextNode->JSNode()->SetContent(wsMessage, wsMessage, false);
+ pTextNode->JSNode()->SetContent(wsMessage, wsMessage, false, false, true);
}
void CXFA_Validate::GetScriptMessageText(WideString& wsMessage) {
diff --git a/xfa/fxfa/parser/cxfa_widgetdata.cpp b/xfa/fxfa/parser/cxfa_widgetdata.cpp
index 2704189b22..f6e0f7d55b 100644
--- a/xfa/fxfa/parser/cxfa_widgetdata.cpp
+++ b/xfa/fxfa/parser/cxfa_widgetdata.cpp
@@ -1822,7 +1822,7 @@ void CXFA_WidgetData::SyncValue(const WideString& wsValue, bool bNotify) {
if (pContainerWidgetData)
pContainerWidgetData->GetFormatDataValue(wsValue, wsFormatValue);
- m_pNode->JSNode()->SetContent(wsValue, wsFormatValue, bNotify);
+ m_pNode->JSNode()->SetContent(wsValue, wsFormatValue, bNotify, false, true);
}
void CXFA_WidgetData::InsertListTextItem(CXFA_Node* pItems,