Open Bug 1915817 Opened 1 year ago Updated 1 year ago

make imgRequest BoostPriority calls a little smarter for image frames

Categories

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

enhancement

Tracking

()

People

(Reporter: tnikkel, Unassigned)

Details

We currently call BoostPriority for nsImageFrame from nsImageFrame::Init and nsImageFrame::BuildDisplayList if we are displaying alt feedback.

We might not display alt feedback when we want to display an image, so we should look into changing that (BoostPriority anytime in BuildDisplayList and we are still loading, or anytime we haven't got a complete frame or something).

We should maybe also call BoostPriority if after the first reflow we determine the image is visible:
https://searchfox.org/mozilla-central/rev/cb5faf5dd5176494302068c553da97b4d08aa339/layout/generic/nsImageFrame.cpp#1608

You need to log in before you can comment on or make changes to this bug.