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_)
|
if (!is_showing_)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
is_showing_ = false;
|
||||||
|
|
||||||
if (browser_impl_.get())
|
if (browser_impl_.get())
|
||||||
browser_impl_->CancelContextMenu();
|
browser_impl_->CancelContextMenu();
|
||||||
|
|
||||||
|
@ -547,8 +549,6 @@ void CefRenderWidgetHostViewOSR::Hide() {
|
||||||
GetDelegatedFrameHost()->WasHidden();
|
GetDelegatedFrameHost()->WasHidden();
|
||||||
GetDelegatedFrameHost()->DetachFromCompositor();
|
GetDelegatedFrameHost()->DetachFromCompositor();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
is_showing_ = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CefRenderWidgetHostViewOSR::IsShowing() {
|
bool CefRenderWidgetHostViewOSR::IsShowing() {
|
||||||
|
|
Loading…
Reference in New Issue