зеркало из https://github.com/electron/electron.git
18 строки
454 B
Plaintext
18 строки
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];
|
|
}
|