Bug 473904 - Add an about:config option (defaulting to 'false' right now) for toggling SVG animation (SMIL) support. r+sr=roc

This commit is contained in:
Daniel Holbert
2009-03-09 18:20:17 -07:00
parent 0a1c4d5587
commit ed59bee452
7 changed files with 108 additions and 57 deletions

View File

@@ -1906,7 +1906,7 @@ nsGenericElement::InternalIsSupported(nsISupports* aObject,
}
#endif /* MOZ_SVG */
#ifdef MOZ_SMIL
else if (PL_strcasecmp(f, "TimeControl") == 0) {
else if (NS_SMILEnabled() && PL_strcasecmp(f, "TimeControl") == 0) {
if (aVersion.IsEmpty() || PL_strcmp(v, "1.0") == 0) {
*aReturn = PR_TRUE;
}