mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Mac: Fix assertion when OSR is enabled (issue #1301)
git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1916@1737 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -432,7 +432,7 @@ void CefBrowserHostImpl::PlatformSetFocus(bool focus) {
|
|||||||
web_contents_->GetRenderWidgetHostView()) {
|
web_contents_->GetRenderWidgetHostView()) {
|
||||||
view->SetActive(focus);
|
view->SetActive(focus);
|
||||||
|
|
||||||
if (focus) {
|
if (focus && !IsWindowRenderingDisabled()) {
|
||||||
// Give keyboard focus to the native view.
|
// Give keyboard focus to the native view.
|
||||||
NSView* view = web_contents_->GetView()->GetContentNativeView();
|
NSView* view = web_contents_->GetView()->GetContentNativeView();
|
||||||
DCHECK([view canBecomeKeyView]);
|
DCHECK([view canBecomeKeyView]);
|
||||||
|
Reference in New Issue
Block a user