Init refcnt for html anchor rules

git-svn-id: svn://10.0.0.236/trunk@7280 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1998-08-04 23:06:39 +00:00
parent 49dff19b5f
commit 48351d5ffc
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