RootInlineBox* InlineBox::root() { if (m_parent) return m_parent->root(); ASSERT(isRootInlineBox()); return static_cast<RootInlineBox*>(this); }
RootInlineBox& InlineBox::root() { if (m_parent) return m_parent->root(); ASSERT_WITH_SECURITY_IMPLICATION(isRootInlineBox()); return static_cast<RootInlineBox&>(*this); }
const RootInlineBox& InlineBox::root() const { if (m_parent) return m_parent->root(); ASSERT_WITH_SECURITY_IMPLICATION(isRootInlineBox()); return toRootInlineBox(*this); }
const RootInlineBox& InlineBox::root() const { if (m_parent) return m_parent->root(); ASSERT(isRootInlineBox()); return static_cast<const RootInlineBox&>(*this); }
RootInlineBox& InlineBox::root() { if (parent()) return parent()->root(); ASSERT_WITH_SECURITY_IMPLICATION(isRootInlineBox()); return toRootInlineBox(*this); }