Closed
Bug 1031187
Opened 11 years ago
Closed 11 years ago
set family name on font entries more eagerly
Categories
(Core :: Graphics: Text, defect)
Core
Graphics: Text
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: heycam, Assigned: heycam)
References
Details
Attachments
(2 files)
6.10 KB,
patch
|
jtd
:
review+
|
Details | Diff | Splinter Review |
6.17 KB,
patch
|
jtd
:
review+
|
Details | Diff | Splinter Review |
In bug 1028497 we will need to be able to create gfxProxyFontEntry objects (and resolve them to real font entries) that haven't been added to a gfx{Mixed,}FontFamily. Currently mFontFamily on the entry is set only once the entry is added to the font family. For the font entry objects created outside the user font set to go in the user font cache, they need to have their mFamilyName set. This patch sets it as soon as we create a gfxProxyFontEntry and also once we resolve the gfxProxyFontEntry to an actual font entry. There are some situations where we don't have the font family name to store on the font entry -- such as in gfxMacFontFamily::FindStyleVariations -- so I've made gfx{Mixed,}FontFamily::AddFontEntry set the family name if it hasn't been set yet, and if it has been set already, assert that it's the same as the name on the family object.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → cam
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: x86_64 → All
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8447016 -
Flags: review?(jdaggett)
Assignee | ||
Comment 2•11 years ago
|
||
Now that we have a valid mFamilyName on all gfxProxyFontEntry objects, let's use it rather than the name from the gfxMixedFontFamily object when logging. In bug 1028497, gfxProxyFontEntry objects created without being added to the user font set won't have a gfxMixedFontFamily passed in to the logging functions, so this will make the family name come out in the logs.
Attachment #8447017 -
Flags: review?(jdaggett)
Assignee | ||
Comment 3•11 years ago
|
||
This depends on the part 1 refactoring in bug 754215.
Depends on: 754215
Updated•11 years ago
|
Attachment #8447016 -
Flags: review?(jdaggett) → review+
Updated•11 years ago
|
Attachment #8447017 -
Flags: review?(jdaggett) → review+
Assignee | ||
Comment 4•11 years ago
|
||
Comment 5•11 years ago
|
||
sorry had to backout this changes in https://tbpl.mozilla.org/?tree=Mozilla-Inbound&rev=0294fdaef9be since one of this changes caused test failures like https://tbpl.mozilla.org/php/getParsedLog.php?id=43424728&tree=Mozilla-Inbound
Assignee | ||
Comment 6•11 years ago
|
||
Comment 7•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/9ec5db6a1684
https://hg.mozilla.org/mozilla-central/rev/df4473d66d38
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
Comment 8•11 years ago
|
||
(In reply to Carsten Book [:Tomcat] from comment #7)
> https://hg.mozilla.org/mozilla-central/rev/9ec5db6a1684
> https://hg.mozilla.org/mozilla-central/rev/df4473d66d38
I verified that backing out these two changesets locally fixes bug 1037442 for me.
You need to log in
before you can comment on or make changes to this bug.
Description
•