Changeset 150200 in webkit
- Timestamp:
- May 16, 2013 12:13:32 PM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r150197 r150200 1 2013-05-16 Timothy Hatcher <timothy@apple.com> 2 3 Make the Find Banner in Safari work again with the docked Web Inspector. 4 5 https://webkit.org/b/116182 6 rdar://problem/13857423 7 8 Reviewed by Benjamin Poulain. 9 10 * UIProcess/mac/WebInspectorProxyMac.mm: 11 (WebKit::WebInspectorProxy::inspectedViewFrameDidChange): 12 (WebKit::WebInspectorProxy::platformDetach): 13 Preserve the top position of the inspected view so banners in Safari still work. 14 1 15 2013-05-16 Tim Horton <timothy_horton@apple.com> 2 16 -
trunk/Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm
r150041 r150200 626 626 NSRect inspectorFrame = NSZeroRect; 627 627 NSRect parentBounds = [[inspectedView superview] bounds]; 628 CGFloat inspectedViewTop = NSMaxY(inspectedViewFrame); 628 629 629 630 switch (m_attachmentSide) { … … 635 636 CGFloat inspectorHeight = InspectorFrontendClientLocal::constrainedAttachedWindowHeight(currentDimension, parentHeight); 636 637 637 inspectedViewFrame = NSMakeRect(0, inspectorHeight, NSWidth(parentBounds), parentHeight - inspectorHeight); 638 // Preserve the top position of the inspected view so banners in Safari still work. 639 inspectedViewFrame = NSMakeRect(0, inspectorHeight, NSWidth(parentBounds), inspectedViewTop - inspectorHeight); 638 640 inspectorFrame = NSMakeRect(0, 0, NSWidth(inspectedViewFrame), inspectorHeight); 639 641 break; … … 647 649 CGFloat inspectorWidth = InspectorFrontendClientLocal::constrainedAttachedWindowWidth(currentDimension, parentWidth); 648 650 649 inspectedViewFrame = NSMakeRect(0, 0, parentWidth - inspectorWidth, NSHeight(parentBounds)); 650 inspectorFrame = NSMakeRect(parentWidth - inspectorWidth, 0, inspectorWidth, NSHeight(inspectedViewFrame)); 651 // Preserve the top position of the inspected view so banners in Safari still work. But don't use that 652 // top position for the inspector view since the banners only stretch as wide as the the inspected view. 653 inspectedViewFrame = NSMakeRect(0, 0, parentWidth - inspectorWidth, inspectedViewTop); 654 inspectorFrame = NSMakeRect(parentWidth - inspectorWidth, 0, inspectorWidth, NSHeight(parentBounds)); 651 655 break; 652 656 } … … 715 719 716 720 // Make sure that we size the inspected view's frame after detaching so that it takes up the space that the 717 // attached inspector used to. 718 719 [inspectedView setFrame:[[inspectedView superview] bounds]];721 // attached inspector used to. Preserve the top position of the inspected view so banners in Safari still work. 722 723 inspectedView.frame = NSMakeRect(0, 0, NSWidth(inspectedView.superview.bounds), NSMaxY(inspectedView.frame)); 720 724 721 725 // Return early if we are not visible. This means the inspector was closed while attached
Note: See TracChangeset
for help on using the changeset viewer.