diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-08 18:01:31 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-08 18:01:31 +0000 |
commit | 1d86501aa9ee49890fbb43db60333a42f947cd74 (patch) | |
tree | 65b0c342fa74b11371a640c4444b87b6d6a6f5ba /xfa/fxfa/cxfa_widgetacc.cpp | |
parent | 7055dffad92bd7be7cdb20ed12d5cc5890177e7a (diff) | |
download | pdfium-1d86501aa9ee49890fbb43db60333a42f947cd74.tar.xz |
Convert XFA_ATTRIBUTE to an enum class
This CL converts the XFA_ATTRIBUTE enum to an enum class and fixes up
various usages.
Change-Id: I3dd17cc412d97eb212a65ce63bb9fa19605e1e91
Reviewed-on: https://pdfium-review.googlesource.com/18050
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_widgetacc.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_widgetacc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxfa/cxfa_widgetacc.cpp b/xfa/fxfa/cxfa_widgetacc.cpp index 07745eabe6..2c54c3cf49 100644 --- a/xfa/fxfa/cxfa_widgetacc.cpp +++ b/xfa/fxfa/cxfa_widgetacc.cpp @@ -252,11 +252,11 @@ void CXFA_WidgetAcc::SetImageEdit(const WideString& wsContentType, imageData.SetTransferEncoding(XFA_ATTRIBUTEENUM_Base64); return; } - pBind->JSNode()->SetCData(XFA_ATTRIBUTE_ContentType, wsContentType, false, + pBind->JSNode()->SetCData(XFA_Attribute::ContentType, wsContentType, false, false); CXFA_Node* pHrefNode = pBind->GetNodeItem(XFA_NODEITEM_FirstChild); if (pHrefNode) { - pHrefNode->JSNode()->SetCData(XFA_ATTRIBUTE_Value, wsHref, false, false); + pHrefNode->JSNode()->SetCData(XFA_Attribute::Value, wsHref, false, false); } else { CFX_XMLNode* pXMLNode = pBind->GetXMLMappingNode(); ASSERT(pXMLNode && pXMLNode->GetType() == FX_XMLNODE_Element); @@ -512,7 +512,7 @@ WideString CXFA_WidgetAcc::GetValidateCaptionName(bool bVersionFlag) { } } if (wsCaptionName.IsEmpty()) - m_pNode->JSNode()->TryCData(XFA_ATTRIBUTE_Name, wsCaptionName, true); + m_pNode->JSNode()->TryCData(XFA_Attribute::Name, wsCaptionName, true); return wsCaptionName; } @@ -1280,7 +1280,7 @@ bool CXFA_WidgetAcc::FindSplitPos(int32_t iBlockIndex, float& fCalcHeight) { GetNode() ->GetNodeItem(XFA_NODEITEM_Parent) ->JSNode() - ->TryEnum(XFA_ATTRIBUTE_Layout, eLayoutMode, true); + ->TryEnum(XFA_Attribute::Layout, eLayoutMode, true); if ((eLayoutMode == XFA_ATTRIBUTEENUM_Position || eLayoutMode == XFA_ATTRIBUTEENUM_Tb || eLayoutMode == XFA_ATTRIBUTEENUM_Row || |