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)

enhancement

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?
Priority: -- → P3
Whiteboard: gfx-noted
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
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.

Attachment

General

Created:
Updated:
Size: