OLD | NEW |
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_contentlayoutitem.h" | 7 #include "xfa/fxfa/parser/cxfa_contentlayoutitem.h" |
8 | 8 |
9 CXFA_ContentLayoutItem::CXFA_ContentLayoutItem(CXFA_Node* pNode) | 9 CXFA_ContentLayoutItem::CXFA_ContentLayoutItem(CXFA_Node* pNode) |
10 : CXFA_LayoutItem(pNode, TRUE), | 10 : CXFA_LayoutItem(pNode, true), |
11 m_pPrev(nullptr), | 11 m_pPrev(nullptr), |
12 m_pNext(nullptr), | 12 m_pNext(nullptr), |
13 m_dwStatus(0) {} | 13 m_dwStatus(0) {} |
14 | 14 |
15 CXFA_ContentLayoutItem::~CXFA_ContentLayoutItem() { | 15 CXFA_ContentLayoutItem::~CXFA_ContentLayoutItem() { |
16 if (m_pFormNode->GetUserData(XFA_LAYOUTITEMKEY) == this) | 16 if (m_pFormNode->GetUserData(XFA_LAYOUTITEMKEY) == this) |
17 m_pFormNode->SetUserData(XFA_LAYOUTITEMKEY, nullptr); | 17 m_pFormNode->SetUserData(XFA_LAYOUTITEMKEY, nullptr); |
18 } | 18 } |
OLD | NEW |