mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-28 11:28:38 +00:00
Fix blocker bug 114675 with null check around assertion code that I meant to check in yesterday (bug 114220).
This commit is contained in:
parent
a024fe7345
commit
e46c895524
@ -974,13 +974,15 @@ FrameManager::NotifyDestroyingFrame(nsIFrame* aFrame)
|
||||
RemoveAllPropertiesFor(presContext, aFrame);
|
||||
|
||||
#ifdef DEBUG
|
||||
nsCOMPtr<nsIContent> content;
|
||||
aFrame->GetContent(getter_AddRefs(content));
|
||||
PrimaryFrameMapEntry *entry = NS_STATIC_CAST(PrimaryFrameMapEntry*,
|
||||
PL_DHashTableOperate(&mPrimaryFrameMap, content, PL_DHASH_LOOKUP));
|
||||
NS_ASSERTION(!PL_DHASH_ENTRY_IS_BUSY(entry) || entry->frame != aFrame,
|
||||
"frame was not removed from primary frame map before"
|
||||
"destruction or was readded to map after being removed");
|
||||
if (mPrimaryFrameMap.ops) {
|
||||
nsCOMPtr<nsIContent> content;
|
||||
aFrame->GetContent(getter_AddRefs(content));
|
||||
PrimaryFrameMapEntry *entry = NS_STATIC_CAST(PrimaryFrameMapEntry*,
|
||||
PL_DHashTableOperate(&mPrimaryFrameMap, content, PL_DHASH_LOOKUP));
|
||||
NS_ASSERTION(!PL_DHASH_ENTRY_IS_BUSY(entry) || entry->frame != aFrame,
|
||||
"frame was not removed from primary frame map before"
|
||||
"destruction or was readded to map after being removed");
|
||||
}
|
||||
#endif
|
||||
|
||||
return NS_OK;
|
||||
|
@ -974,13 +974,15 @@ FrameManager::NotifyDestroyingFrame(nsIFrame* aFrame)
|
||||
RemoveAllPropertiesFor(presContext, aFrame);
|
||||
|
||||
#ifdef DEBUG
|
||||
nsCOMPtr<nsIContent> content;
|
||||
aFrame->GetContent(getter_AddRefs(content));
|
||||
PrimaryFrameMapEntry *entry = NS_STATIC_CAST(PrimaryFrameMapEntry*,
|
||||
PL_DHashTableOperate(&mPrimaryFrameMap, content, PL_DHASH_LOOKUP));
|
||||
NS_ASSERTION(!PL_DHASH_ENTRY_IS_BUSY(entry) || entry->frame != aFrame,
|
||||
"frame was not removed from primary frame map before"
|
||||
"destruction or was readded to map after being removed");
|
||||
if (mPrimaryFrameMap.ops) {
|
||||
nsCOMPtr<nsIContent> content;
|
||||
aFrame->GetContent(getter_AddRefs(content));
|
||||
PrimaryFrameMapEntry *entry = NS_STATIC_CAST(PrimaryFrameMapEntry*,
|
||||
PL_DHashTableOperate(&mPrimaryFrameMap, content, PL_DHASH_LOOKUP));
|
||||
NS_ASSERTION(!PL_DHASH_ENTRY_IS_BUSY(entry) || entry->frame != aFrame,
|
||||
"frame was not removed from primary frame map before"
|
||||
"destruction or was readded to map after being removed");
|
||||
}
|
||||
#endif
|
||||
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user