Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make WebViews in NSPopovers render as they would in active windows.
The NSWindowDid{Become,Resign}KeyNotifications are not fired when NSPopovers are shown or hidden since they share key with the parent window. So WebView and WebHTMLView need to also observe the will order on/off screen notifications. https://webkit.org/b/68402 rdar://problem/9754099 Reviewed by John Sullivan. * WebView/WebHTMLView.mm: (-[WebHTMLView _removeWindowObservers]): Remove order on/off screen notification obversers. (-[WebHTMLView addWindowObservers]): Add order on/off screen notification obversers. (-[WebHTMLView windowWillOrderOnScreen:]): Check if the window is already a key window, which can be the case for NSPopovers. (-[WebHTMLView windowWillOrderOffScreen:]): Remove the mouse moved observer. * WebView/WebView.mm: (-[WebView addWindowObserversForWindow:]): Add order off screen notification obverser. (-[WebView removeWindowObservers]): Remove order off screen notification obverser. (-[WebView _windowWillOrderOnScreen:]): Call _updateActiveState. (-[WebView _windowWillOrderOffScreen:]): Ditto. Canonical link: https://commits.webkit.org/84381@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@95534 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
3 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters