mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 00:38: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
|
|
@ -364,6 +364,11 @@ protected:
|
|||
*
|
||||
* No-op if aImage is null.
|
||||
*
|
||||
* @param aFrame If called from FrameCreated the frame passed to FrameCreated.
|
||||
* This is our frame, but at the time of the FrameCreated call
|
||||
* our primary frame pointer hasn't been set yet, so this is
|
||||
* only way to get our frame.
|
||||
*
|
||||
* @param aNonvisibleAction A requested action if the frame has become
|
||||
* nonvisible. If Nothing(), no action is
|
||||
* requested. If DISCARD_IMAGES is specified, the
|
||||
|
|
@ -371,7 +376,7 @@ protected:
|
|||
* associated with to discard their surfaces if
|
||||
* possible.
|
||||
*/
|
||||
void TrackImage(imgIRequest* aImage);
|
||||
void TrackImage(imgIRequest* aImage, nsIFrame* aFrame = nullptr);
|
||||
void UntrackImage(imgIRequest* aImage,
|
||||
const Maybe<OnNonvisible>& aNonvisibleAction = Nothing());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue