| 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/fxfa/parser/xfa_document_layout_imp.h" | 7 #include "xfa/fxfa/parser/xfa_document_layout_imp.h" |
| 8 | 8 |
| 9 #include "xfa/fxfa/parser/xfa_basic_imp.h" | 9 #include "xfa/fxfa/parser/xfa_basic_imp.h" |
| 10 #include "xfa/fxfa/parser/xfa_doclayout.h" | 10 #include "xfa/fxfa/parser/xfa_doclayout.h" |
| 11 #include "xfa/fxfa/parser/xfa_document.h" | 11 #include "xfa/fxfa/parser/xfa_document.h" |
| 12 #include "xfa/fxfa/parser/xfa_document_datamerger_imp.h" | 12 #include "xfa/fxfa/parser/xfa_document_datamerger_imp.h" |
| 13 #include "xfa/fxfa/parser/xfa_layout_appadapter.h" | 13 #include "xfa/fxfa/parser/xfa_layout_appadapter.h" |
| 14 #include "xfa/fxfa/parser/xfa_layout_itemlayout.h" | 14 #include "xfa/fxfa/parser/xfa_layout_itemlayout.h" |
| 15 #include "xfa/fxfa/parser/xfa_layout_pagemgr_new.h" | 15 #include "xfa/fxfa/parser/xfa_layout_pagemgr_new.h" |
| 16 #include "xfa/fxfa/parser/xfa_localemgr.h" | 16 #include "xfa/fxfa/parser/xfa_localemgr.h" |
| 17 #include "xfa/fxfa/parser/xfa_object.h" | 17 #include "xfa/fxfa/parser/xfa_object.h" |
| 18 #include "xfa/fxfa/parser/xfa_script.h" | |
| 19 #include "xfa/fxfa/parser/xfa_utils.h" | 18 #include "xfa/fxfa/parser/xfa_utils.h" |
| 20 | 19 |
| 21 CXFA_LayoutProcessor* CXFA_Document::GetLayoutProcessor() { | 20 CXFA_LayoutProcessor* CXFA_Document::GetLayoutProcessor() { |
| 22 if (!m_pLayoutProcessor) { | 21 if (!m_pLayoutProcessor) { |
| 23 m_pLayoutProcessor = new CXFA_LayoutProcessor(this); | 22 m_pLayoutProcessor = new CXFA_LayoutProcessor(this); |
| 24 ASSERT(m_pLayoutProcessor); | 23 ASSERT(m_pLayoutProcessor); |
| 25 } | 24 } |
| 26 return m_pLayoutProcessor; | 25 return m_pLayoutProcessor; |
| 27 } | 26 } |
| 28 CXFA_LayoutProcessor* CXFA_Document::GetDocLayout() { | 27 CXFA_LayoutProcessor* CXFA_Document::GetDocLayout() { |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 CXFA_ContentLayoutItem::CXFA_ContentLayoutItem(CXFA_Node* pNode) | 194 CXFA_ContentLayoutItem::CXFA_ContentLayoutItem(CXFA_Node* pNode) |
| 196 : CXFA_LayoutItem(pNode, TRUE), | 195 : CXFA_LayoutItem(pNode, TRUE), |
| 197 m_pPrev(nullptr), | 196 m_pPrev(nullptr), |
| 198 m_pNext(nullptr), | 197 m_pNext(nullptr), |
| 199 m_dwStatus(0) {} | 198 m_dwStatus(0) {} |
| 200 CXFA_ContentLayoutItem::~CXFA_ContentLayoutItem() { | 199 CXFA_ContentLayoutItem::~CXFA_ContentLayoutItem() { |
| 201 if (m_pFormNode->GetUserData(XFA_LAYOUTITEMKEY) == this) { | 200 if (m_pFormNode->GetUserData(XFA_LAYOUTITEMKEY) == this) { |
| 202 m_pFormNode->SetUserData(XFA_LAYOUTITEMKEY, nullptr); | 201 m_pFormNode->SetUserData(XFA_LAYOUTITEMKEY, nullptr); |
| 203 } | 202 } |
| 204 } | 203 } |
| OLD | NEW |