зеркало из https://github.com/mozilla/gecko-dev.git
Fix Thunderbird/--disable-svg bustage from bug 379178. rs=jwatt
This commit is contained in:
Родитель
f9a22dd005
Коммит
a709e174c7
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче