Closed Bug 1141376 Opened 9 years ago Closed 9 years ago

Stop calling OnSizeAvailable in nsImageFrame::Init

Categories

(Core :: Graphics: ImageLib, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla39
Tracking Status
firefox37 --- wontfix
firefox38 --- fixed
firefox39 --- fixed
b2g-v2.2 --- fixed
b2g-master --- fixed

People

(Reporter: seth, Assigned: seth)

References

Details

Attachments

(1 file)

After bug 1103157, there's no need to cache the image or call OnSizeAvailable in nsImageFrame::Init. SIZE_AVAILABLE is always delivered now. It was an oversight that this code wasn't removed in that bug.
Here's the patch.
Attachment #8574972 - Flags: review?(tnikkel)
Attachment #8574972 - Flags: review?(tnikkel) → review+
Blocks: 1083072
https://hg.mozilla.org/mozilla-central/rev/915f028b125e
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Comment on attachment 8574972 [details] [diff] [review]
Do not call OnSizeAvailable in nsImageFrame::Init

Approval Request Comment
[Feature/regressing bug #]: srcset
[User impact if declined]: Images intermittently fail to display. This is bug 1083072, which is tracked. We want this to come together with bug 1019840, which is the main fix for bug 1083072.
[Describe test coverage new/current, TreeHerder]: On m-c for days now.
[Risks and why]: Should be pretty low risk.
[String/UUID change made/needed]: None.
Attachment #8574972 - Flags: approval-mozilla-aurora?
Comment on attachment 8574972 [details] [diff] [review]
Do not call OnSizeAvailable in nsImageFrame::Init

Also requesting approval for b2g37 because we want this in conjunction with bug 1019840.
Attachment #8574972 - Flags: approval-mozilla-b2g37?
Attachment #8574972 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Attachment #8574972 - Flags: approval-mozilla-b2g37? → approval-mozilla-b2g37+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: