Lines Matching defs:beforeChild

139 void RenderInline::addChild(RenderObject* newChild, RenderObject* beforeChild)
142 return addChildToContinuation(newChild, beforeChild);
143 return addChildIgnoringContinuation(newChild, beforeChild);
153 RenderBoxModelObject* RenderInline::continuationBefore(RenderObject* beforeChild)
155 if (beforeChild && beforeChild->parent() == this)
162 if (beforeChild && beforeChild->parent() == curr) {
163 if (curr->firstChild() == beforeChild)
173 if (!beforeChild && !last->firstChild())
178 void RenderInline::addChildIgnoringContinuation(RenderObject* newChild, RenderObject* beforeChild)
181 if (!beforeChild && isAfterContent(lastChild()))
182 beforeChild = lastChild();
188 // the children after |beforeChild| and put them in a clone of this object.
201 bool isLastChild = (beforeChild == lastChild());
204 if (isLastChild && beforeChild != lastChild())
205 beforeChild = 0; // We destroyed the last child, so now we need to update our insertion
208 splitFlow(beforeChild, newBox, newChild, oldContinuation);
212 RenderBoxModelObject::addChild(newChild, beforeChild);
226 RenderObject* beforeChild, RenderBoxModelObject* oldCont)
232 // Now take all of the children from beforeChild to the end and remove
234 RenderObject* o = beforeChild;
309 void RenderInline::splitFlow(RenderObject* beforeChild, RenderBlock* newBlockBox,
349 splitInlines(pre, post, newBlockBox, beforeChild, oldCont);
368 void RenderInline::addChildToContinuation(RenderObject* newChild, RenderObject* beforeChild)
370 RenderBoxModelObject* flow = continuationBefore(beforeChild);
371 ASSERT(!beforeChild || beforeChild->parent()->isRenderBlock() || beforeChild->parent()->isRenderInline());
373 if (beforeChild)
374 beforeChildParent = toRenderBoxModelObject(beforeChild->parent());
384 return beforeChildParent->addChildIgnoringContinuation(newChild, beforeChild);
393 return flow->addChildIgnoringContinuation(newChild, beforeChild);
398 return beforeChildParent->addChildIgnoringContinuation(newChild, beforeChild);
402 return beforeChildParent->addChildIgnoringContinuation(newChild, beforeChild);
812 RenderObject* beforeChild = child->nextSibling();
814 splitFlow(beforeChild, newBox, child, oldContinuation);