[Webkit-unassigned] [Bug 103772] Teach OwnPtr and RefPtr to understand Arena'd objects
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Dec 1 10:29:34 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=103772
--- Comment #2 from Eric Seidel <eric at webkit.org> 2012-12-01 10:31:54 PST ---
It appears we already do this:
RenderArena* renderArena() const { return document()->renderArena(); }
void RenderObject::destroy()
{
willBeDestroyed();
arenaDelete(renderArena(), this);
}
So then OwnPtrRenderObject just needs:
template <> void deleteOwnedPtr<RenderObject>(RenderObject* object)
{
if (object)
object->destroy();
}
Unless I'm missing something.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list