mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
feat: replace BrowserView with WebContentsView (#35658)
This commit is contained in:
17
shell/browser/animation_util_mac.mm
Normal file
17
shell/browser/animation_util_mac.mm
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright (c) 2022 Salesforce, Inc.
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "shell/browser/animation_util.h"
|
||||
|
||||
#import <QuartzCore/QuartzCore.h>
|
||||
|
||||
// Disables actions within a scope.
|
||||
ScopedCAActionDisabler::ScopedCAActionDisabler() {
|
||||
[CATransaction begin];
|
||||
[CATransaction setDisableActions:YES];
|
||||
}
|
||||
|
||||
ScopedCAActionDisabler::~ScopedCAActionDisabler() {
|
||||
[CATransaction commit];
|
||||
}
|
||||
Reference in New Issue
Block a user