| Index: ios/chrome/browser/ui/reversed_animation.mm
|
| diff --git a/ios/chrome/browser/ui/reversed_animation.mm b/ios/chrome/browser/ui/reversed_animation.mm
|
| index 58ce55b77ea93c49c14a7dbd0e30d1f1e73e61b9..557c7d8d951ad691d808ad7efc027fcfbc238c2b 100644
|
| --- a/ios/chrome/browser/ui/reversed_animation.mm
|
| +++ b/ios/chrome/browser/ui/reversed_animation.mm
|
| @@ -9,7 +9,10 @@
|
| #include <cmath>
|
|
|
| #include "base/logging.h"
|
| -#include "base/mac/objc_property_releaser.h"
|
| +
|
| +#if !defined(__has_feature) || !__has_feature(objc_arc)
|
| +#error "This file requires ARC support."
|
| +#endif
|
|
|
| @protocol ReversedAnimationProtocol;
|
| typedef CAAnimation<ReversedAnimationProtocol> ReversedAnimation;
|
| @@ -60,10 +63,7 @@ void UpdateReversedAnimation(ReversedAnimation* reversedAnimation,
|
|
|
| #pragma mark - ReversedBasicAnimation
|
|
|
| -@interface ReversedBasicAnimation
|
| - : CABasicAnimation<ReversedAnimationProtocol> {
|
| - base::mac::ObjCPropertyReleaser _propertyReleaser_ReversedBasicAnimation;
|
| -}
|
| +@interface ReversedBasicAnimation : CABasicAnimation<ReversedAnimationProtocol>
|
|
|
| // Returns an animation that performs |animation| in reverse when added to
|
| // |layer|. |parentBeginTime| should be set to the beginTime in absolute time
|
| @@ -81,15 +81,6 @@ void UpdateReversedAnimation(ReversedAnimation* reversedAnimation,
|
| @synthesize animationDirection = _animationDirection;
|
| @synthesize animationTimeOffset = _animationTimeOffset;
|
|
|
| -- (instancetype)init {
|
| - self = [super init];
|
| - if (self) {
|
| - _propertyReleaser_ReversedBasicAnimation.Init(
|
| - self, [ReversedBasicAnimation class]);
|
| - }
|
| - return self;
|
| -}
|
| -
|
| - (instancetype)copyWithZone:(NSZone*)zone {
|
| ReversedBasicAnimation* copy = [super copyWithZone:zone];
|
| copy.originalAnimation = self.originalAnimation;
|
| @@ -136,10 +127,7 @@ void UpdateReversedAnimation(ReversedAnimation* reversedAnimation,
|
|
|
| #pragma mark - ReversedAnimationGroup
|
|
|
| -@interface ReversedAnimationGroup
|
| - : CAAnimationGroup<ReversedAnimationProtocol> {
|
| - base::mac::ObjCPropertyReleaser _propertyReleaser_ReversedAnimationGroup;
|
| -}
|
| +@interface ReversedAnimationGroup : CAAnimationGroup<ReversedAnimationProtocol>
|
|
|
| // Returns an animation that performs |animation| in reverse when added to
|
| // |layer|. |parentBeginTime| should be set to the beginTime in absolute time
|
| @@ -157,15 +145,6 @@ void UpdateReversedAnimation(ReversedAnimation* reversedAnimation,
|
| @synthesize animationDirection = _animationDirection;
|
| @synthesize animationTimeOffset = _animationTimeOffset;
|
|
|
| -- (instancetype)init {
|
| - self = [super init];
|
| - if (self) {
|
| - _propertyReleaser_ReversedAnimationGroup.Init(
|
| - self, [ReversedAnimationGroup class]);
|
| - }
|
| - return self;
|
| -}
|
| -
|
| - (instancetype)copyWithZone:(NSZone*)zone {
|
| ReversedAnimationGroup* copy = [super copyWithZone:zone];
|
| copy.originalAnimation = self.originalAnimation;
|
|
|