mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 676054 - part1: Cleanup after the additional doc sheets patch. r=bz
This commit is contained in:
parent
5038f543ad
commit
5f5d74eb5c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user