bug 147938 patch by paper r=dbaron sr=waterson

Don't Invalidate nsImageFrame area if it's hidden
This commit is contained in:
cbiesinger@web.de
2002-07-01 18:17:35 +00:00
parent 2a88317420
commit f04e6adf58
2 changed files with 12 additions and 0 deletions

View File

@@ -730,6 +730,12 @@ NS_IMETHODIMP nsImageFrame::FrameChanged(imgIContainer *aContainer, nsIPresConte
if (!mLoads[0].mRequest)
return NS_OK; // if mLoads[0].mRequest is null, this isn't for the first one, so we don't care about it.
const nsStyleVisibility* vis;
::GetStyleData(this, &vis);
if (!vis->IsVisible())
return NS_OK;
nsCOMPtr<imgIContainer> con;
mLoads[0].mRequest->GetImage(getter_AddRefs(con));
if (aContainer == con.get()) {