mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add asserts to verify correct DOM object usage.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@192 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -255,6 +255,14 @@ void CefDOMDocumentImpl::Detach()
|
||||
if (!VerifyContext())
|
||||
return;
|
||||
|
||||
// If you hit this assert it means that you are keeping references to node
|
||||
// objects beyond the valid scope.
|
||||
DCHECK(node_map_.empty());
|
||||
|
||||
// If you hit this assert it means that you are keeping references to this
|
||||
// document object beyond the valid scope.
|
||||
DCHECK(GetRefCt() == 1);
|
||||
|
||||
if (!node_map_.empty()) {
|
||||
NodeMap::const_iterator it = node_map_.begin();
|
||||
for (; it != node_map_.end(); ++it)
|
||||
|
Reference in New Issue
Block a user