Example #1
0
RootInlineBox& InlineBox::root()
{ 
    if (m_parent)
        return m_parent->root(); 
    ASSERT_WITH_SECURITY_IMPLICATION(isRootInlineBox());
    return toRootInlineBox(*this);
}
Example #2
0
const RootInlineBox& InlineBox::root() const
{ 
    if (parent())
        return parent()->root();
    ASSERT_WITH_SECURITY_IMPLICATION(isRootInlineBox());
    return toRootInlineBox(*this);
}