icecat: add release icecat-140.6.0-1gnu1 for aramo
This commit is contained in:
parent
92fef42cd6
commit
17ba0259bf
3382 changed files with 457689 additions and 569094 deletions
|
|
@ -20,10 +20,6 @@
|
|||
using namespace mozilla;
|
||||
using mozilla::intl::OSPreferences;
|
||||
|
||||
static constexpr nsUConvProp encodingsGroups[] = {
|
||||
#include "encodingsgroups.properties.h"
|
||||
};
|
||||
|
||||
// List of mozilla internal x-* tags that map to themselves (see bug 256257)
|
||||
static constexpr nsStaticAtom* kLangGroups[] = {
|
||||
// This list must be sorted!
|
||||
|
|
@ -110,18 +106,6 @@ nsStaticAtom* nsLanguageAtomService::LookupLanguage(
|
|||
return GetLanguageGroup(lang);
|
||||
}
|
||||
|
||||
already_AddRefed<nsAtom> nsLanguageAtomService::LookupCharSet(
|
||||
NotNull<const Encoding*> aEncoding) {
|
||||
nsAutoCString charset;
|
||||
aEncoding->Name(charset);
|
||||
nsAutoCString group;
|
||||
if (NS_FAILED(nsUConvPropertySearch::SearchPropertyValue(
|
||||
encodingsGroups, std::size(encodingsGroups), charset, group))) {
|
||||
return RefPtr<nsAtom>(nsGkAtoms::Unicode).forget();
|
||||
}
|
||||
return NS_Atomize(group);
|
||||
}
|
||||
|
||||
nsAtom* nsLanguageAtomService::GetLocaleLanguage() {
|
||||
{
|
||||
AutoReadLock lock(mLock);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue