Bug 865945. Increment the visible count before calling FrameCreated so that the image for an SVGFEImage element is actually considered visible. r=mats

This commit is contained in:
Timothy Nikkel 2013-04-26 14:58:15 -05:00
parent 670b423305
commit 6542a83d06

View File

@ -110,9 +110,11 @@ SVGFEImageFrame::Init(nsIContent* aContent,
do_QueryInterface(SVGFEImageFrameBase::mContent);
if (imageLoader) {
imageLoader->FrameCreated(this);
// We assume that feImage's are always visible.
// Increment the visible count before calling FrameCreated so that
// FrameCreated will actually track the image correctly.
imageLoader->IncrementVisibleCount();
imageLoader->FrameCreated(this);
}
}