Lines Matching refs:beforeChild
111 void RenderTable::addChild(RenderObject* child, RenderObject* beforeChild)
114 if (!beforeChild && isAfterContent(lastChild()))
115 beforeChild = lastChild();
121 if (beforeChild && m_caption) {
122 RenderObject* o = beforeChild->previousSibling();
141 resetSectionPointerIfNotBefore(m_head, beforeChild);
145 resetSectionPointerIfNotBefore(m_firstBody, beforeChild);
152 resetSectionPointerIfNotBefore(m_foot, beforeChild);
160 resetSectionPointerIfNotBefore(m_firstBody, beforeChild);
175 while (beforeChild && beforeChild->parent() != this)
176 beforeChild = beforeChild->parent();
178 RenderBox::addChild(child, beforeChild);
182 if (!beforeChild && lastChild() && lastChild()->isTableSection() && lastChild()->isAnonymous()) {
187 RenderObject* lastBox = beforeChild;
191 if (beforeChild == lastBox)
192 beforeChild = lastBox->firstChild();
193 lastBox->addChild(child, beforeChild);
197 if (beforeChild && !beforeChild->isTableSection() && beforeChild->style()->display() != TABLE_CAPTION && beforeChild->style()->display() != TABLE_COLUMN_GROUP)
198 beforeChild = 0;
204 addChild(section, beforeChild);