зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1850883 - Remove always-true OnHighSierraOrLater() and OnCatalinaOrLater() version checks. r=gfx-reviewers,lsalzman
And stop including nsCocoaFeatures.h where it's no longer needed. Firefox versions >= 116 only support macOS >= 10.15. High Sierra is macOS 10.13. Catalina is macOS 10.15. Differential Revision: https://phabricator.services.mozilla.com/D187645
This commit is contained in:
Родитель
884452f0dd
Коммит
468401c1af
|
@ -39,11 +39,6 @@
|
|||
#include "WebGLValidateStrings.h"
|
||||
#include <algorithm>
|
||||
|
||||
// needed to check if current OS is lower than 10.7
|
||||
#if defined(MOZ_WIDGET_COCOA)
|
||||
# include "nsCocoaFeatures.h"
|
||||
#endif
|
||||
|
||||
#include "mozilla/DebugOnly.h"
|
||||
#include "mozilla/dom/BindingUtils.h"
|
||||
#include "mozilla/dom/ImageData.h"
|
||||
|
|
|
@ -35,11 +35,6 @@
|
|||
#include "WebGLValidateStrings.h"
|
||||
#include <algorithm>
|
||||
|
||||
// needed to check if current OS is lower than 10.7
|
||||
#if defined(MOZ_WIDGET_COCOA)
|
||||
# include "nsCocoaFeatures.h"
|
||||
#endif
|
||||
|
||||
#include "mozilla/DebugOnly.h"
|
||||
#include "mozilla/dom/BindingUtils.h"
|
||||
#include "mozilla/dom/ImageData.h"
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
#endif
|
||||
|
||||
#include "nsIMemoryReporter.h"
|
||||
#include "nsCocoaFeatures.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
|
|
@ -83,7 +83,6 @@
|
|||
#elif defined(XP_MACOSX)
|
||||
# include "gfxPlatformMac.h"
|
||||
# include "gfxQuartzSurface.h"
|
||||
# include "nsCocoaFeatures.h"
|
||||
#elif defined(MOZ_WIDGET_GTK)
|
||||
# include "gfxPlatformGtk.h"
|
||||
#elif defined(ANDROID)
|
||||
|
|
|
@ -968,10 +968,11 @@ bool gfxPlatformMac::SupportsHDR() {
|
|||
if (GetScreenDepth() <= 24) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Screen is capable. Is the OS capable?
|
||||
#ifdef EARLY_BETA_OR_EARLIER
|
||||
// More-or-less supported in Catalina.
|
||||
return nsCocoaFeatures::OnCatalinaOrLater();
|
||||
return true;
|
||||
#else
|
||||
// Definitely supported in Big Sur.
|
||||
return nsCocoaFeatures::OnBigSurOrLater();
|
||||
|
@ -1014,13 +1015,7 @@ nsTArray<uint8_t> gfxPlatformMac::GetPlatformCMSOutputProfileData() {
|
|||
return result;
|
||||
}
|
||||
|
||||
bool gfxPlatformMac::CheckVariationFontSupport() {
|
||||
// We don't allow variation fonts to be enabled before 10.13,
|
||||
// as although the Core Text APIs existed, they are known to be
|
||||
// fairly buggy.
|
||||
// (Note that Safari also requires 10.13 for variation-font support.)
|
||||
return nsCocoaFeatures::OnHighSierraOrLater();
|
||||
}
|
||||
bool gfxPlatformMac::CheckVariationFontSupport() { return true; }
|
||||
|
||||
void gfxPlatformMac::InitPlatformGPUProcessPrefs() {
|
||||
FeatureState& gpuProc = gfxConfig::GetFeature(Feature::GPU_PROCESS);
|
||||
|
|
Загрузка…
Ссылка в новой задаче