Some clean up for ImageLoader

RESOLVED FIXED in Firefox 59

Status

()

enhancement
P3
normal
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: TYLin, Assigned: TYLin)

Tracking

unspecified
mozilla59
Points:
---

Firefox Tracking Flags

(firefox59 fixed)

Details

Attachments

(3 attachments)

While modifying ImageLoader for shape-outside: <image>, I found some part of ImageLoadder can benefit from new hash table APIs or C++ features. Patches are coming.
Comment on attachment 8942039 [details]
Bug 1429979 Part 1 - Use LookupForAdd() to avoid explicit new nsAutoPtr.

https://reviewboard.mozilla.org/r/212248/#review218056
Attachment #8942039 - Flags: review?(cam) → review+
Comment on attachment 8942040 [details]
Bug 1429979 Part 2 - Use ranged-based for loop to iterate FrameSet.

https://reviewboard.mozilla.org/r/212250/#review218058
Attachment #8942040 - Flags: review?(cam) → review+
Comment on attachment 8942041 [details]
Bug 1429979 Part 3 - Use nsClassHashtable::Get() which directly returns the value.

https://reviewboard.mozilla.org/r/212252/#review218062
Attachment #8942041 - Flags: review?(cam) → review+
Pushed by tlin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5fc44817e833
Part 1 - Use LookupForAdd() to avoid explicit new nsAutoPtr. r=heycam
https://hg.mozilla.org/integration/autoland/rev/0cef7b376e37
Part 2 - Use ranged-based for loop to iterate FrameSet. r=heycam
https://hg.mozilla.org/integration/autoland/rev/4a9f600f5658
Part 3 - Use nsClassHashtable::Get() which directly returns the value. r=heycam
You need to log in before you can comment on or make changes to this bug.