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:
Marshall Greenblatt
2014-06-10 21:06:24 +00:00
parent f4d54aa86f
commit 7709915848

View File

@@ -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]);