void BidiRun::destroy()
{
#ifndef NDEBUG
    inBidiRunDestroy = true;
#endif
    RenderArena* renderArena = m_object->renderArena();
    delete this;
#ifndef NDEBUG
    inBidiRunDestroy = false;
#endif

    // Recover the size left there for us by operator delete and free the memory.
    renderArena->free(*reinterpret_cast<size_t*>(this), this);
}
Example #2
0
void InlineBox::destroy(RenderArena& renderArena)
{
#if !ASSERT_DISABLED
    inInlineBoxDetach = true;
#endif
    delete this;
#if !ASSERT_DISABLED
    inInlineBoxDetach = false;
#endif

    // Recover the size left there for us by operator delete and free the memory.
    renderArena.free(*(size_t *)this, this);
}