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

Side by Side Diff: xfa/fxfa/parser/xfa_layout_itemlayout.h

Issue 1999883002: Use std::map in CXFA_ItemLayoutProcessor (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | xfa/fxfa/parser/xfa_layout_itemlayout.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 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef XFA_FXFA_PARSER_XFA_LAYOUT_ITEMLAYOUT_H_ 7 #ifndef XFA_FXFA_PARSER_XFA_LAYOUT_ITEMLAYOUT_H_
8 #define XFA_FXFA_PARSER_XFA_LAYOUT_ITEMLAYOUT_H_ 8 #define XFA_FXFA_PARSER_XFA_LAYOUT_ITEMLAYOUT_H_
9 9
10 #include <float.h> 10 #include <float.h>
11 11
12 #include <list> 12 #include <list>
13 #include <map>
13 14
14 #include "core/fxcrt/include/fx_basic.h" 15 #include "core/fxcrt/include/fx_basic.h"
15 #include "xfa/fxfa/parser/xfa_doclayout.h" 16 #include "xfa/fxfa/parser/xfa_doclayout.h"
16 #include "xfa/fxfa/parser/xfa_document_layout_imp.h" 17 #include "xfa/fxfa/parser/xfa_document_layout_imp.h"
17 18
18 #define XFA_LAYOUT_INVALIDNODE ((CXFA_Node*)(intptr_t)-1) 19 #define XFA_LAYOUT_INVALIDNODE ((CXFA_Node*)(intptr_t)-1)
19 #define XFA_LAYOUT_FLOAT_PERCISION (0.0005f) 20 #define XFA_LAYOUT_FLOAT_PERCISION (0.0005f)
20 #define XFA_LAYOUT_FLOAT_MAX FLT_MAX 21 #define XFA_LAYOUT_FLOAT_MAX FLT_MAX
21 22
22 class CXFA_ContainerLayoutItem; 23 class CXFA_ContainerLayoutItem;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 CXFA_ContentLayoutItem* m_pOldLayoutItem; 176 CXFA_ContentLayoutItem* m_pOldLayoutItem;
176 CXFA_Node* m_pCurChildNode; 177 CXFA_Node* m_pCurChildNode;
177 CXFA_ItemLayoutProcessor* m_pCurChildPreprocessor; 178 CXFA_ItemLayoutProcessor* m_pCurChildPreprocessor;
178 XFA_ItemLayoutProcessorStages m_nCurChildNodeStage; 179 XFA_ItemLayoutProcessorStages m_nCurChildNodeStage;
179 FX_FLOAT m_fUsedSize; 180 FX_FLOAT m_fUsedSize;
180 CXFA_LayoutPageMgr* m_pPageMgr; 181 CXFA_LayoutPageMgr* m_pPageMgr;
181 std::list<CXFA_Node*> m_PendingNodes; 182 std::list<CXFA_Node*> m_PendingNodes;
182 FX_BOOL m_bBreakPending; 183 FX_BOOL m_bBreakPending;
183 CFX_ArrayTemplate<FX_FLOAT> m_rgSpecifiedColumnWidths; 184 CFX_ArrayTemplate<FX_FLOAT> m_rgSpecifiedColumnWidths;
184 CFX_ArrayTemplate<CXFA_ContentLayoutItem*> m_arrayKeepItems; 185 CFX_ArrayTemplate<CXFA_ContentLayoutItem*> m_arrayKeepItems;
185 CFX_MapPtrToPtr m_PendingNodesCount; 186 std::map<CXFA_Node*, int32_t> m_PendingNodesCount;
186 FX_FLOAT m_fLastRowWidth; 187 FX_FLOAT m_fLastRowWidth;
187 FX_FLOAT m_fLastRowY; 188 FX_FLOAT m_fLastRowY;
188 FX_FLOAT m_fWidthLimite; 189 FX_FLOAT m_fWidthLimite;
189 FX_BOOL m_bUseInheriated; 190 FX_BOOL m_bUseInheriated;
190 XFA_ItemLayoutProcessorResult m_ePreProcessRs; 191 XFA_ItemLayoutProcessorResult m_ePreProcessRs;
191 FX_BOOL m_bHasAvailHeight; 192 FX_BOOL m_bHasAvailHeight;
192 }; 193 };
193 FX_BOOL XFA_ItemLayoutProcessor_IsTakingSpace(CXFA_Node* pNode); 194 FX_BOOL XFA_ItemLayoutProcessor_IsTakingSpace(CXFA_Node* pNode);
194 195
195 #endif // XFA_FXFA_PARSER_XFA_LAYOUT_ITEMLAYOUT_H_ 196 #endif // XFA_FXFA_PARSER_XFA_LAYOUT_ITEMLAYOUT_H_
OLDNEW
« no previous file with comments | « no previous file | xfa/fxfa/parser/xfa_layout_itemlayout.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698