void LineBoxList::deleteLineBoxes() { if (m_firstLineBox) { InlineFlowBox* next; for (InlineFlowBox* curr = m_firstLineBox; curr; curr = next) { next = curr->nextLineBox(); curr->destroy(); } m_firstLineBox = 0; m_lastLineBox = 0; } }
void RenderLineBoxList::deleteLineBoxes(RenderArena* arena) { if (m_firstLineBox) { InlineFlowBox* next; for (InlineFlowBox* curr = m_firstLineBox; curr; curr = next) { next = curr->nextLineBox(); curr->destroy(arena); } m_firstLineBox = 0; m_lastLineBox = 0; } }