Closed Bug 1820709 Opened 2 years ago Closed 2 years ago

fix image draw flags in nsImageFrame in a few places

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

defect

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: tnikkel, Assigned: tnikkel)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

No description provided.
Assignee: nobody → tnikkel
Status: NEW → ASSIGNED

This will mean we always pass FLAG_SYNC_DECODE_IF_FAST (unless we are already passing the sync decode flag). The fact that we weren't doing this already is an oversight, we want to do this for all images we paint on the normal painting path. However what makes this more important is that we folded nsImageBoxFrame into nsImageFrame recently (bug 1815229), and nsImageBoxFrame eagerly decodes all its images and keeps them decoded, and also uses FLAG_SYNC_DECODE_IF_FAST (because with multiple sized decodes eager decodes don't cover everything). So this should help us avoid regressing visually with xul images.

Severity: -- → S3
See Also: → 1815229
Pushed by tnikkel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f0f5af685009 Make nsDisplayAltFeedback::CreateWebRenderCommands sync decode just like nsDisplayAltFeedback::Paint. r=emilio
Pushed by tnikkel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8bfd8d7a043e Make nsImageFrame use nsDisplayListBuilder::GetImageDecodeFlags. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
Blocks: 1801052
Depends on: 1827318
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: