In a window with rounded corners, scrolling in WK2 causes the rounded corners to become square. <rdar://problem/9234239> Patch forthcoming.
Created attachment 91767 [details] Patch
Comment on attachment 91767 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=91767&action=review > Source/WebKit2/UIProcess/API/mac/PageClientImpl.mm:145 > + NSDisableScreenUpdates(); A comment explaining why disabling is required would be good > Source/WebKit2/UIProcess/API/mac/PageClientImpl.mm:161 > + m_windowBottomCornerIntersectionRect = NSZeroRect; > + m_windowBottomCornerIntersectionRect = [[m_wkView window] _intersectBottomCornersWithRect:[m_wkView convertRect:[m_wkView visibleRect] toView:nil]]; Why the double assignment?
Comment on attachment 91767 [details] Patch Maybe move this code to WKView, too?
Created attachment 91774 [details] Patch that addresses Simon's comments
Comment on attachment 91774 [details] Patch that addresses Simon's comments View in context: https://bugs.webkit.org/attachment.cgi?id=91774&action=review > Source/WebKit2/UIProcess/API/mac/PageClientImpl.h:127 > + NSRect m_windowBottomCornerIntersectionRect; This is unused? > Source/WebKit2/UIProcess/API/mac/WKView.mm:933 > + BOOL maskWindow = window && !NSIsEmptyRect(_data->_windowBottomCornerIntersectionRect); Would read better if this was shouldMaskWindow
(In reply to comment #5) > (From update of attachment 91774 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=91774&action=review > > > Source/WebKit2/UIProcess/API/mac/PageClientImpl.h:127 > > + NSRect m_windowBottomCornerIntersectionRect; > > This is unused? > Oops! Meant to remove that. > > Source/WebKit2/UIProcess/API/mac/WKView.mm:933 > > + BOOL maskWindow = window && !NSIsEmptyRect(_data->_windowBottomCornerIntersectionRect); > > Would read better if this was shouldMaskWindow Will change. Thanks!
Committed fix with revision 85376.