Closed Bug 507988 Opened 15 years ago Closed 13 years ago

gfx.downloadable_fonts.enabled should be live apply

Categories

(Core :: Graphics, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

Details

Attachments

(1 file)

prefs should really be live apply.... i'm not quite sure how to flush font face rules from existing pages, but we can at least let users influence new pages.
Attached patch proposalSplinter Review
Assignee: nobody → timeless
Status: NEW → ASSIGNED
Attachment #392224 - Flags: review?(jdaggett)
Comment on attachment 392224 [details] [diff] [review]
proposal

A couple drive-by comments....

>+#define GFX_DOWNLOADABLE_FONTS_ENABLED "gfx.downloadable_fonts.enabled"

How about making this a static const char* as well, like the CMS prefs?

>+    } else if (pref.EqualsLiteral(GFX_DOWNLOADABLE_FONTS_ENABLED)) {
>+        if (gPlatform)
>+            gPlatform->DownloadableFontsEnabled();

I don't see how just calling DownloadableFontsEnabled() here will cause the change to be noticed. Once sDownloadableFontsInitialized has been set to TRUE, that function becomes a no-op. Were you intending to reset that flag to FALSE here? (And then there'd be no need to actually call the function.)
Comment on attachment 392224 [details] [diff] [review]
proposal

The value of 'sDownloadableFontsInitialized' needs to be reset in the ::Observe method I think.

The patch on bug 504698 should resolve the lack of live apply for this pref.
Attachment #392224 - Flags: review?(jdaggett) → review-
This works as expected in current Aurora.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: