Skip to content

Commit

Permalink
Bug 865945. Increment the visible count before calling FrameCreated s…
Browse files Browse the repository at this point in the history
…o that the image for an SVGFEImage element is actually considered visible. r=mats
  • Loading branch information
tnikkel committed Apr 26, 2013
1 parent 670b423 commit 6542a83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layout/svg/SVGFEImageFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 6542a83

Please sign in to comment.