Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: xfa/fxfa/parser/cxfa_widgetdata.cpp

Issue 2083453003: Split the XFA_OBJECTTYPE enum into two parts. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Fix == nullptr Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxfa/include/fxfa_basic.h ('k') | xfa/fxfa/parser/xfa_basic_data.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "xfa/fxfa/parser/cxfa_widgetdata.h" 7 #include "xfa/fxfa/parser/cxfa_widgetdata.h"
8 8
9 #include "core/fxcrt/include/fx_ext.h" 9 #include "core/fxcrt/include/fx_ext.h"
10 #include "xfa/fxbarcode/include/BC_Library.h" 10 #include "xfa/fxbarcode/include/BC_Library.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 return pNode->GetEnum(XFA_ATTRIBUTE_Access); 102 return pNode->GetEnum(XFA_ATTRIBUTE_Access);
103 return XFA_ATTRIBUTEENUM_Open; 103 return XFA_ATTRIBUTEENUM_Open;
104 } 104 }
105 CXFA_Node* pNode = m_pNode; 105 CXFA_Node* pNode = m_pNode;
106 while (pNode) { 106 while (pNode) {
107 int32_t iAcc = pNode->GetEnum(XFA_ATTRIBUTE_Access); 107 int32_t iAcc = pNode->GetEnum(XFA_ATTRIBUTE_Access);
108 if (iAcc != XFA_ATTRIBUTEENUM_Open) 108 if (iAcc != XFA_ATTRIBUTEENUM_Open)
109 return iAcc; 109 return iAcc;
110 110
111 pNode = 111 pNode =
112 pNode->GetNodeItem(XFA_NODEITEM_Parent, XFA_OBJECTTYPE_ContainerNode); 112 pNode->GetNodeItem(XFA_NODEITEM_Parent, XFA_ObjectType::ContainerNode);
113 } 113 }
114 return XFA_ATTRIBUTEENUM_Open; 114 return XFA_ATTRIBUTEENUM_Open;
115 } 115 }
116 116
117 int32_t CXFA_WidgetData::GetRotate() { 117 int32_t CXFA_WidgetData::GetRotate() {
118 CXFA_Measurement ms; 118 CXFA_Measurement ms;
119 if (!m_pNode->TryMeasure(XFA_ATTRIBUTE_Rotate, ms, FALSE)) 119 if (!m_pNode->TryMeasure(XFA_ATTRIBUTE_Rotate, ms, FALSE))
120 return 0; 120 return 0;
121 121
122 int32_t iRotate = FXSYS_round(ms.GetValue()); 122 int32_t iRotate = FXSYS_round(ms.GetValue());
(...skipping 1656 matching lines...) Expand 10 before | Expand all | Expand 10 after
1779 } 1779 }
1780 } 1780 }
1781 } else if (wc == L'.') { 1781 } else if (wc == L'.') {
1782 iTread_ = 0; 1782 iTread_ = 0;
1783 iLead = -1; 1783 iLead = -1;
1784 } 1784 }
1785 wsRet += wc; 1785 wsRet += wc;
1786 } 1786 }
1787 return wsRet; 1787 return wsRet;
1788 } 1788 }
OLDNEW
« no previous file with comments | « xfa/fxfa/include/fxfa_basic.h ('k') | xfa/fxfa/parser/xfa_basic_data.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698