Put an Invalidate call in ::Reflow when the image has changed - image was not repainting before. b=21225 r=buster

git-svn-id: svn://10.0.0.236/trunk@63180 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
attinasi%netscape.com
2000-03-16 23:01:03 +00:00
parent 5a83b0ef42
commit 7816e0550c
2 changed files with 12 additions and 0 deletions

View File

@@ -884,6 +884,12 @@ nsBulletFrame::Reflow(nsIPresContext* aPresContext,
mStyleContext->GetStyleData(eStyleStruct_List);
if (myList->mListStyleImage != oldImageURL) {
mImageLoader.UpdateURLSpec(aPresContext, myList->mListStyleImage);
// XXX - invlidate here is fragile as our parent can choose to change our size
// however currently the parent accepts our size so this works.
// Also, it might be better to invalidate when the image has actually loaded
// instead of when we request the image to load...
// This, however, works as it is currently used (bug 8862 is fixed)
Invalidate(aPresContext, nsRect(0, 0, mRect.width, mRect.height));
}
}
}