fix: Disable new fade animation for BrowserViews (#14911)
This commit is contained in:
Родитель
c9edf77e8e
Коммит
79c6e7c3f7
|
@ -1058,6 +1058,9 @@ void NativeWindowMac::SetContentProtection(bool enable) {
|
|||
}
|
||||
|
||||
void NativeWindowMac::SetBrowserView(NativeBrowserView* view) {
|
||||
[CATransaction begin];
|
||||
[CATransaction setDisableActions:YES];
|
||||
|
||||
if (browser_view()) {
|
||||
[browser_view()->GetInspectableWebContentsView()->GetNativeView()
|
||||
removeFromSuperview];
|
||||
|
@ -1065,6 +1068,7 @@ void NativeWindowMac::SetBrowserView(NativeBrowserView* view) {
|
|||
}
|
||||
|
||||
if (!view) {
|
||||
[CATransaction commit];
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1074,6 +1078,8 @@ void NativeWindowMac::SetBrowserView(NativeBrowserView* view) {
|
|||
positioned:NSWindowAbove
|
||||
relativeTo:nil];
|
||||
native_view.hidden = NO;
|
||||
|
||||
[CATransaction commit];
|
||||
}
|
||||
|
||||
void NativeWindowMac::SetParentWindow(NativeWindow* parent) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче