Make sure to not return uninitialized stuff. Bug 232317, r+sr=jst

This commit is contained in:
bzbarsky%mit.edu 2004-01-27 22:24:02 +00:00
parent bc2c6161ab
commit 317cfcd106

View File

@ -377,7 +377,7 @@ nsHTMLImageElement::GetY(PRInt32* aY)
nsSize nsSize
nsHTMLImageElement::GetWidthHeight() nsHTMLImageElement::GetWidthHeight()
{ {
nsSize size; nsSize size(0,0);
if (mDocument) { if (mDocument) {
// Flush all pending notifications so that our frames are up to date. // Flush all pending notifications so that our frames are up to date.