mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
Bug 1346501. Don't mark every image as visible when a frame is created for it
This commit is contained in:
parent
2a6262ee6d
commit
ece6d716f4
4 changed files with 37 additions and 11 deletions
|
|
@ -159,6 +159,12 @@ nsSVGImageFrame::Init(nsIContent* aContent,
|
|||
if (GetStateBits() & NS_FRAME_IS_NONDISPLAY) {
|
||||
// Non-display frames are likely to be patterns, masks or the like.
|
||||
// Treat them as always visible.
|
||||
// This call must happen before the FrameCreated. This is because the
|
||||
// primary frame pointer on our content node isn't set until after this
|
||||
// function ends, so there is no way for the resulting OnVisibilityChange
|
||||
// notification to get a frame. FrameCreated has a workaround for this in
|
||||
// that it passes our frame around so it can be accessed. OnVisibilityChange
|
||||
// doesn't have that workaround.
|
||||
IncApproximateVisibleCount();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue