Bug 1658432: Don't remove wrapping CALayer from its superview outside of Commit. r=mac-reviewers,mstange

This change lets NativeLayerRootCA::Representation::Commit be the only
point where sublayers are added and removed from the root CALayer.

Differential Revision: https://phabricator.services.mozilla.com/D191673
This commit is contained in:
Brad Werth 2023-10-24 20:01:49 +00:00
parent e37e4cf2d7
commit f36c2e9caa

View file

@ -1735,7 +1735,6 @@ bool NativeLayerCA::Representation::ApplyChanges(
mContentCALayer = nil;
[mOpaquenessTintLayer release];
mOpaquenessTintLayer = nil;
[mWrappingCALayer removeFromSuperlayer];
[mWrappingCALayer release];
mWrappingCALayer = nil;
}