added strength api to style rule

This commit is contained in:
peterl@netscape.com
1998-09-11 02:07:58 +00:00
parent 057ac03494
commit acc8eca532
7 changed files with 72 additions and 0 deletions

View File

@@ -57,6 +57,8 @@ public:
NS_IMETHOD Equals(const nsIStyleRule* aRule, PRBool& aValue) const;
NS_IMETHOD HashValue(PRUint32& aValue) const;
// Strength is an out-of-band weighting, always 0 here
NS_IMETHOD GetStrength(PRInt32& aStrength);
NS_IMETHOD MapStyleInto(nsIStyleContext* aContext, nsIPresContext* aPresContext);
@@ -90,6 +92,14 @@ HTMLAnchorRule::HashValue(PRUint32& aValue) const
return NS_OK;
}
// Strength is an out-of-band weighting, always 0 here
NS_IMETHODIMP
HTMLAnchorRule::GetStrength(PRInt32& aStrength)
{
aStrength = 0;
return NS_OK;
}
NS_IMETHODIMP
HTMLAnchorRule::MapStyleInto(nsIStyleContext* aContext, nsIPresContext* aPresContext)
{