Bug 238050 - implement SVG markers. r=scooter, moz common files sr=dbaron

This commit is contained in:
tor@cs.brown.edu
2004-12-09 03:16:15 +00:00
parent 494d62ece4
commit 6b90fd9660
44 changed files with 3146 additions and 34 deletions

View File

@@ -209,6 +209,8 @@ extern nsresult
NS_NewSVGRadialGradientFrame(nsIPresShell *aPresShell, nsIContent *aContent, nsIFrame** newFrame);
extern nsresult
NS_NewSVGStopFrame(nsIPresShell *aPresShell, nsIContent *aContent, nsIFrame *aParentFrame, nsIFrame** newFrame);
nsresult
NS_NewSVGMarkerFrame(nsIPresShell* aPresShell, nsIContent* aContent, nsIFrame** aNewFrame);
#endif
#include "nsIDocument.h"
@@ -7290,6 +7292,10 @@ nsCSSFrameConstructor::ConstructSVGFrame(nsIPresShell* aPresShell,
processChildren = PR_TRUE;
rv = NS_NewSVGUseFrame(aPresShell, aContent, &newFrame);
}
else if (aTag == nsSVGAtoms::marker) {
processChildren = PR_TRUE;
rv = NS_NewSVGMarkerFrame(aPresShell, aContent, &newFrame);
}
if (newFrame == nsnull) {
// Either we have an unknown tag, or construction of a frame