Bug 374467 - some SVG elements are missing presentation attributes. r+sr=tor

This commit is contained in:
longsonr%gmail.com 2007-03-20 10:43:33 +00:00
parent f53097fdb5
commit f340fea8d1
10 changed files with 19 additions and 13 deletions

View File

@ -111,11 +111,13 @@ NS_IMETHODIMP_(PRBool)
nsSVGGElement::IsAttributeMapped(const nsIAtom* name) const
{
static const MappedAttributeEntry* const map[] = {
sColorMap,
sFEFloodMap,
sFiltersMap,
sFontSpecificationMap,
sGradientStopMap,
sMarkersMap,
sTextContentElementsMap,
sViewportsMap
};
return FindAttributeDependence(name, map, NS_ARRAY_LENGTH(map)) ||

View File

@ -265,9 +265,9 @@ NS_IMETHODIMP_(PRBool)
nsSVGGraphicElement::IsAttributeMapped(const nsIAtom* name) const
{
static const MappedAttributeEntry* const map[] = {
sColorMap,
sFillStrokeMap,
sGraphicsMap,
sColorMap
sGraphicsMap
};
return FindAttributeDependence(name, map, NS_ARRAY_LENGTH(map)) ||

View File

@ -152,7 +152,7 @@ NS_IMETHODIMP_(PRBool)
nsSVGLineElement::IsAttributeMapped(const nsIAtom* name) const
{
static const MappedAttributeEntry* const map[] = {
sMarkersMap,
sMarkersMap
};
return FindAttributeDependence(name, map, NS_ARRAY_LENGTH(map)) ||

View File

@ -419,7 +419,7 @@ NS_IMETHODIMP_(PRBool)
nsSVGPathElement::IsAttributeMapped(const nsIAtom* name) const
{
static const MappedAttributeEntry* const map[] = {
sMarkersMap,
sMarkersMap
};
return FindAttributeDependence(name, map, NS_ARRAY_LENGTH(map)) ||

View File

@ -100,7 +100,7 @@ NS_IMETHODIMP_(PRBool)
nsSVGPolyElement::IsAttributeMapped(const nsIAtom* name) const
{
static const MappedAttributeEntry* const map[] = {
sMarkersMap,
sMarkersMap
};
return FindAttributeDependence(name, map, NS_ARRAY_LENGTH(map)) ||

View File

@ -1092,8 +1092,8 @@ nsSVGSVGElement::IsAttributeMapped(const nsIAtom* name) const
static const MappedAttributeEntry* const map[] = {
sColorMap,
sFEFloodMap,
sFiltersMap,
sFillStrokeMap,
sFiltersMap,
sFontSpecificationMap,
sGradientStopMap,
sGraphicsMap,

View File

@ -110,6 +110,7 @@ nsSVGSwitchElement::IsAttributeMapped(const nsIAtom* name) const
{
static const MappedAttributeEntry* const map[] = {
sFEFloodMap,
sFiltersMap,
sFontSpecificationMap,
sGradientStopMap,
sMarkersMap,

View File

@ -173,10 +173,13 @@ NS_IMETHODIMP_(PRBool)
nsSVGSymbolElement::IsAttributeMapped(const nsIAtom* name) const
{
static const MappedAttributeEntry* const map[] = {
sColorMap,
sFEFloodMap,
sFillStrokeMap,
sFiltersMap,
sFontSpecificationMap,
sGradientStopMap,
sGraphicsMap,
sMarkersMap,
sTextContentElementsMap,
sViewportsMap

View File

@ -365,11 +365,11 @@ NS_IMETHODIMP_(PRBool)
nsSVGTSpanElement::IsAttributeMapped(const nsIAtom* name) const
{
static const MappedAttributeEntry* const map[] = {
sColorMap,
sFillStrokeMap,
sGraphicsMap,
sTextContentElementsMap,
sFontSpecificationMap,
sColorMap
sGraphicsMap,
sTextContentElementsMap
};
return FindAttributeDependence(name, map, NS_ARRAY_LENGTH(map)) ||

View File

@ -354,11 +354,11 @@ NS_IMETHODIMP_(PRBool)
nsSVGTextPathElement::IsAttributeMapped(const nsIAtom* name) const
{
static const MappedAttributeEntry* const map[] = {
sColorMap,
sFillStrokeMap,
sGraphicsMap,
sTextContentElementsMap,
sFontSpecificationMap,
sColorMap
sGraphicsMap,
sTextContentElementsMap
};
return FindAttributeDependence(name, map, NS_ARRAY_LENGTH(map)) ||