• Home
  • Raw
  • Download

Lines Matching refs:pChild

71   return pItem && pItem->pChild ? pItem->pChild->pWidget : nullptr;  in GetFirstChildWidget()
79 pItem = pItem->pChild; in GetLastChildWidget()
102 Item* pChild = pItem->pParent->pChild; in AppendWidget() local
104 while (pChild) { in AppendWidget()
105 if (pChild == pItem) { in AppendWidget()
106 if (pChild->pPrevious) in AppendWidget()
107 pChild->pPrevious->pNext = pChild->pNext; in AppendWidget()
108 if (pChild->pNext) in AppendWidget()
109 pChild->pNext->pPrevious = pChild->pPrevious; in AppendWidget()
110 if (pItem->pParent->pChild == pItem) in AppendWidget()
111 pItem->pParent->pChild = pItem->pNext; in AppendWidget()
117 if (!pChild->pNext) in AppendWidget()
120 pChild = pChild->pNext; in AppendWidget()
124 pChild = pItem->pParent->pChild; in AppendWidget()
125 if (pChild) { in AppendWidget()
126 while (pChild->pNext) in AppendWidget()
127 pChild = pChild->pNext; in AppendWidget()
129 pChild->pNext = pItem; in AppendWidget()
130 pItem->pPrevious = pChild; in AppendWidget()
132 pItem->pParent->pChild = pItem; in AppendWidget()
154 void CFWL_WidgetMgr::InsertWidget(CFWL_Widget* pParent, CFWL_Widget* pChild) { in InsertWidget() argument
165 Item* pItem = GetWidgetMgrItem(pChild); in InsertWidget()
167 auto item = pdfium::MakeUnique<Item>(pChild); in InsertWidget()
169 m_mapWidgetItem[pChild] = std::move(item); in InsertWidget()
176 if (pItem->pParent->pChild == pItem) in InsertWidget()
177 pItem->pParent->pChild = pItem->pNext; in InsertWidget()
180 AppendWidget(pChild); in InsertWidget()
191 if (pItem->pParent && pItem->pParent->pChild == pItem) in RemoveWidget()
192 pItem->pParent->pChild = pItem->pNext; in RemoveWidget()
194 Item* pChild = pItem->pChild; in RemoveWidget() local
195 while (pChild) { in RemoveWidget()
196 Item* pNext = pChild->pNext; in RemoveWidget()
197 RemoveWidget(pChild->pWidget); in RemoveWidget()
198 pChild = pNext; in RemoveWidget()
222 void CFWL_WidgetMgr::SetParent(CFWL_Widget* pParent, CFWL_Widget* pChild) { in SetParent() argument
224 Item* pItem = GetWidgetMgrItem(pChild); in SetParent()
232 if (pItem->pParent->pChild == pItem) in SetParent()
233 pItem->pParent->pChild = pItem->pNext; in SetParent()
239 AppendWidget(pChild); in SetParent()
380 pChild(nullptr), in Item()