Home | History | Annotate | Download | only in rendering

Lines Matching refs:newChild

427 void RenderBlock::addChildToContinuation(RenderObject* newChild, RenderObject* beforeChild)
442 if (newChild->isFloatingOrOutOfFlowPositioned()) {
443 beforeChildParent->addChildIgnoringContinuation(newChild, beforeChild);
449 bool childIsNormal = newChild->isInline() || !newChild->style()->columnSpan();
454 flow->addChildIgnoringContinuation(newChild, beforeChild);
461 beforeChildParent->addChildIgnoringContinuation(newChild, beforeChild);
465 flow->addChildIgnoringContinuation(newChild, 0); // Just treat like an append.
468 beforeChildParent->addChildIgnoringContinuation(newChild, beforeChild);
472 void RenderBlock::addChildToAnonymousColumnBlocks(RenderObject* newChild, RenderObject* beforeChild)
489 if (newChild->isFloatingOrOutOfFlowPositioned()) {
490 beforeChildParent->addChildIgnoringAnonymousColumnBlocks(newChild, beforeChild);
495 bool newChildHasColumnSpan = newChild->style()->columnSpan() && !newChild->isInline();
499 beforeChildParent->addChildIgnoringAnonymousColumnBlocks(newChild, beforeChild);
507 newBox->addChildIgnoringAnonymousColumnBlocks(newChild, 0);
519 toRenderBlock(immediateChild->previousSibling())->addChildIgnoringAnonymousColumnBlocks(newChild, 0); // Treat like an append.
530 newBox->addChildIgnoringAnonymousColumnBlocks(newChild, 0);
655 RenderObject* newChild, RenderBoxModelObject* oldCont)
696 newBlockBox->addChild(newChild);
706 void RenderBlock::makeChildrenAnonymousColumnBlocks(RenderObject* beforeChild, RenderBlock* newBlockBox, RenderObject* newChild)
745 newBlockBox->addChild(newChild);
757 RenderBlock* RenderBlock::columnsBlockForSpanningElement(RenderObject* newChild)
767 if (!newChild->isText() && newChild->style()->columnSpan() && !newChild->isBeforeOrAfterContent()
768 && !newChild->isFloatingOrOutOfFlowPositioned() && !newChild->isInline() && !isAnonymousColumnSpanBlock()) {
786 void RenderBlock::addChildIgnoringAnonymousColumnBlocks(RenderObject* newChild, RenderObject* beforeChild)
804 if (newChild->isInline() || beforeChild->parent()->firstChild() != beforeChild)
805 beforeChild->parent()->addChild(newChild, beforeChild);
807 addChild(newChild, beforeChild->parent());
812 if (newChild->isTablePart()) {
814 beforeChildAnonymousContainer->addChild(newChild, beforeChild);
842 RenderBlock* columnsBlockAncestor = columnsBlockForSpanningElement(newChild);
858 splitFlow(beforeChild, newBox, newChild, oldContinuation);
863 // the column-spanning |newChild|. We take all of the children from before |newChild| and put them into
864 // one anonymous columns block, and all of the children after |newChild| go into another anonymous block.
865 makeChildrenAnonymousColumnBlocks(beforeChild, newBox, newChild);
875 if (childrenInline() && !newChild->isInline() && !newChild->isFloatingOrOutOfFlowPositioned()) {
885 } else if (!childrenInline() && (newChild->isFloatingOrOutOfFlowPositioned() || newChild->isInline())) {
892 afterChild->addChild(newChild);
896 if (newChild->isInline()) {
900 newBox->addChild(newChild);
905 RenderBox::addChild(newChild, beforeChild);
908 placeRunInIfNeeded(newChild);
915 void RenderBlock::addChild(RenderObject* newChild, RenderObject* beforeChild)
918 addChildToContinuation(newChild, beforeChild);
920 addChildIgnoringContinuation(newChild, beforeChild);
923 void RenderBlock::addChildIgnoringContinuation(RenderObject* newChild, RenderObject* beforeChild)
926 addChildToAnonymousColumnBlocks(newChild, beforeChild);
928 addChildIgnoringAnonymousColumnBlocks(newChild, beforeChild);
1895 void RenderBlock::placeRunInIfNeeded(RenderObject* newChild)
1897 if (newChild->isRunIn())
1898 moveRunInUnderSiblingBlockIfNeeded(newChild);
1899 else if (RenderObject* prevSibling = newChild->previousSibling()) {