Title: [234216] trunk/Source/WebKit
Revision
234216
Author
[email protected]
Date
2018-07-25 15:51:23 -0700 (Wed, 25 Jul 2018)

Log Message

Mask AVBackgroundView to the corner radius.
https://bugs.webkit.org/show_bug.cgi?id=187976
rdar://problem/41810866

Patch by Jeremy Jones <[email protected]> on 2018-07-25
Reviewed by Jon Lee.

This changes sets the appropriate mask to the layer so the corners look correct.

* UIProcess/ios/fullscreen/WKFullscreenStackView.mm:
(-[WKFullscreenStackView init]):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (234215 => 234216)


--- trunk/Source/WebKit/ChangeLog	2018-07-25 22:44:48 UTC (rev 234215)
+++ trunk/Source/WebKit/ChangeLog	2018-07-25 22:51:23 UTC (rev 234216)
@@ -1,3 +1,16 @@
+2018-07-25  Jeremy Jones  <[email protected]>
+
+        Mask AVBackgroundView to the corner radius.
+        https://bugs.webkit.org/show_bug.cgi?id=187976
+        rdar://problem/41810866
+
+        Reviewed by Jon Lee.
+
+        This changes sets the appropriate mask to the layer so the corners look correct.
+
+        * UIProcess/ios/fullscreen/WKFullscreenStackView.mm:
+        (-[WKFullscreenStackView init]):
+
 2018-07-25  Zalan Bujtas  <[email protected]>
 
         REGRESSION(r227577) Text on TV & Movies page doesn't wrap properly in iTunes

Modified: trunk/Source/WebKit/UIProcess/ios/fullscreen/WKFullscreenStackView.mm (234215 => 234216)


--- trunk/Source/WebKit/UIProcess/ios/fullscreen/WKFullscreenStackView.mm	2018-07-25 22:44:48 UTC (rev 234215)
+++ trunk/Source/WebKit/UIProcess/ios/fullscreen/WKFullscreenStackView.mm	2018-07-25 22:51:23 UTC (rev 234216)
@@ -60,6 +60,11 @@
     _backgroundView = adoptNS([allocAVBackgroundViewInstance() initWithFrame:frame]);
     [self addSubview:_backgroundView.get()];
 
+    // FIXME: remove this once AVBackgroundView handles this. https://bugs.webkit.org/show_bug.cgi?id=188022
+    [_backgroundView setClipsToBounds:YES];
+    [_backgroundView.get().layer setContinuousCorners:YES];
+    [_backgroundView.get().layer setCornerRadius:16];
+
     return self;
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to