Closed
Bug 1203809
Opened 10 years ago
Closed 10 years ago
pass gfxTextPerfMetrics object into CreateFontGroup constructor
Categories
(Core :: Graphics: Text, defect)
Core
Graphics: Text
Tracking
()
RESOLVED
FIXED
mozilla43
| Tracking | Status | |
|---|---|---|
| firefox43 | --- | fixed |
People
(Reporter: jtd, Assigned: jtd)
References
Details
Attachments
(1 file)
|
22.16 KB,
patch
|
m_kato
:
review+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8659683 -
Flags: review?(m_kato)
Updated•10 years ago
|
Attachment #8659683 -
Flags: review?(m_kato) → review+
Comment 3•10 years ago
|
||
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.
Description
•