pass url into image loader

This commit is contained in:
kipp
1998-05-29 02:16:46 +00:00
parent 61874624db
commit a25ab56b44

View File

@@ -448,6 +448,11 @@ nsInputButtonFrame::GetDesiredSize(nsIPresContext* aPresContext,
}
else {
if (kButton_Image == GetButtonType()) { // there is an image
// Setup url before starting the image load
nsAutoString src;
if (eContentAttr_HasValue == mContent->GetAttribute("SRC", src)) {
mImageLoader.SetURL(src);
}
mImageLoader.GetDesiredSize(aPresContext, this,
aDesiredLayoutSize, aMaxSize);
}