Init refcnt for html anchor rules

This commit is contained in:
kipp@netscape.com
1998-08-04 23:06:39 +00:00
parent 7c981b0e7f
commit 81c8990d70
3 changed files with 36 additions and 0 deletions

View File

@@ -38,6 +38,9 @@ static NS_DEFINE_IID(kIHTMLContentIID, NS_IHTMLCONTENT_IID);
class HTMLAnchorRule : public nsIStyleRule {
public:
HTMLAnchorRule();
~HTMLAnchorRule();
NS_DECL_ISUPPORTS
virtual PRBool Equals(const nsIStyleRule* aRule) const;
@@ -50,6 +53,15 @@ public:
nscolor mColor;
};
HTMLAnchorRule::HTMLAnchorRule()
{
NS_INIT_REFCNT();
}
HTMLAnchorRule::~HTMLAnchorRule()
{
}
NS_IMPL_ISUPPORTS(HTMLAnchorRule, kIStyleRuleIID);
PRBool HTMLAnchorRule::Equals(const nsIStyleRule* aRule) const