Fix style attribute, broken by bug #7639 checkin. (SVG only - not switched on in default builds)

This commit is contained in:
alex.fritze%crocodile-clips.com 2003-11-15 11:08:07 +00:00
parent 734ba628fe
commit 0134fc2c4a
4 changed files with 7 additions and 7 deletions

View File

@ -42,7 +42,7 @@
#include "nsISupports.h"
class nsIStyleRule;
class nsICSSStyleRule;
class nsIContent;
// {BD099C4C-8FA5-47c4-A44E-189B5AA5DBAF}
@ -54,7 +54,7 @@ class nsISVGStyleValue : public nsISupports
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISVGSTYLEVALUE_IID)
NS_IMETHOD GetStyleRule(nsIContent* aContent, nsIStyleRule** rule)=0;
NS_IMETHOD GetStyleRule(nsIContent* aContent, nsICSSStyleRule** rule)=0;
};
#endif // __NS_ISVGSTYLEVALUE_H__

View File

@ -52,7 +52,7 @@
#include "nsIServiceManager.h"
#include "nsIXBLService.h"
#include "nsSVGAtoms.h"
#include "nsIStyleRule.h"
#include "nsICSSStyleRule.h"
#include "nsIDOMSVGSVGElement.h"
#include "nsRuleWalker.h"
#include "nsSVGStyleValue.h"
@ -271,7 +271,7 @@ nsSVGElement::WalkContentStyleRules(nsRuleWalker* aRuleWalker)
}
NS_IMETHODIMP
nsSVGElement::GetInlineStyleRule(nsIStyleRule** aStyleRule)
nsSVGElement::GetInlineStyleRule(nsICSSStyleRule** aStyleRule)
{
return mStyle->GetStyleRule(this, aStyleRule);
}

View File

@ -139,7 +139,7 @@ public:
// NS_IMETHOD HasClass(nsIAtom* aClass) const;
NS_IMETHOD WalkContentStyleRules(nsRuleWalker* aRuleWalker);
NS_IMETHOD GetInlineStyleRule(nsIStyleRule** aStyleRule);
NS_IMETHOD GetInlineStyleRule(nsICSSStyleRule** aStyleRule);
// nsIDOMNode
NS_DECL_NSIDOMNODE

View File

@ -65,7 +65,7 @@ public:
NS_IMETHOD GetValueString(nsAString& aValue);
// nsISVGStyleValue interface:
NS_IMETHOD GetStyleRule(nsIContent* aContent, nsIStyleRule** rule);
NS_IMETHOD GetStyleRule(nsIContent* aContent, nsICSSStyleRule** rule);
protected:
// Implementation helpers:
@ -127,7 +127,7 @@ nsSVGStyleValue::GetValueString(nsAString& aValue)
// nsISVGStyleValue interface:
NS_IMETHODIMP
nsSVGStyleValue::GetStyleRule(nsIContent* aContent, nsIStyleRule** rule)
nsSVGStyleValue::GetStyleRule(nsIContent* aContent, nsICSSStyleRule** rule)
{
if (!mRule) {
UpdateStyleRule(aContent);