mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 04:41:11 +00:00
Bug 1866010 p2. Update UpdateContentViewerRegistration to reflect nsIDocumentViewer's new name. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D194358
This commit is contained in:
parent
cff6dabef0
commit
85bdec26c1
@ -25,7 +25,7 @@ struct ImageEnablementCookie {
|
|||||||
const nsLiteralCString mMimeType;
|
const nsLiteralCString mMimeType;
|
||||||
};
|
};
|
||||||
|
|
||||||
static void UpdateContentViewerRegistration(const char* aPref, void* aData) {
|
static void UpdateDocumentViewerRegistration(const char* aPref, void* aData) {
|
||||||
auto* cookie = static_cast<ImageEnablementCookie*>(aData);
|
auto* cookie = static_cast<ImageEnablementCookie*>(aData);
|
||||||
|
|
||||||
nsCOMPtr<nsICategoryManager> catMan =
|
nsCOMPtr<nsICategoryManager> catMan =
|
||||||
@ -60,9 +60,9 @@ nsresult mozilla::image::EnsureModuleInitialized() {
|
|||||||
mozilla::StaticPrefs::image_avif_enabled, "image/avif"_ns};
|
mozilla::StaticPrefs::image_avif_enabled, "image/avif"_ns};
|
||||||
static ImageEnablementCookie kJXLCookie = {
|
static ImageEnablementCookie kJXLCookie = {
|
||||||
mozilla::StaticPrefs::image_jxl_enabled, "image/jxl"_ns};
|
mozilla::StaticPrefs::image_jxl_enabled, "image/jxl"_ns};
|
||||||
Preferences::RegisterCallbackAndCall(UpdateContentViewerRegistration,
|
Preferences::RegisterCallbackAndCall(UpdateDocumentViewerRegistration,
|
||||||
"image.avif.enabled", &kAVIFCookie);
|
"image.avif.enabled", &kAVIFCookie);
|
||||||
Preferences::RegisterCallbackAndCall(UpdateContentViewerRegistration,
|
Preferences::RegisterCallbackAndCall(UpdateDocumentViewerRegistration,
|
||||||
"image.jxl.enabled", &kJXLCookie);
|
"image.jxl.enabled", &kJXLCookie);
|
||||||
|
|
||||||
mozilla::image::ShutdownTracker::Initialize();
|
mozilla::image::ShutdownTracker::Initialize();
|
||||||
|
Loading…
Reference in New Issue
Block a user