Bug 672014. Pass the crossorigin attribute through to image preloading code. r=joe,hsivonen

This commit is contained in:
Boris Zbarsky
2011-07-29 14:30:00 -04:00
parent 7ce099dc98
commit be843fdd7b
13 changed files with 262 additions and 226 deletions

View File

@@ -891,13 +891,14 @@ nsHtml5TreeOpExecutor::PreloadStyle(const nsAString& aURL,
}
void
nsHtml5TreeOpExecutor::PreloadImage(const nsAString& aURL)
nsHtml5TreeOpExecutor::PreloadImage(const nsAString& aURL,
const nsAString& aCrossOrigin)
{
nsCOMPtr<nsIURI> uri = ConvertIfNotPreloadedYet(aURL);
if (!uri) {
return;
}
mDocument->MaybePreLoadImage(uri);
mDocument->MaybePreLoadImage(uri, aCrossOrigin);
}
void