Fixing regression bug 69716. Make nsHTMLImageElement::GetImageFrame() always initialize the out parameter. r=heikki@netscape.com, sr=hyatt@netscape.com

This commit is contained in:
jst%netscape.com 2001-02-23 03:04:38 +00:00
parent e3d6f6b0bf
commit 6a4e2b50c7

View File

@ -245,6 +245,9 @@ NS_IMPL_INT_ATTR(nsHTMLImageElement, Vspace, vspace)
nsresult
nsHTMLImageElement::GetImageFrame(nsIImageFrame** aImageFrame)
{
NS_ENSURE_ARG_POINTER(aImageFrame);
*aImageFrame = nsnull;
nsresult result;
nsCOMPtr<nsIPresContext> context;
nsCOMPtr<nsIPresShell> shell;