зеркало из https://github.com/mozilla/pjs.git
Fix for Bug 302640 -- hasFeature for SVG DOM implementation yields true with native SVG disabled
r=jwatt
This commit is contained in:
Родитель
d8fea50f09
Коммит
3cea38d119
|
@ -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;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче