Skip to content

Commit

Permalink
Fix the build iOS Debug with recent SDK
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=247151

Unreviewed build fix.

*Source/WebKit/UIProcess/ios/WKPDFPageNumberIndicator.mm:

Canonical link: https://commits.webkit.org/256076@main
  • Loading branch information
karlrackler committed Oct 27, 2022
1 parent 04c8018 commit 42a1801
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/WebKit/UIProcess/ios/WKPDFPageNumberIndicator.mm
Expand Up @@ -200,13 +200,15 @@ - (void)_makeRoundedCorners
UIEdgeInsets capInsets = UIEdgeInsetsMake(indicatorCornerRadius, indicatorCornerRadius, indicatorCornerRadius, indicatorCornerRadius);
cornerImage = [cornerImage resizableImageWithCapInsets:capInsets];

ALLOW_DEPRECATED_DECLARATIONS_BEGIN
RetainPtr<UIImageView> cornerMaskView = adoptNS([[UIImageView alloc] initWithImage:cornerImage]);
[cornerMaskView setAlpha:0];
[cornerMaskView _setBackdropMaskViewFlags:_UIBackdropMaskViewAll];
[cornerMaskView setAutoresizingMask:UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight];
[cornerMaskView setFrame:contentView.bounds];

[contentView addSubview:cornerMaskView.get()];
ALLOW_DEPRECATED_DECLARATIONS_END
}

@end
Expand Down

0 comments on commit 42a1801

Please sign in to comment.