WasResized -> SynchronizeVisualProperties

This commit is contained in:
Jeremy Apthorp 2018-09-14 17:19:53 -07:00 committed by Aleksei Kuzmin
parent 5d9ba8b821
commit faf57683ce

View file

@ -276,7 +276,7 @@ void CommonWebContentsDelegate::EnterFullscreenModeForTab(
return; return;
SetHtmlApiFullscreen(true); SetHtmlApiFullscreen(true);
owner_window_->NotifyWindowEnterHtmlFullScreen(); owner_window_->NotifyWindowEnterHtmlFullScreen();
source->GetRenderViewHost()->GetWidget()->WasResized(); source->GetRenderViewHost()->GetWidget()->SynchronizeVisualProperties();
} }
void CommonWebContentsDelegate::ExitFullscreenModeForTab( void CommonWebContentsDelegate::ExitFullscreenModeForTab(
@ -285,7 +285,7 @@ void CommonWebContentsDelegate::ExitFullscreenModeForTab(
return; return;
SetHtmlApiFullscreen(false); SetHtmlApiFullscreen(false);
owner_window_->NotifyWindowLeaveHtmlFullScreen(); owner_window_->NotifyWindowLeaveHtmlFullScreen();
source->GetRenderViewHost()->GetWidget()->WasResized(); source->GetRenderViewHost()->GetWidget()->SynchronizeVisualProperties();
} }
bool CommonWebContentsDelegate::IsFullscreenForTabOrPending( bool CommonWebContentsDelegate::IsFullscreenForTabOrPending(