Mac: Fix assertion when OSR is enabled (issue #1301)

git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1750@1738 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2014-06-10 21:07:54 +00:00
parent 473a8f695b
commit f5de781c43

View File

@ -431,7 +431,7 @@ void CefBrowserHostImpl::PlatformSetFocus(bool focus) {
web_contents_->GetRenderWidgetHostView()) {
view->SetActive(focus);
if (focus) {
if (focus && !IsWindowRenderingDisabled()) {
// Give keyboard focus to the native view.
NSView* view = web_contents_->GetView()->GetContentNativeView();
DCHECK([view canBecomeKeyView]);