Closed Bug 1430312 Opened 7 years ago Closed 7 years ago

Use StaticRefPtr instead of raw pointer for nsImageFrame::gIconLoad

Categories

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

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

Attachments

(1 file)

Where possible/easy, we should be using StaticRefPtr rather than raw pointers for reference-counted global variables & static class-variables. Let's convert nsImageFrame::gIconLoad over. Patch coming up. (Note: I initially also started cleaning up "sIOService" which is in some contextual code here -- but that one's a bit trickier since it's initialized via CallGetService, which we only ever seem to use with raw pointers based on a quick search. So I'm leaving that one alone for now.)
Comment on attachment 8942379 [details] Bug 1430312: Use StaticRefPtr instead of raw pointer for nsImageFrame::gIconLoad. https://reviewboard.mozilla.org/r/212664/#review218388
Attachment #8942379 - Flags: review?(tnikkel) → review+
Pushed by dholbert@mozilla.com https://hg.mozilla.org/integration/autoland/rev/0a4e3d4de37415d0fec3f5bfb644ffa3da7eb659 Use StaticRefPtr instead of raw pointer for nsImageFrame::gIconLoad. r=tnikkel
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Depends on: 1432391
Product: Core → Core Graveyard
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: