WebPage::~WebPage() { ASSERT(!m_page); #ifndef NDEBUG webPageCounter.decrement(); #endif }
JSCustomSQLTransactionCallback::~JSCustomSQLTransactionCallback() { callOnMainThread(deleteData, m_data); #ifndef NDEBUG m_data = 0; counter.decrement(); #endif }
WebFrame::~WebFrame() { ASSERT(!m_coreFrame); #ifndef NDEBUG webFrameCounter.decrement(); #endif }
CachedPage::~CachedPage() { #ifndef NDEBUG cachedPageCounter.decrement(); #endif clear(); }
CachedPage::~CachedPage() { #ifndef NDEBUG cachedPageCounter.decrement(); #endif destroy(); ASSERT(!m_cachedMainFrame); }
JSEventListener::~JSEventListener() { if (m_listener && m_window) { JSDOMWindow::ListenersMap& listeners = isHTMLEventListener() ? m_window->jsHTMLEventListeners() : m_window->jsEventListeners(); listeners.remove(m_listener); } #ifndef NDEBUG eventListenerCounter.decrement(); #endif }
SVGElementInstance::~SVGElementInstance() { #ifndef NDEBUG instanceCounter.decrement(); #endif // Deregister as instance for passed element. m_element->removeInstanceMapping(this); removeAllChildrenInContainer<SVGElementInstance, SVGElementInstance>(this); }
SVGElementInstance::~SVGElementInstance() { #ifndef NDEBUG instanceCounter.decrement(); #endif // Deregister as instance for passed element. m_element->removeInstanceMapping(this); clearChildren(); }
Page::~Page() { m_mainFrame->setView(0); setGroupName(String()); allPages->remove(this); for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext()) frame->pageDestroyed(); m_editorClient->pageDestroyed(); if (m_parentInspectorController) m_parentInspectorController->pageDestroyed(); m_inspectorController->inspectedPageDestroyed(); m_backForwardList->close(); #ifndef NDEBUG pageCounter.decrement(); // Cancel keepAlive timers, to ensure we release all Frames before exiting. // It's safe to do this because we prohibit closing a Page while JavaScript // is executing. Frame::cancelAllKeepAlive(); #endif }
SubresourceLoader::~SubresourceLoader() { #ifndef NDEBUG subresourceLoaderCounter.decrement(); #endif }
JSLazyEventListener::~JSLazyEventListener() { #ifndef NDEBUG eventListenerCounter.decrement(); #endif }
WebPageProxy::~WebPageProxy() { #ifndef NDEBUG webPageProxyCounter.decrement(); #endif }