Lines Matching full:child
84 RenderObject* child = firstChild();
85 return child && child->isRubyText() ? static_cast<RenderRubyText*>(child) : 0;
90 RenderObject* child = lastChild();
91 return child && child->isRubyBase() ? static_cast<RenderRubyBase*>(child) : 0;
113 bool RenderRubyRun::isChildAllowed(RenderObject* child, RenderStyle*) const
115 return child->isRubyText() || child->isInline();
118 void RenderRubyRun::addChild(RenderObject* child, RenderObject* beforeChild)
120 ASSERT(child);
122 // If child is a ruby text
123 if (child->isRubyText()) {
125 // RenderRuby has already ascertained that we can add the child here.
127 // prepend ruby texts as first child
128 RenderBlock::addChild(child, firstChild());
141 // other child besides the old ruby text.
142 RenderBlock::addChild(child, beforeChild);
152 newRun->addChild(child);
156 // child is not a text -> insert it into the base
160 rubyBaseSafe()->addChild(child, beforeChild);
164 void RenderRubyRun::removeChild(RenderObject* child)
166 // If the child is a ruby text, then merge the ruby base with the base of
168 if (!m_beingDestroyed && !documentBeingDestroyed() && child->isRubyText()) {
184 RenderBlock::removeChild(child);