Skip to content

Commit 688c678

Browse files
committed
Corrections
1 parent cf2d2ae commit 688c678

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

Source/CyberCore/platform/graphics/cg/NativeImageCG.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,14 @@ DestinationColorSpace NativeImage::colorSpace() const
7373
void NativeImage::draw(GraphicsContext& context, const FloatSize& imageSize, const FloatRect& destinationRect, const FloatRect& sourceRect, const ImagePaintingOptions& options)
7474
{
7575
auto isHDRColorSpace = [](CGColorSpaceRef colorSpace) -> bool {
76+
#if !PLATFORM(IOS) || __IPHONE_OS_VERSION_MIN_REQUIRED >= 130000
7677
ALLOW_DEPRECATED_DECLARATIONS_BEGIN
7778
return CGColorSpaceIsHDR(colorSpace);
7879
ALLOW_DEPRECATED_DECLARATIONS_END
80+
#else
81+
UNUSED_PARAM(colorSpace);
82+
return false;
83+
#endif
7984
};
8085

8186
auto isHDRNativeImage = [&](const NativeImage& image) -> bool {

Source/CyberKit/UIProcess/API/ios/WKWebViewIOS.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ - (void)_restorePageStateToUnobscuredCenter:(std::optional<CyberCore::FloatPoint
11971197

11981198
- (RefPtr<CyberKit::ViewSnapshot>)_takeViewSnapshot
11991199
{
1200-
#if HAVE(CORE_ANIMATION_RENDER_SERVER) && 0
1200+
#if HAVE(CORE_ANIMATION_RENDER_SERVER)
12011201
float deviceScale = CyberCore::screenScaleFactor();
12021202
CyberCore::FloatSize snapshotSize(self.bounds.size);
12031203
snapshotSize.scale(deviceScale);

Source/CyberKit/UIProcess/ios/fullscreen/WKFullScreenViewController.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,17 +212,21 @@ - (void)dealloc
212212
- (void)setSupportedOrientations:(UIInterfaceOrientationMask)supportedOrientations
213213
{
214214
_supportedOrientations = supportedOrientations;
215+
#if !PLATFORM(IOS) || __IPHONE_OS_VERSION_MAX_ALLOWED >= 160000
215216
if (@available(iOS 16.0, *)) {
216217
[self setNeedsUpdateOfSupportedInterfaceOrientations];
217218
}
219+
#endif
218220
}
219221

220222
- (void)resetSupportedOrientations
221223
{
222224
_supportedOrientations = std::nullopt;
225+
#if !PLATFORM(IOS) || __IPHONE_OS_VERSION_MAX_ALLOWED >= 160000
223226
if (@available(iOS 16.0, *)) {
224227
[self setNeedsUpdateOfSupportedInterfaceOrientations];
225228
}
229+
#endif
226230
}
227231

228232
- (UIInterfaceOrientationMask)supportedInterfaceOrientations

Source/WTF/wtf/PlatformHave.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,10 @@
11351135
#define HAVE_AUDIOSESSION_PROCESSASSERTION 1
11361136
#endif
11371137

1138-
#if PLATFORM(COCOA)
1138+
#if (PLATFORM(MAC) \
1139+
|| ((PLATFORM(IOS) || PLATFORM(MACCATALYST)) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 160000) \
1140+
|| (PLATFORM(WATCHOS) && __WATCH_OS_VERSION_MAX_ALLOWED >= 90000) \
1141+
|| (PLATFORM(APPLETV) && __TV_OS_VERSION_MAX_ALLOWED >= 160000))
11391142
#define HAVE_NSTEXTLIST_MARKER_FORMATS 1
11401143
#endif
11411144

0 commit comments

Comments
 (0)