mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 03:00:30 +00:00
Added NULL pointer check
This commit is contained in:
parent
06ea3cca41
commit
97c0000d30
@ -5750,13 +5750,15 @@ nsCSSFrameConstructor::ContentInserted(nsIPresContext* aPresContext,
|
||||
isAppend = PR_TRUE;
|
||||
shell->GetPrimaryFrameFor(aContainer, &parentFrame);
|
||||
|
||||
// If we didn't process children when we originally created the frame,
|
||||
// then don't do any processing now
|
||||
nsCOMPtr<nsIAtom> frameType;
|
||||
parentFrame->GetFrameType(getter_AddRefs(frameType));
|
||||
if (frameType.get() == nsLayoutAtoms::objectFrame) {
|
||||
// This handles APPLET, EMBED, and OBJECT
|
||||
return NS_OK;
|
||||
if (parentFrame) {
|
||||
// If we didn't process children when we originally created the frame,
|
||||
// then don't do any processing now
|
||||
nsCOMPtr<nsIAtom> frameType;
|
||||
parentFrame->GetFrameType(getter_AddRefs(frameType));
|
||||
if (frameType.get() == nsLayoutAtoms::objectFrame) {
|
||||
// This handles APPLET, EMBED, and OBJECT
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5750,13 +5750,15 @@ nsCSSFrameConstructor::ContentInserted(nsIPresContext* aPresContext,
|
||||
isAppend = PR_TRUE;
|
||||
shell->GetPrimaryFrameFor(aContainer, &parentFrame);
|
||||
|
||||
// If we didn't process children when we originally created the frame,
|
||||
// then don't do any processing now
|
||||
nsCOMPtr<nsIAtom> frameType;
|
||||
parentFrame->GetFrameType(getter_AddRefs(frameType));
|
||||
if (frameType.get() == nsLayoutAtoms::objectFrame) {
|
||||
// This handles APPLET, EMBED, and OBJECT
|
||||
return NS_OK;
|
||||
if (parentFrame) {
|
||||
// If we didn't process children when we originally created the frame,
|
||||
// then don't do any processing now
|
||||
nsCOMPtr<nsIAtom> frameType;
|
||||
parentFrame->GetFrameType(getter_AddRefs(frameType));
|
||||
if (frameType.get() == nsLayoutAtoms::objectFrame) {
|
||||
// This handles APPLET, EMBED, and OBJECT
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user