| Index: xfa/src/fxfa/src/parser/xfa_layout_appadapter.h
|
| diff --git a/xfa/src/fxfa/src/parser/xfa_layout_appadapter.h b/xfa/src/fxfa/src/parser/xfa_layout_appadapter.h
|
| index 66d61dbfde987cdf5bdfd2e2e04e5c2716b743f8..66bde24d1a0e94ab4cba4be01ee5fb69ccd6633f 100644
|
| --- a/xfa/src/fxfa/src/parser/xfa_layout_appadapter.h
|
| +++ b/xfa/src/fxfa/src/parser/xfa_layout_appadapter.h
|
| @@ -30,23 +30,23 @@ class CXFA_TraverseStrategy_ContentAreaContainerLayoutItem {
|
| CXFA_ContainerLayoutItem* pLayoutItem) {
|
| for (CXFA_LayoutItem* pChildItem = pLayoutItem->m_pFirstChild; pChildItem;
|
| pChildItem = pChildItem->m_pNextSibling) {
|
| - if (pChildItem->IsContentLayoutItem()) {
|
| - continue;
|
| + if (CXFA_ContainerLayoutItem* pContainer =
|
| + pChildItem->AsContainerLayoutItem()) {
|
| + return pContainer;
|
| }
|
| - return (CXFA_ContainerLayoutItem*)pChildItem;
|
| }
|
| - return NULL;
|
| + return nullptr;
|
| }
|
| static inline CXFA_ContainerLayoutItem* GetNextSibling(
|
| CXFA_ContainerLayoutItem* pLayoutItem) {
|
| for (CXFA_LayoutItem* pChildItem = pLayoutItem->m_pNextSibling; pChildItem;
|
| pChildItem = pChildItem->m_pNextSibling) {
|
| - if (pChildItem->IsContentLayoutItem()) {
|
| - continue;
|
| + if (CXFA_ContainerLayoutItem* pContainer =
|
| + pChildItem->AsContainerLayoutItem()) {
|
| + return pContainer;
|
| }
|
| - return (CXFA_ContainerLayoutItem*)pChildItem;
|
| }
|
| - return NULL;
|
| + return nullptr;
|
| }
|
| static inline CXFA_ContainerLayoutItem* GetParent(
|
| CXFA_ContainerLayoutItem* pLayoutItem) {
|
|
|