本文整理汇总了C++中wtf::RefCountedLeakCounter::decrement方法的典型用法代码示例。如果您正苦于以下问题:C++ RefCountedLeakCounter::decrement方法的具体用法?C++ RefCountedLeakCounter::decrement怎么用?C++ RefCountedLeakCounter::decrement使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wtf::RefCountedLeakCounter
的用法示例。
在下文中一共展示了RefCountedLeakCounter::decrement方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: callOnMainThread
JSCustomSQLTransactionCallback::~JSCustomSQLTransactionCallback()
{
callOnMainThread(deleteData, m_data);
#ifndef NDEBUG
m_data = 0;
counter.decrement();
#endif
}
示例2: ASSERT
WebFrame::~WebFrame()
{
ASSERT(!m_coreFrame);
#ifndef NDEBUG
webFrameCounter.decrement();
#endif
}
示例3: destroy
CachedPage::~CachedPage()
{
#ifndef NDEBUG
cachedPageCounter.decrement();
#endif
destroy();
ASSERT(!m_cachedMainFrame);
}
示例4: isHTMLEventListener
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
}
示例5:
SVGElementInstance::~SVGElementInstance()
{
#ifndef NDEBUG
instanceCounter.decrement();
#endif
// Deregister as instance for passed element.
m_element->removeInstanceMapping(this);
removeAllChildrenInContainer<SVGElementInstance, SVGElementInstance>(this);
}
示例6: clearChildren
SVGElementInstance::~SVGElementInstance()
{
#ifndef NDEBUG
instanceCounter.decrement();
#endif
// Deregister as instance for passed element.
m_element->removeInstanceMapping(this);
clearChildren();
}
示例7: setGroupName
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
}
示例8:
JSLazyEventListener::~JSLazyEventListener()
{
#ifndef NDEBUG
eventListenerCounter.decrement();
#endif
}
示例9:
WebPageProxy::~WebPageProxy()
{
#ifndef NDEBUG
webPageProxyCounter.decrement();
#endif
}