Fixed an oopsie that prevented enumerating the override and backstop sheets
git-svn-id: svn://10.0.0.236/trunk@26153 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -263,7 +263,7 @@ PRInt32 StyleSetImpl::GetNumberOfOverrideStyleSheets()
|
||||
nsIStyleSheet* StyleSetImpl::GetOverrideStyleSheetAt(PRInt32 aIndex)
|
||||
{
|
||||
nsIStyleSheet* sheet = nsnull;
|
||||
if (nsnull == mOverrideSheets) {
|
||||
if (nsnull != mOverrideSheets) {
|
||||
sheet = (nsIStyleSheet*)mOverrideSheets->ElementAt(aIndex);
|
||||
}
|
||||
return sheet;
|
||||
@@ -378,7 +378,7 @@ PRInt32 StyleSetImpl::GetNumberOfBackstopStyleSheets()
|
||||
nsIStyleSheet* StyleSetImpl::GetBackstopStyleSheetAt(PRInt32 aIndex)
|
||||
{
|
||||
nsIStyleSheet* sheet = nsnull;
|
||||
if (nsnull == mBackstopSheets) {
|
||||
if (nsnull != mBackstopSheets) {
|
||||
sheet = (nsIStyleSheet*)mBackstopSheets->ElementAt(aIndex);
|
||||
}
|
||||
return sheet;
|
||||
|
||||
Reference in New Issue
Block a user