| Index: third_party/WebKit/Source/platform/fonts/mac/CoreTextVariationsSupport.cpp
|
| diff --git a/third_party/WebKit/Source/platform/fonts/mac/CoreTextVariationsSupport.cpp b/third_party/WebKit/Source/platform/fonts/mac/CoreTextVariationsSupport.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f41d251be97cdff44c0298361c266a5186ff6e12
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/platform/fonts/mac/CoreTextVariationsSupport.cpp
|
| @@ -0,0 +1,20 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "CoreTextVariationsSupport.h"
|
| +
|
| +#include <CoreText/CoreText.h>
|
| +
|
| +namespace blink {
|
| +
|
| +// Compare CoreText.h in an up to date SDK, redefining here since we don't seem
|
| +// to have access to this value when building against the 10.10 SDK in our
|
| +// standard Chrome build configuration.
|
| +static const long kBlinkLocalCTVersionNumber10_12 = 0x00090000;
|
| +
|
| +bool CoreTextVersionSupportsVariations() {
|
| + return &CTGetCoreTextVersion &&
|
| + CTGetCoreTextVersion() >= kBlinkLocalCTVersionNumber10_12;
|
| +}
|
| +}
|
|
|