| 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 #ifndef XFA_FXFA_PARSER_XFA_LAYOUT_APPADAPTER_H_ | 7 #ifndef XFA_FXFA_PARSER_XFA_LAYOUT_APPADAPTER_H_ |
| 8 #define XFA_FXFA_PARSER_XFA_LAYOUT_APPADAPTER_H_ | 8 #define XFA_FXFA_PARSER_XFA_LAYOUT_APPADAPTER_H_ |
| 9 | 9 |
| 10 #include "xfa/fxfa/parser/xfa_doclayout.h" | 10 #include "xfa/fxfa/parser/cxfa_containerlayoutitem.h" |
| 11 #include "xfa/fxfa/parser/cxfa_contentlayoutitem.h" |
| 12 #include "xfa/fxfa/parser/cxfa_layoutitem.h" |
| 11 | 13 |
| 12 class CXFA_TraverseStrategy_PageAreaContainerLayoutItem { | 14 class CXFA_TraverseStrategy_PageAreaContainerLayoutItem { |
| 13 public: | 15 public: |
| 14 static inline CXFA_ContainerLayoutItem* GetFirstChild( | 16 static inline CXFA_ContainerLayoutItem* GetFirstChild( |
| 15 CXFA_ContainerLayoutItem* pLayoutItem) { | 17 CXFA_ContainerLayoutItem* pLayoutItem) { |
| 16 if (pLayoutItem->m_pFormNode->GetElementType() == XFA_Element::PageSet) { | 18 if (pLayoutItem->m_pFormNode->GetElementType() == XFA_Element::PageSet) { |
| 17 return static_cast<CXFA_ContainerLayoutItem*>(pLayoutItem->m_pFirstChild); | 19 return static_cast<CXFA_ContainerLayoutItem*>(pLayoutItem->m_pFirstChild); |
| 18 } | 20 } |
| 19 return nullptr; | 21 return nullptr; |
| 20 } | 22 } |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 } | 72 } |
| 71 static inline CXFA_ContentLayoutItem* GetParent( | 73 static inline CXFA_ContentLayoutItem* GetParent( |
| 72 CXFA_ContentLayoutItem* pLayoutItem) { | 74 CXFA_ContentLayoutItem* pLayoutItem) { |
| 73 return static_cast<CXFA_ContentLayoutItem*>(pLayoutItem->m_pParent); | 75 return static_cast<CXFA_ContentLayoutItem*>(pLayoutItem->m_pParent); |
| 74 } | 76 } |
| 75 }; | 77 }; |
| 76 | 78 |
| 77 void XFA_ReleaseLayoutItem(CXFA_LayoutItem* pLayoutItem); | 79 void XFA_ReleaseLayoutItem(CXFA_LayoutItem* pLayoutItem); |
| 78 | 80 |
| 79 #endif // XFA_FXFA_PARSER_XFA_LAYOUT_APPADAPTER_H_ | 81 #endif // XFA_FXFA_PARSER_XFA_LAYOUT_APPADAPTER_H_ |
| OLD | NEW |