Bug 238050 - implement SVG markers. r=scooter, moz common files sr=dbaron
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user