Fix Thunderbird/--disable-svg bustage from bug 379178. rs=jwatt

This commit is contained in:
jwalden@mit.edu 2007-08-06 11:00:01 -07:00
Родитель f9a22dd005
Коммит a709e174c7
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -50,7 +50,10 @@
#include "nsICSSStyleRule.h" #include "nsICSSStyleRule.h"
#include "nsICSSParser.h" #include "nsICSSParser.h"
#include "nsICSSLoader.h" #include "nsICSSLoader.h"
#ifdef MOZ_SVG
#include "nsIDOMSVGStylable.h" #include "nsIDOMSVGStylable.h"
#endif
//---------------------------------------------------------------------- //----------------------------------------------------------------------
// nsIContent methods // nsIContent methods
@ -83,8 +86,10 @@ nsStyledElement::ParseAttribute(PRInt32 aNamespaceID, nsIAtom* aAttribute,
return PR_TRUE; return PR_TRUE;
} }
if (aAttribute == nsGkAtoms::_class) { if (aAttribute == nsGkAtoms::_class) {
#ifdef MOZ_SVG
NS_ASSERTION(!nsCOMPtr<nsIDOMSVGStylable>(do_QueryInterface(this)), NS_ASSERTION(!nsCOMPtr<nsIDOMSVGStylable>(do_QueryInterface(this)),
"SVG code should have handled this 'class' attribute!"); "SVG code should have handled this 'class' attribute!");
#endif
aResult.ParseAtomArray(aValue); aResult.ParseAtomArray(aValue);
return PR_TRUE; return PR_TRUE;
} }