예제 #1
0
RootInlineBox* InlineBox::root()
{ 
    if (m_parent)
        return m_parent->root(); 
    ASSERT(isRootInlineBox());
    return static_cast<RootInlineBox*>(this);
}
예제 #2
0
RootInlineBox& InlineBox::root()
{ 
    if (m_parent)
        return m_parent->root(); 
    ASSERT_WITH_SECURITY_IMPLICATION(isRootInlineBox());
    return static_cast<RootInlineBox&>(*this);
}
예제 #3
0
const RootInlineBox& InlineBox::root() const
{ 
    if (m_parent)
        return m_parent->root(); 
    ASSERT_WITH_SECURITY_IMPLICATION(isRootInlineBox());
    return toRootInlineBox(*this);
}
예제 #4
0
const RootInlineBox& InlineBox::root() const
{
    if (m_parent)
        return m_parent->root();
    ASSERT(isRootInlineBox());
    return static_cast<const RootInlineBox&>(*this);
}
예제 #5
0
RootInlineBox& InlineBox::root()
{ 
    if (parent())
        return parent()->root();
    ASSERT_WITH_SECURITY_IMPLICATION(isRootInlineBox());
    return toRootInlineBox(*this);
}