Summary: | Scrolling causes rounded bottom window corners to become square | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Beth Dakin <bdakin> | ||||||
Component: | Layout and Rendering | Assignee: | Beth Dakin <bdakin> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | bdakin | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | PC | ||||||||
OS: | OS X 10.5 | ||||||||
Attachments: |
|
Description
Beth Dakin
2011-04-29 16:42:55 PDT
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. |