From abec24388db9869299fcd8037b26c5aef6f432a3 Mon Sep 17 00:00:00 2001 From: Alex Christensen Date: Wed, 25 Jan 2023 14:57:35 -0800 Subject: [PATCH] Fix cosmetic issue in WKSafeBrowsingWarning https://bugs.webkit.org/show_bug.cgi?id=251166 rdar://104389623 Reviewed by Wenson Hsieh and Tim Horton. I manually verified this fixes the issue and doesn't cause other issues on other macOS versions. * Source/WebKit/UIProcess/Cocoa/WKSafeBrowsingWarning.mm: (-[WKSafeBrowsingTextView clipsToBounds]): Canonical link: https://commits.webkit.org/259390@main --- Source/WebKit/UIProcess/Cocoa/WKSafeBrowsingWarning.mm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/WebKit/UIProcess/Cocoa/WKSafeBrowsingWarning.mm b/Source/WebKit/UIProcess/Cocoa/WKSafeBrowsingWarning.mm index 181c17dcff27..4699ae24ee42 100644 --- a/Source/WebKit/UIProcess/Cocoa/WKSafeBrowsingWarning.mm +++ b/Source/WebKit/UIProcess/Cocoa/WKSafeBrowsingWarning.mm @@ -601,4 +601,11 @@ - (SizeType)intrinsicContentSize #endif } +#if PLATFORM(MAC) +- (BOOL)clipsToBounds +{ + return YES; +} +#endif + @end