Closed
Bug 1352977
Opened 8 years ago
Closed 8 years ago
Needs utilities to create font.name(-list).* pref names
Categories
(Core :: Graphics: Text, enhancement, P3)
Core
Graphics: Text
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: masayuki, Unassigned)
Details
(Whiteboard: gfx-noted)
Attachments
(1 file)
In a lot of places, gfx code creates a pref name of font.name.* and font.name-list.*.
I think that there should be:
gfxFontNamePrefName : public nsAutoCString
{
public:
gfxFontNamePrefName(const nsACString& aGenericFamily,
const nsACString& aLangGroup);
gfxFontNamePrefName(const nsACString& aGenericFamily,
const nsIAtom& aLangGroup);
}
gfxFontNameListPrefName : public nsAutoCString
{
public:
gfxFontNameListPrefName(const nsACString& aGenericFamily,
const nsACString& aLangGroup);
gfxFontNameListPrefName(const nsACString& aGenericFamily,
const nsIAtom& aLangGroup);
};
Any ideas? Just should be methods to modify nsAutoCString?
Updated•8 years ago
|
Priority: -- → P3
Whiteboard: gfx-noted
Comment 1•8 years ago
|
||
I suggest we do something like this... wdyt?
Attachment #8856507 -
Flags: review?(masayuki)
Reporter | ||
Comment 2•8 years ago
|
||
Comment on attachment 8856507 [details] [diff] [review]
Factor out helpers to construct the names for generic- and language-dependent font/font-list preferences
Ah, template. Looks great!
Attachment #8856507 -
Flags: review?(masayuki) → review+
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/04af8016735f
Factor out helpers to construct the names for generic- and language-dependent font/font-list preferences. r=masayuki
Comment 4•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in
before you can comment on or make changes to this bug.
Description
•