Fix assert failure when hiding the OSR widget (fixes issue #2631)
This commit is contained in:
parent
5623338662
commit
1beec23065
|
@ -535,6 +535,8 @@ void CefRenderWidgetHostViewOSR::Hide() {
|
|||
if (!is_showing_)
|
||||
return;
|
||||
|
||||
is_showing_ = false;
|
||||
|
||||
if (browser_impl_.get())
|
||||
browser_impl_->CancelContextMenu();
|
||||
|
||||
|
@ -547,8 +549,6 @@ void CefRenderWidgetHostViewOSR::Hide() {
|
|||
GetDelegatedFrameHost()->WasHidden();
|
||||
GetDelegatedFrameHost()->DetachFromCompositor();
|
||||
#endif
|
||||
|
||||
is_showing_ = false;
|
||||
}
|
||||
|
||||
bool CefRenderWidgetHostViewOSR::IsShowing() {
|
||||
|
|
Loading…
Reference in New Issue