forked from mirrors/gecko-dev
Bug 847223. Part 7. Stop assuming all images are visible on frame create. r=mats
This commit is contained in:
parent
84c603d990
commit
1233198e23
1 changed files with 1 additions and 5 deletions
|
|
@ -427,11 +427,6 @@ nsImageLoadingContent::FrameCreated(nsIFrame* aFrame)
|
||||||
IncrementVisibleCount();
|
IncrementVisibleCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
nsPresContext* presContext = aFrame->PresContext();
|
|
||||||
if (mVisibleCount == 0) {
|
|
||||||
presContext->PresShell()->EnsureImageInVisibleList(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// We pass the SKIP_FRAME_CHECK flag to TrackImage here because our primary
|
// We pass the SKIP_FRAME_CHECK flag to TrackImage here because our primary
|
||||||
// frame pointer hasn't been setup yet when this is caled.
|
// frame pointer hasn't been setup yet when this is caled.
|
||||||
TrackImage(mCurrentRequest, SKIP_FRAME_CHECK);
|
TrackImage(mCurrentRequest, SKIP_FRAME_CHECK);
|
||||||
|
|
@ -439,6 +434,7 @@ nsImageLoadingContent::FrameCreated(nsIFrame* aFrame)
|
||||||
|
|
||||||
// We need to make sure that our image request is registered, if it should
|
// We need to make sure that our image request is registered, if it should
|
||||||
// be registered.
|
// be registered.
|
||||||
|
nsPresContext* presContext = aFrame->PresContext();
|
||||||
if (mCurrentRequest) {
|
if (mCurrentRequest) {
|
||||||
nsLayoutUtils::RegisterImageRequestIfAnimated(presContext, mCurrentRequest,
|
nsLayoutUtils::RegisterImageRequestIfAnimated(presContext, mCurrentRequest,
|
||||||
&mCurrentRequestRegistered);
|
&mCurrentRequestRegistered);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue