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:
jst%netscape.com
2000-09-01 07:05:08 +00:00
parent cb8fe64ec2
commit 071de302f4
18 changed files with 288 additions and 130 deletions

View File

@@ -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 '");