Bug 345418 - ASSERTION: trying to construct an SVGTSpanFrame for an invalid container. r+sr=roc

This commit is contained in:
longsonr%gmail.com 2006-08-08 10:00:55 +00:00
parent b455552862
commit 073529ec03

View File

@ -7709,7 +7709,11 @@ nsCSSFrameConstructor::ConstructSVGFrame(nsFrameConstructorState& aState,
newFrame = NS_NewSVGTextFrame(mPresShell, aContent, aStyleContext);
}
else if (aTag == nsSVGAtoms::tspan) {
newFrame = NS_NewSVGTSpanFrame(mPresShell, aContent, aParentFrame, aStyleContext);
nsISVGTextContentMetrics* metrics;
CallQueryInterface(aParentFrame, &metrics);
if (metrics) {
newFrame = NS_NewSVGTSpanFrame(mPresShell, aContent, aParentFrame, aStyleContext);
}
}
else if (aTag == nsSVGAtoms::linearGradient) {
newFrame = NS_NewSVGLinearGradientFrame(mPresShell, aContent, aStyleContext);
@ -7733,7 +7737,11 @@ nsCSSFrameConstructor::ConstructSVGFrame(nsFrameConstructorState& aState,
newFrame = NS_NewSVGClipPathFrame(mPresShell, aContent, aStyleContext);
}
else if (aTag == nsSVGAtoms::textPath) {
newFrame = NS_NewSVGTextPathFrame(mPresShell, aContent, aParentFrame, aStyleContext);
nsISVGTextContentMetrics* metrics;
CallQueryInterface(aParentFrame, &metrics);
if (metrics) {
newFrame = NS_NewSVGTextPathFrame(mPresShell, aContent, aParentFrame, aStyleContext);
}
}
else if (aTag == nsSVGAtoms::filter) {
newFrame = NS_NewSVGFilterFrame(mPresShell, aContent, aStyleContext);