зеркало из https://github.com/mozilla/pjs.git
attempt to fix the SunOS build
This commit is contained in:
Родитель
0ef211cd0a
Коммит
b12e49442c
|
@ -1247,8 +1247,11 @@ CSSLoaderImpl::LoadSheet(URLKey& aKey, SheetLoadData* aData)
|
||||||
#else
|
#else
|
||||||
isLocalFile = IsFileURI(urlClone);
|
isLocalFile = IsFileURI(urlClone);
|
||||||
#endif
|
#endif
|
||||||
nsLoadFlags loadAttributes = (isLocalFile ? nsIChannel::LOAD_NORMAL
|
nsLoadFlags loadAttributes;
|
||||||
: nsIChannel::FORCE_RELOAD);
|
if (isLocalFile)
|
||||||
|
loadAttributes = (nsLoadFlags)nsIChannel::LOAD_NORMAL;
|
||||||
|
else
|
||||||
|
loadAttributes = (nsLoadFlags)nsIChannel::FORCE_RELOAD;
|
||||||
result = NS_NewStreamLoader(&loader, urlClone, aData, nsnull, loadGroup,
|
result = NS_NewStreamLoader(&loader, urlClone, aData, nsnull, loadGroup,
|
||||||
nsnull, loadAttributes);
|
nsnull, loadAttributes);
|
||||||
#ifdef NS_DEBUG
|
#ifdef NS_DEBUG
|
||||||
|
|
|
@ -1247,8 +1247,11 @@ CSSLoaderImpl::LoadSheet(URLKey& aKey, SheetLoadData* aData)
|
||||||
#else
|
#else
|
||||||
isLocalFile = IsFileURI(urlClone);
|
isLocalFile = IsFileURI(urlClone);
|
||||||
#endif
|
#endif
|
||||||
nsLoadFlags loadAttributes = (isLocalFile ? nsIChannel::LOAD_NORMAL
|
nsLoadFlags loadAttributes;
|
||||||
: nsIChannel::FORCE_RELOAD);
|
if (isLocalFile)
|
||||||
|
loadAttributes = (nsLoadFlags)nsIChannel::LOAD_NORMAL;
|
||||||
|
else
|
||||||
|
loadAttributes = (nsLoadFlags)nsIChannel::FORCE_RELOAD;
|
||||||
result = NS_NewStreamLoader(&loader, urlClone, aData, nsnull, loadGroup,
|
result = NS_NewStreamLoader(&loader, urlClone, aData, nsnull, loadGroup,
|
||||||
nsnull, loadAttributes);
|
nsnull, loadAttributes);
|
||||||
#ifdef NS_DEBUG
|
#ifdef NS_DEBUG
|
||||||
|
|
|
@ -1247,8 +1247,11 @@ CSSLoaderImpl::LoadSheet(URLKey& aKey, SheetLoadData* aData)
|
||||||
#else
|
#else
|
||||||
isLocalFile = IsFileURI(urlClone);
|
isLocalFile = IsFileURI(urlClone);
|
||||||
#endif
|
#endif
|
||||||
nsLoadFlags loadAttributes = (isLocalFile ? nsIChannel::LOAD_NORMAL
|
nsLoadFlags loadAttributes;
|
||||||
: nsIChannel::FORCE_RELOAD);
|
if (isLocalFile)
|
||||||
|
loadAttributes = (nsLoadFlags)nsIChannel::LOAD_NORMAL;
|
||||||
|
else
|
||||||
|
loadAttributes = (nsLoadFlags)nsIChannel::FORCE_RELOAD;
|
||||||
result = NS_NewStreamLoader(&loader, urlClone, aData, nsnull, loadGroup,
|
result = NS_NewStreamLoader(&loader, urlClone, aData, nsnull, loadGroup,
|
||||||
nsnull, loadAttributes);
|
nsnull, loadAttributes);
|
||||||
#ifdef NS_DEBUG
|
#ifdef NS_DEBUG
|
||||||
|
|
Загрузка…
Ссылка в новой задаче