Bug 615658 - SMIL animation of some filter attributes don't invalidate correctly. r=jwatt, a=roc.

This commit is contained in:
Robert Longson
2010-12-05 11:37:45 +00:00
parent 9ca47f16e6
commit c903814622
3 changed files with 43 additions and 27 deletions

View File

@@ -4779,7 +4779,11 @@ nsCSSFrameConstructor::FindSVGData(nsIContent* aContent,
}
if ((aTag != nsGkAtoms::svg && !parentIsSVG) ||
(aTag == nsGkAtoms::desc || aTag == nsGkAtoms::title)) {
(aTag == nsGkAtoms::desc || aTag == nsGkAtoms::title ||
aTag == nsGkAtoms::feFuncR || aTag == nsGkAtoms::feFuncG ||
aTag == nsGkAtoms::feFuncB || aTag == nsGkAtoms::feFuncA ||
aTag == nsGkAtoms::feDistantLight || aTag == nsGkAtoms::fePointLight ||
aTag == nsGkAtoms::feSpotLight)) {
// Sections 5.1 and G.4 of SVG 1.1 say that SVG elements other than
// svg:svg not contained within svg:svg are incorrect, although they
// don't seem to specify error handling. Ignore them, since many of
@@ -4791,6 +4795,9 @@ nsCSSFrameConstructor::FindSVGData(nsIContent* aContent,
// adding to the undisplayed content map.
//
// We don't currently handle any UI for desc/title
//
// The filter types are children of filter elements that use their
// parent frames when necessary
return &sSuppressData;
}
@@ -4880,15 +4887,8 @@ nsCSSFrameConstructor::FindSVGData(nsIContent* aContent,
SIMPLE_SVG_CREATE(filter, NS_NewSVGFilterFrame),
SIMPLE_SVG_CREATE(pattern, NS_NewSVGPatternFrame),
SIMPLE_SVG_CREATE(mask, NS_NewSVGMaskFrame),
SIMPLE_SVG_CREATE(feDistantLight, NS_NewSVGLeafFrame),
SIMPLE_SVG_CREATE(fePointLight, NS_NewSVGLeafFrame),
SIMPLE_SVG_CREATE(feSpotLight, NS_NewSVGLeafFrame),
SIMPLE_SVG_CREATE(feBlend, NS_NewSVGLeafFrame),
SIMPLE_SVG_CREATE(feColorMatrix, NS_NewSVGLeafFrame),
SIMPLE_SVG_CREATE(feFuncR, NS_NewSVGLeafFrame),
SIMPLE_SVG_CREATE(feFuncG, NS_NewSVGLeafFrame),
SIMPLE_SVG_CREATE(feFuncB, NS_NewSVGLeafFrame),
SIMPLE_SVG_CREATE(feFuncA, NS_NewSVGLeafFrame),
SIMPLE_SVG_CREATE(feComposite, NS_NewSVGLeafFrame),
SIMPLE_SVG_CREATE(feComponentTransfer, NS_NewSVGLeafFrame),
SIMPLE_SVG_CREATE(feConvolveMatrix, NS_NewSVGLeafFrame),