Bug 676054 - part1: Cleanup after the additional doc sheets patch. r=bz

This commit is contained in:
Gabor Krizsanits 2012-10-16 21:42:37 +02:00
parent 5038f543ad
commit 5f5d74eb5c

View File

@ -3583,14 +3583,6 @@ nsDocument::GetStyleSheetAt(int32_t aIndex) const
int32_t
nsDocument::GetIndexOfStyleSheet(nsIStyleSheet* aSheet) const
{
if (mAdditionalSheets[eUserSheet].IndexOf(aSheet) >= 0 ||
mAdditionalSheets[eAgentSheet].IndexOf(aSheet) >= 0 ) {
// Returning INT32_MAX to make sure that additional sheets are
// in the style set of the PresShell will be always after the
// document sheets (even if document sheets are added dynamically).
return INT32_MAX;
}
return mStyleSheets.IndexOf(aSheet);
}