Bug 246857 - implement <svg:defs>. r=afri. Not in default build.

This commit is contained in:
tor@cs.brown.edu
2004-06-23 18:14:04 +00:00
parent d96656613a
commit ea17cdf5c2
13 changed files with 689 additions and 330 deletions

View File

@@ -178,6 +178,8 @@ extern nsresult
NS_NewSVGTextFrame(nsIPresShell* aPresShell, nsIContent* aContent, nsIFrame** aNewFrame);
extern nsresult
NS_NewSVGTSpanFrame(nsIPresShell* aPresShell, nsIContent* aContent, nsIFrame* parent, nsIFrame** aNewFrame);
extern nsresult
NS_NewSVGDefsFrame(nsIPresShell* aPresShell, nsIContent* aContent, nsIFrame** aNewFrame);
#endif
#include "nsIDocument.h"
@@ -6869,8 +6871,10 @@ nsCSSFrameConstructor::ConstructSVGFrame(nsIPresShell* aPresShell,
rv = NS_NewSVGPolylineFrame(aPresShell, aContent, &newFrame);
else if (aTag == nsSVGAtoms::circle)
rv = NS_NewSVGCircleFrame(aPresShell, aContent, &newFrame);
else if (aTag == nsSVGAtoms::defs)
rv = NS_NewSVGGenericContainerFrame(aPresShell, aContent, &newFrame);
else if (aTag == nsSVGAtoms::defs) {
processChildren = PR_TRUE;
rv = NS_NewSVGDefsFrame(aPresShell, aContent, &newFrame);
}
else if (aTag == nsSVGAtoms::ellipse)
rv = NS_NewSVGEllipseFrame(aPresShell, aContent, &newFrame);
else if (aTag == nsSVGAtoms::line)