зеркало из 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 ***** */
|
||||
|
||||
#include "nsString.h"
|
||||
#include "nsSVGUtils.h"
|
||||
|
||||
// Test to see if a feature is implemented
|
||||
PRBool
|
||||
NS_SVG_TestFeature(const nsAString& fstr) {
|
||||
if (!nsSVGUtils::SVGEnabled()) {
|
||||
return PR_FALSE;
|
||||
}
|
||||
nsAutoString lstr(fstr);
|
||||
lstr.StripWhitespace();
|
||||
|
||||
|
|
|
@ -37,6 +37,9 @@
|
|||
#ifndef NS_SVGUTILS_H
|
||||
#define NS_SVGUTILS_H
|
||||
|
||||
// Need this to get nsPresContext
|
||||
#include "nsContentUtils.h"
|
||||
|
||||
class nsPresContext;
|
||||
class nsIContent;
|
||||
class nsStyleCoord;
|
||||
|
|
Загрузка…
Ссылка в новой задаче