mirror of https://github.com/electron/electron
18 lines
454 B
Plaintext
18 lines
454 B
Plaintext
// 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];
|
|
}
|