Fix for Bug 302640 -- hasFeature for SVG DOM implementation yields true with native SVG disabled

r=jwatt
This commit is contained in:
scootermorris%comcast.net 2005-09-14 23:30:37 +00:00
Родитель d8fea50f09
Коммит 3cea38d119
2 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -38,10 +38,14 @@
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#include "nsString.h" #include "nsString.h"
#include "nsSVGUtils.h"
// Test to see if a feature is implemented // Test to see if a feature is implemented
PRBool PRBool
NS_SVG_TestFeature(const nsAString& fstr) { NS_SVG_TestFeature(const nsAString& fstr) {
if (!nsSVGUtils::SVGEnabled()) {
return PR_FALSE;
}
nsAutoString lstr(fstr); nsAutoString lstr(fstr);
lstr.StripWhitespace(); lstr.StripWhitespace();

Просмотреть файл

@ -37,6 +37,9 @@
#ifndef NS_SVGUTILS_H #ifndef NS_SVGUTILS_H
#define NS_SVGUTILS_H #define NS_SVGUTILS_H
// Need this to get nsPresContext
#include "nsContentUtils.h"
class nsPresContext; class nsPresContext;
class nsIContent; class nsIContent;
class nsStyleCoord; class nsStyleCoord;