Count() is no longer const
git-svn-id: svn://10.0.0.236/trunk@31215 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1804,7 +1804,8 @@ void CSSStyleSheetImpl::AppendStyleRule(nsICSSStyleRule* aRule)
|
||||
PRInt32 CSSStyleSheetImpl::StyleRuleCount(void) const
|
||||
{
|
||||
if (mOrderedRules.IsNotNull()) {
|
||||
return mOrderedRules->Count();
|
||||
// cast away const-ness
|
||||
return ((nsISupportsArrayPtr)mOrderedRules)->Count();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1883,7 +1884,8 @@ void CSSStyleSheetImpl::List(FILE* out, PRInt32 aIndent) const
|
||||
child = ((CSSStyleSheetImpl*)child)->mNext;
|
||||
}
|
||||
|
||||
PRInt32 count = (mWeightedRules.IsNotNull() ? mWeightedRules->Count() : 0);
|
||||
// cast away const-ness
|
||||
PRInt32 count = (mWeightedRules.IsNotNull() ? ((nsISupportsArrayPtr)mWeightedRules)->Count() : 0);
|
||||
|
||||
for (index = 0; index < count; index++) {
|
||||
nsICSSStyleRulePtr rule = (nsICSSStyleRule*)mWeightedRules->ElementAt(index);
|
||||
|
||||
@@ -1804,7 +1804,8 @@ void CSSStyleSheetImpl::AppendStyleRule(nsICSSStyleRule* aRule)
|
||||
PRInt32 CSSStyleSheetImpl::StyleRuleCount(void) const
|
||||
{
|
||||
if (mOrderedRules.IsNotNull()) {
|
||||
return mOrderedRules->Count();
|
||||
// cast away const-ness
|
||||
return ((nsISupportsArrayPtr)mOrderedRules)->Count();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1883,7 +1884,8 @@ void CSSStyleSheetImpl::List(FILE* out, PRInt32 aIndent) const
|
||||
child = ((CSSStyleSheetImpl*)child)->mNext;
|
||||
}
|
||||
|
||||
PRInt32 count = (mWeightedRules.IsNotNull() ? mWeightedRules->Count() : 0);
|
||||
// cast away const-ness
|
||||
PRInt32 count = (mWeightedRules.IsNotNull() ? ((nsISupportsArrayPtr)mWeightedRules)->Count() : 0);
|
||||
|
||||
for (index = 0; index < count; index++) {
|
||||
nsICSSStyleRulePtr rule = (nsICSSStyleRule*)mWeightedRules->ElementAt(index);
|
||||
|
||||
@@ -1804,7 +1804,8 @@ void CSSStyleSheetImpl::AppendStyleRule(nsICSSStyleRule* aRule)
|
||||
PRInt32 CSSStyleSheetImpl::StyleRuleCount(void) const
|
||||
{
|
||||
if (mOrderedRules.IsNotNull()) {
|
||||
return mOrderedRules->Count();
|
||||
// cast away const-ness
|
||||
return ((nsISupportsArrayPtr)mOrderedRules)->Count();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1883,7 +1884,8 @@ void CSSStyleSheetImpl::List(FILE* out, PRInt32 aIndent) const
|
||||
child = ((CSSStyleSheetImpl*)child)->mNext;
|
||||
}
|
||||
|
||||
PRInt32 count = (mWeightedRules.IsNotNull() ? mWeightedRules->Count() : 0);
|
||||
// cast away const-ness
|
||||
PRInt32 count = (mWeightedRules.IsNotNull() ? ((nsISupportsArrayPtr)mWeightedRules)->Count() : 0);
|
||||
|
||||
for (index = 0; index < count; index++) {
|
||||
nsICSSStyleRulePtr rule = (nsICSSStyleRule*)mWeightedRules->ElementAt(index);
|
||||
|
||||
Reference in New Issue
Block a user