Home | History | Annotate | Download | only in rendering

Lines Matching refs:beforeChild

197 void RenderInline::addChild(RenderObject* newChild, RenderObject* beforeChild)
200 return addChildToContinuation(newChild, beforeChild);
201 return addChildIgnoringContinuation(newChild, beforeChild);
211 RenderBoxModelObject* RenderInline::continuationBefore(RenderObject* beforeChild)
213 if (beforeChild && beforeChild->parent() == this)
220 if (beforeChild && beforeChild->parent() == curr) {
221 if (curr->firstChild() == beforeChild)
231 if (!beforeChild && !last->firstChild())
236 void RenderInline::addChildIgnoringContinuation(RenderObject* newChild, RenderObject* beforeChild)
239 if (!beforeChild && isAfterContent(lastChild()))
240 beforeChild = lastChild();
246 // the children after |beforeChild| and put them in a clone of this object.
258 bool isLastChild = (beforeChild == lastChild());
261 if (isLastChild && beforeChild != lastChild())
262 beforeChild = 0; // We destroyed the last child, so now we need to update our insertion
265 splitFlow(beforeChild, newBox, newChild, oldContinuation);
269 RenderBoxModelObject::addChild(newChild, beforeChild);
283 RenderObject* beforeChild, RenderBoxModelObject* oldCont)
289 // Now take all of the children from beforeChild to the end and remove
291 RenderObject* o = beforeChild;
366 void RenderInline::splitFlow(RenderObject* beforeChild, RenderBlock* newBlockBox,
406 splitInlines(pre, post, newBlockBox, beforeChild, oldCont);
425 void RenderInline::addChildToContinuation(RenderObject* newChild, RenderObject* beforeChild)
427 RenderBoxModelObject* flow = continuationBefore(beforeChild);
428 ASSERT(!beforeChild || beforeChild->parent()->isRenderBlock() || beforeChild->parent()->isRenderInline());
430 if (beforeChild)
431 beforeChildParent = toRenderBoxModelObject(beforeChild->parent());
441 return beforeChildParent->addChildIgnoringContinuation(newChild, beforeChild);
450 return flow->addChildIgnoringContinuation(newChild, beforeChild);
455 return beforeChildParent->addChildIgnoringContinuation(newChild, beforeChild);
459 return beforeChildParent->addChildIgnoringContinuation(newChild, beforeChild);
1200 RenderObject* beforeChild = child->nextSibling();
1202 splitFlow(beforeChild, newBox, child, oldContinuation);