diff --git a/content/html/style/src/nsCSSLoader.cpp b/content/html/style/src/nsCSSLoader.cpp index 29284a66029..365f307e3b8 100644 --- a/content/html/style/src/nsCSSLoader.cpp +++ b/content/html/style/src/nsCSSLoader.cpp @@ -1247,8 +1247,11 @@ CSSLoaderImpl::LoadSheet(URLKey& aKey, SheetLoadData* aData) #else isLocalFile = IsFileURI(urlClone); #endif - nsLoadFlags loadAttributes = (isLocalFile ? nsIChannel::LOAD_NORMAL - : nsIChannel::FORCE_RELOAD); + nsLoadFlags loadAttributes; + if (isLocalFile) + loadAttributes = (nsLoadFlags)nsIChannel::LOAD_NORMAL; + else + loadAttributes = (nsLoadFlags)nsIChannel::FORCE_RELOAD; result = NS_NewStreamLoader(&loader, urlClone, aData, nsnull, loadGroup, nsnull, loadAttributes); #ifdef NS_DEBUG diff --git a/layout/html/style/src/nsCSSLoader.cpp b/layout/html/style/src/nsCSSLoader.cpp index 29284a66029..365f307e3b8 100644 --- a/layout/html/style/src/nsCSSLoader.cpp +++ b/layout/html/style/src/nsCSSLoader.cpp @@ -1247,8 +1247,11 @@ CSSLoaderImpl::LoadSheet(URLKey& aKey, SheetLoadData* aData) #else isLocalFile = IsFileURI(urlClone); #endif - nsLoadFlags loadAttributes = (isLocalFile ? nsIChannel::LOAD_NORMAL - : nsIChannel::FORCE_RELOAD); + nsLoadFlags loadAttributes; + if (isLocalFile) + loadAttributes = (nsLoadFlags)nsIChannel::LOAD_NORMAL; + else + loadAttributes = (nsLoadFlags)nsIChannel::FORCE_RELOAD; result = NS_NewStreamLoader(&loader, urlClone, aData, nsnull, loadGroup, nsnull, loadAttributes); #ifdef NS_DEBUG diff --git a/layout/style/nsCSSLoader.cpp b/layout/style/nsCSSLoader.cpp index 29284a66029..365f307e3b8 100644 --- a/layout/style/nsCSSLoader.cpp +++ b/layout/style/nsCSSLoader.cpp @@ -1247,8 +1247,11 @@ CSSLoaderImpl::LoadSheet(URLKey& aKey, SheetLoadData* aData) #else isLocalFile = IsFileURI(urlClone); #endif - nsLoadFlags loadAttributes = (isLocalFile ? nsIChannel::LOAD_NORMAL - : nsIChannel::FORCE_RELOAD); + nsLoadFlags loadAttributes; + if (isLocalFile) + loadAttributes = (nsLoadFlags)nsIChannel::LOAD_NORMAL; + else + loadAttributes = (nsLoadFlags)nsIChannel::FORCE_RELOAD; result = NS_NewStreamLoader(&loader, urlClone, aData, nsnull, loadGroup, nsnull, loadAttributes); #ifdef NS_DEBUG