Deal with parent frame that doesn't map content. b=373882 r+sr=rbs

This commit is contained in:
mats.palmgren%bredband.net 2007-03-15 19:09:37 +00:00
parent 133f98922d
commit d583a6fdcd

View File

@ -1386,6 +1386,9 @@ nsMathMLContainerFrame::FixInterFrameSpacing(nsHTMLReflowMetrics& aDesiredSize)
{
nscoord gap = 0;
nsIContent* parentContent = mParent->GetContent();
if (NS_UNLIKELY(!parentContent)) {
return 0;
}
// XXXldb This should check namespaces too.
nsIAtom *parentTag = parentContent->Tag();
if (parentTag == nsGkAtoms::math ||