Home | History | Annotate | Download | only in parser
      1 // Copyright 2016 PDFium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
      6 
      7 #include "xfa/fxfa/parser/cxfa_contentlayoutitem.h"
      8 
      9 #include "fxjs/xfa/cjx_object.h"
     10 #include "xfa/fxfa/parser/cxfa_node.h"
     11 
     12 CXFA_ContentLayoutItem::CXFA_ContentLayoutItem(CXFA_Node* pNode)
     13     : CXFA_LayoutItem(pNode, true),
     14       m_pPrev(nullptr),
     15       m_pNext(nullptr),
     16       m_dwStatus(0) {}
     17 
     18 CXFA_ContentLayoutItem::~CXFA_ContentLayoutItem() {
     19   if (m_pFormNode->JSObject()->GetLayoutItem() == this)
     20     m_pFormNode->JSObject()->SetLayoutItem(nullptr);
     21 }
     22