OLD | NEW |
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 #include "xfa/src/fxfa/parser/xfa_layout_itemlayout.h" | 7 #include "xfa/fxfa/parser/xfa_layout_itemlayout.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "xfa/src/fgas/crt/fgas_algorithm.h" | 12 #include "xfa/fgas/crt/fgas_algorithm.h" |
13 #include "xfa/src/fxfa/fm2js/xfa_fm2jsapi.h" | 13 #include "xfa/fxfa/fm2js/xfa_fm2jsapi.h" |
14 #include "xfa/src/fxfa/parser/xfa_docdata.h" | 14 #include "xfa/fxfa/parser/xfa_docdata.h" |
15 #include "xfa/src/fxfa/parser/xfa_doclayout.h" | 15 #include "xfa/fxfa/parser/xfa_doclayout.h" |
16 #include "xfa/src/fxfa/parser/xfa_document.h" | 16 #include "xfa/fxfa/parser/xfa_document.h" |
17 #include "xfa/src/fxfa/parser/xfa_document_layout_imp.h" | 17 #include "xfa/fxfa/parser/xfa_document_layout_imp.h" |
18 #include "xfa/src/fxfa/parser/xfa_layout_appadapter.h" | 18 #include "xfa/fxfa/parser/xfa_layout_appadapter.h" |
19 #include "xfa/src/fxfa/parser/xfa_layout_pagemgr_new.h" | 19 #include "xfa/fxfa/parser/xfa_layout_pagemgr_new.h" |
20 #include "xfa/src/fxfa/parser/xfa_localemgr.h" | 20 #include "xfa/fxfa/parser/xfa_localemgr.h" |
21 #include "xfa/src/fxfa/parser/xfa_object.h" | 21 #include "xfa/fxfa/parser/xfa_object.h" |
22 #include "xfa/src/fxfa/parser/xfa_parser.h" | 22 #include "xfa/fxfa/parser/xfa_parser.h" |
23 #include "xfa/src/fxfa/parser/xfa_script.h" | 23 #include "xfa/fxfa/parser/xfa_script.h" |
24 #include "xfa/src/fxfa/parser/xfa_utils.h" | 24 #include "xfa/fxfa/parser/xfa_utils.h" |
25 | 25 |
26 CXFA_ItemLayoutProcessor::CXFA_ItemLayoutProcessor(CXFA_Node* pNode, | 26 CXFA_ItemLayoutProcessor::CXFA_ItemLayoutProcessor(CXFA_Node* pNode, |
27 CXFA_LayoutPageMgr* pPageMgr) | 27 CXFA_LayoutPageMgr* pPageMgr) |
28 : m_bKeepBreakFinish(FALSE), | 28 : m_bKeepBreakFinish(FALSE), |
29 m_bIsProcessKeep(FALSE), | 29 m_bIsProcessKeep(FALSE), |
30 m_pKeepHeadNode(nullptr), | 30 m_pKeepHeadNode(nullptr), |
31 m_pKeepTailNode(nullptr), | 31 m_pKeepTailNode(nullptr), |
32 m_pFormNode(pNode), | 32 m_pFormNode(pNode), |
33 m_pLayoutItem(nullptr), | 33 m_pLayoutItem(nullptr), |
34 m_pOldLayoutItem(nullptr), | 34 m_pOldLayoutItem(nullptr), |
(...skipping 2924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2959 (int32_t)(uintptr_t)m_PendingNodesCount.GetValueAt(pTemplate); | 2959 (int32_t)(uintptr_t)m_PendingNodesCount.GetValueAt(pTemplate); |
2960 if (iCount >= iMax) { | 2960 if (iCount >= iMax) { |
2961 return FALSE; | 2961 return FALSE; |
2962 } | 2962 } |
2963 iCount++; | 2963 iCount++; |
2964 m_PendingNodesCount.SetAt(pTemplate, (void*)(uintptr_t)(iCount)); | 2964 m_PendingNodesCount.SetAt(pTemplate, (void*)(uintptr_t)(iCount)); |
2965 return TRUE; | 2965 return TRUE; |
2966 } | 2966 } |
2967 return TRUE; | 2967 return TRUE; |
2968 } | 2968 } |
OLD | NEW |