mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 345418 - ASSERTION: trying to construct an SVGTSpanFrame for an invalid container. r+sr=roc
This commit is contained in:
parent
b455552862
commit
073529ec03
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user