Frame::~Frame() { setDOMWindow(nullptr); // FIXME: We should not be doing all this work inside the destructor #ifndef NDEBUG frameCounter.decrement(); #endif }
LocalFrame::~LocalFrame() { setView(nullptr); m_deprecatedLoader.clear(); setDOMWindow(nullptr); // FIXME: What to do here... some of this is redundant with ~Frame. HashSet<FrameDestructionObserver*>::iterator stop = m_destructionObservers.end(); for (HashSet<FrameDestructionObserver*>::iterator it = m_destructionObservers.begin(); it != stop; ++it) (*it)->frameDestroyed(); }
Frame::~Frame() { setDOMWindow(nullptr); // FIXME: We should not be doing all this work inside the destructor #ifndef NDEBUG frameCounter.decrement(); #endif HashSet<FrameDestructionObserver*>::iterator stop = m_destructionObservers.end(); for (HashSet<FrameDestructionObserver*>::iterator it = m_destructionObservers.begin(); it != stop; ++it) (*it)->frameDestroyed(); }