Closed Bug 1203809 Opened 10 years ago Closed 10 years ago

pass gfxTextPerfMetrics object into CreateFontGroup constructor

Categories

(Core :: Graphics: Text, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla43
Tracking Status
firefox43 --- fixed

People

(Reporter: jtd, Assigned: jtd)

References

Details

Attachments

(1 file)

The gfxTextPerfMetrics object is set on font groups after they are constructed. For example, within nsFontMetrics::Init: mFontGroup = gfxPlatform::GetPlatform()-> CreateFontGroup(aFont.fontlist, &style, aUserFontSet); mFontGroup->SetTextPerfMetrics(aTextPerf); This means that any statistic related to fontlist initialization within the gfxFontGroup constructor can't be included because it's not initialized yet. I think it would make sense to simply initialize gfxFontGroup with this and avoid the awkward "initialize after construction" step.
Attachment #8659683 - Flags: review?(m_kato)
Attachment #8659683 - Flags: review?(m_kato) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: