Closed Bug 1429979 Opened 6 years ago Closed 6 years ago

Some clean up for ImageLoader

Categories

(Core :: CSS Parsing and Computation, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

Details

Attachments

(3 files)

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.

Attachment

General

Created:
Updated:
Size: