Fixing nsbeta3+ bug 28277. Add a callback to nsHTMLImageElement so that we know when a image created in JavaScript has loaded (or fails to load), this is needed to support onload and onerror event fireing and also to support the '.complete' property on images create in JavaScript. r=nisheeth@netscape.com
git-svn-id: svn://10.0.0.236/trunk@77858 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -107,7 +107,7 @@ nsHTMLImageLoader::StopLoadImage(nsIPresContext* aPresContext)
|
||||
void
|
||||
nsHTMLImageLoader::StopAllLoadImages(nsIPresContext* aPresContext)
|
||||
{
|
||||
aPresContext->StopAllLoadImagesFor(mFrame);
|
||||
aPresContext->StopAllLoadImagesFor(mFrame, mFrame);
|
||||
}
|
||||
|
||||
nsresult
|
||||
@@ -203,7 +203,7 @@ nsHTMLImageLoader::StartLoadImage(nsIPresContext* aPresContext)
|
||||
nsresult rv = aPresContext->StartLoadImage(*urlSpec, nsnull,
|
||||
sizeToLoadWidth,
|
||||
mFrame, ImageLoadCB, (void*)this,
|
||||
&mImageLoader);
|
||||
mFrame, &mImageLoader);
|
||||
#ifdef NOISY_IMAGE_LOADING
|
||||
nsFrame::ListTag(stdout, mFrame);
|
||||
printf(": loading image '");
|
||||
|
||||
Reference in New Issue
Block a user