Open Bug 467465 Opened 15 years ago Updated 1 year ago

change LookupLocalFont and MakePlatformFont in gfxPlatform to return already_AddRefed

Categories

(Core :: Graphics: Text, defect)

defect

Tracking

()

People

(Reporter: karlt, Unassigned)

Details

LookupLocalFont and MakePlatformFont in gfxPlatform currently return a new ref-counted object with a ref-count of 0.

It is more the custom, however, when returning a ref-counted object that the caller must manage, to return already_AddRefed (with a ref-count of 1 [or sometimes more]).
OS: Linux → All
Hardware: PC → All
Severity: normal → S3
Component: Graphics → Graphics: Text
You need to log in before you can comment on or make changes to this bug.